diff --git a/src/offline-update-impl b/src/offline-update-impl index 7d88cbd667..780d7cc023 100755 --- a/src/offline-update-impl +++ b/src/offline-update-impl @@ -5,9 +5,6 @@ set -xeuo pipefail disk=/dev/vda -udevadm trigger -udevadm settle - # We don't have systemd/udev running findlabel() { local label=$1 diff --git a/src/supermin-init-prelude.sh b/src/supermin-init-prelude.sh index 502e97eb29..16519118db 100644 --- a/src/supermin-init-prelude.sh +++ b/src/supermin-init-prelude.sh @@ -1,4 +1,8 @@ #!/usr/bin/env bash +# This script is our half-baked ad-hoc reimplementation of a minimal +# Linux boot environment that we generate via `supermin`. At some +# point we will likely switch to using systemd. + mount -t proc /proc /proc mount -t sysfs /sys /sys mount -t devtmpfs devtmpfs /dev @@ -16,6 +20,10 @@ LANG=C /sbin/load_policy -i # need fuse module for rofiles-fuse/bwrap during post scripts run /sbin/modprobe fuse +# we want /dev/disk symlinks for coreos-installer +/usr/lib/systemd/systemd-udevd --daemon +/usr/sbin/udevadm trigger --settle + # set up networking if [ -z "${RUNVM_NONET:-}" ]; then /usr/sbin/dhclient eth0