Skip to content

Commit 449ef0c

Browse files
cgwaltersopenshift-merge-robot
authored andcommitted
build: Run udevd in supermin appliance
A lot of our code wants things like `/dev/disk/by-X`. Extracted from #1244
1 parent 06ac4a0 commit 449ef0c

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

src/offline-update-impl

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,6 @@ set -xeuo pipefail
55

66
disk=/dev/vda
77

8-
udevadm trigger
9-
udevadm settle
10-
118
# We don't have systemd/udev running
129
findlabel() {
1310
local label=$1

src/supermin-init-prelude.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
#!/usr/bin/env bash
2+
# This script is our half-baked ad-hoc reimplementation of a minimal
3+
# Linux boot environment that we generate via `supermin`. At some
4+
# point we will likely switch to using systemd.
5+
26
mount -t proc /proc /proc
37
mount -t sysfs /sys /sys
48
mount -t devtmpfs devtmpfs /dev
@@ -16,6 +20,10 @@ LANG=C /sbin/load_policy -i
1620
# need fuse module for rofiles-fuse/bwrap during post scripts run
1721
/sbin/modprobe fuse
1822

23+
# we want /dev/disk symlinks for coreos-installer
24+
/usr/lib/systemd/systemd-udevd --daemon
25+
/usr/sbin/udevadm trigger --settle
26+
1927
# set up networking
2028
if [ -z "${RUNVM_NONET:-}" ]; then
2129
/usr/sbin/dhclient eth0

0 commit comments

Comments
 (0)