[01:09] @search The Switch O'Leary [01:10] ? [06:02] Good morning [11:06] I want to run wget to send a signal after initramfs configure network. How can I do it? [11:12] Unless required the network is only configured at a later stage, not in the initramfs. [11:12] Not really sure why you want to download something, but you can make a systemd unit which targets the network-online.target. [11:16] I've encrypted my whole disk with LUKS and I've installed Busybox with the network configuration. So when VM has been rebooted, I can connect to Busybox with SSH to enter my LUKS password. I want to run the wget command automatically after the initramfs network is configured, to send a signal from VM to enter the LUKS password. [12:27] punkgeek: why not delply mandos instead? [12:27] or even, deploy [13:39] punkgeek: In `/etc/initramfs-tools/scripts` and `/usr/share/initramfs-tools/scripts` are a bunch of scripts which are called at certain points. I guess you can figure out (with the documentation) at which point there should be a network and inject your script there. === genii-core is now known as genii [15:05] TJ-: I can't use this method in my case. [15:06] lordievader: I've tried both directories but it doesn't works. and even there in't any script on the /etc/initramfs-tools/scripts or hooks [15:07] punkgeek: are you using dropbear-initramfs ? if so put your looks in just after dropbear's [15:08] punkgeek: hooks are used at {mk,update}initramfs time, scripts are copied into the initrd.img [15:09] for example, dropbear-initramfs installs, amongst others: [15:09] dropbear-initramfs: /usr/share/initramfs-tools/scripts/init-bottom/dropbear [15:09] dropbear-initramfs: /usr/share/initramfs-tools/scripts/init-premount/dropbear [15:16] punkgeek: did you verify with `lsinitramfs` if they made it into an updated intramfs? [15:29] I'm not sure it uses dropbrea-initramfs or not, but I have installed it with busybox. [15:29] I've entered the command at the end of the .../init-premount/dropbear file and then I entered update-initramfs -u, But it didn't work [15:30] punkgeek: you've put wget into the initrd as well? [15:31] punkgeek: This shows about what you try to do, but then with curl: https://serverfault.com/questions/152959/configure-initramfs-tools-to-add-curl-to-the-initramfs-and-run-curl-in-a-script [15:31] TJ-: Could you explain more? [15:32] I saw this documents, Actually it just install curl on the busybox. because it doesn't have curl [15:32] punkgeek: if you want a binary, or other file, installed into the initrd you have to create a hook script that includes the hook-functions script and calls copy_file(path/to/file) [15:33] punkgeek: OK, so you're relying on the busybox already installed in the initrd as a busybox applet? [15:33] also someone asked how to run automatically a curl command and no one response on the mentioned topic [15:34] the version of busybox installed is a cut-down, from /usr/lib/initramfs-tools/bin/busybox (package busybox-initramfs) [15:34] punkgeek: might be worth checking the built-in wget there has the options you're relying on, with "/usr/lib/initramfs-tools/bin/busybox wget -h" [15:36] it works "/usr/lib/initramfs-tools/bin/busybox wget -h" [15:36] punkgeek: if it isn't working and you have a console on the system, then edit the kernel command-line in the boot config to have "break=premount" so it drops to the shell and you can manually test the command and explore [15:37] I'm not sure it is a good idea to do it by busybox, because maybe before the ssh login, busybox wouldn't start [15:39] busybox is running the /init script! [15:39] but in /etc/initramfs-tools/initramfs.conf seems init start the busybox [15:40] Howevre, I can change it to run automatically [15:42] we don't use klibc tooling [15:44] oh actually, it's /usr/bin/dash now ! [15:46] hahaha no it isn't it's busybox. I accidentally checked /bin/sh not bin/sh in the extracted initrd.img, oops [15:51] So is there any suggestion to help me? [15:54] punkgeek: have you tried a keyscript? [15:54] For example I wrote https://github.com/basak/netkeyscript a long time ago. [15:54] You could use that as a model to get the behaviour you want with a different script I think. [15:59] It's good, But I can't use this method in my case. [15:59] No, but you can implement whatever method you want in a keyscript [15:59] Then update-initramfs will insert it into the initramfs automatically I think [16:11] my literacy level can't understand that script :D === StarHeart is now known as Edgan === JanC_ is now known as JanC [19:04] Hello, I have two compute clusters with their own disk shares in two different geographic locations. For ease-of-use I've been prompted to consider adding some kind of file share between them (over the internet). Something like an sshfs connection on each side. Does anyone have an idea of how to do this on a system level instead of each user managing their own? I'm guessing I would need to use root in order to properly serve all users... [19:05] octav1a: that sounds a bit like openafs [19:07] Hey all, I'm trying to bring up LXC instances with a custom network config. Using images:ubuntu/18.04/cloud, I can see that /var/lib/cloud/seed/nocloud-net/network-config does have the config I passed in, but /etc/netplan is empty and cloud-init never ran. [19:08] sarnold: to be clear, when I hear distributed file system I think of something like gluster. In this case I want both the file systems to be completely independent, but just corss mounted . [19:08] cross* [19:08] (ex on system1 there will be /data (local) and /data-system2 (remote) ; and on system2 there will be /data and /data-system1 [19:08] If I run `cloud-init init` manually it does its thing, then running `netplan apply` brings up the proper network config. So my question is why isn't cloud-init running automatically like it's supposed to? [19:22] ^ I answered in #ubuntu [19:22] Solution: use ubuntu:bionic, not images: [19:23] For support for images:, try #lxcontainers [19:23] rbasak: it's called #lxc now [19:23] Thanks [20:03] Isn't there any way to run a command in busybox startup automatically? === TheRedQueen is now known as Drone === genii is now known as genii-core === franksmcb_ is now known as franksmcb