Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions src/offline-update-impl
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 8 additions & 0 deletions src/supermin-init-prelude.sh
Original file line number Diff line number Diff line change
@@ -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.
Copy link
Member Author

@cgwalters cgwalters Apr 22, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(BTW, I think the best fix here is to generate a minimal initramfs that mounts the host (container) filesystem via virtiofs/9p. Then we really don't need supermin at all, we can use systemd etc. when we're building the ostree-based disk image, etc.)


mount -t proc /proc /proc
mount -t sysfs /sys /sys
mount -t devtmpfs devtmpfs /dev
Expand All @@ -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
Expand Down