Skip to content

Commit 84022d7

Browse files
committed
supermin-init-prelude: add timeout on udevadm trigger --settle 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 84022d7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/supermin-init-prelude.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ 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+
timeout 30s /usr/sbin/udevadm trigger --settle || :
2727

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

0 commit comments

Comments
 (0)