With NFS root, it is possible /tmp/net.ifaces might not exist during pre-pivot.

- udevadm settle will wait for it if necessary.
- Move write-ifcfg.sh later during pre-pivot to reduce likelihood of settling being necessary.
master
Warren Togami 2009-07-24 15:26:33 -04:00
parent 4e6d8fd691
commit 47b5c0f290
2 changed files with 3 additions and 1 deletions

View File

@ -12,6 +12,6 @@ inst_hook pre-pivot 10 "$moddir/kill-dhclient.sh"

# TODO ifcfg config style is redhat specific, this should probably
# go into its own module at one time
inst_hook pre-pivot 20 "$moddir/write-ifcfg.sh"
inst_hook pre-pivot 85 "$moddir/write-ifcfg.sh"

mkdir -p "${initdir}/var/run"

View File

@ -1,5 +1,7 @@
#!/bin/sh

# NFS root might have reached here before /tmp/net.ifaces was written
udevadm settle --timeout=30
# Don't write anything if we don't know our bootdev
[ -f /tmp/net.ifaces ] || return 1