Skip to content

Commit 1ea4d52

Browse files
committed
supermin-init-prelude: add timeout on udevadm trigger and make non-fatal
We hit a case on ppc64le where this just hung forever. Let's add a timeout on it. And since this is best effort, let's just ignore any errors from the command. If a symlink is missing, we'll just error out with a clearer error down the line anyway.
1 parent bfe010d commit 1ea4d52

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/supermin-init-prelude.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,9 @@ LANG=C /sbin/load_policy -i
2323

2424
# we want /dev/disk symlinks for coreos-installer
2525
/usr/lib/systemd/systemd-udevd --daemon
26-
/usr/sbin/udevadm trigger --settle
26+
# We've seen this hang before, so add a timeout. This is best-effort anyway, so
27+
# let's not fail on it.
28+
timeout 30s /usr/sbin/udevadm trigger --settle || :
2729

2830
# set up networking
2931
if [ -z "${RUNVM_NONET:-}" ]; then

0 commit comments

Comments
 (0)