diff options
author | Harald Hoyer <harald@redhat.com> | 2011-03-25 13:31:34 +0100 |
---|---|---|
committer | Harald Hoyer <harald@redhat.com> | 2011-03-25 16:10:46 +0100 |
commit | 0b53ca70b6bafbbed2c484208faba3100c448746 (patch) | |
tree | d8e5c8503c82b2288afd486115eaac972dfb0556 /modules.d/95nbd | |
parent | c9f1e3d1f47c9749494a108ecedfa5b4fc6f7d41 (diff) | |
download | dracut-0b53ca70b6bafbbed2c484208faba3100c448746.tar.gz dracut-0b53ca70b6bafbbed2c484208faba3100c448746.tar.bz2 dracut-0b53ca70b6bafbbed2c484208faba3100c448746.zip |
Move all hooks to "$hookdir"
hookdir=/lib/dracut/hooks for now, to keep the root directory clean
Diffstat (limited to 'modules.d/95nbd')
-rwxr-xr-x | modules.d/95nbd/nbdroot | 4 | ||||
-rwxr-xr-x | modules.d/95nbd/parse-nbdroot.sh | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/modules.d/95nbd/nbdroot b/modules.d/95nbd/nbdroot index b16b44f9..7ff7b293 100755 --- a/modules.d/95nbd/nbdroot +++ b/modules.d/95nbd/nbdroot @@ -96,11 +96,11 @@ nbd-client $preopts "$nbdserver" "$nbdport" /dev/nbd0 $opts || exit 1 # add the udev rules for mounting the nbd0 device if [ ! -e /etc/udev/rules.d/99-mount.rules ]; then echo '[ -e /dev/root ] || { info=$(udevadm info --query=env --name=/dev/nbd0); [ -z "${info%%*ID_FS_TYPE*}" ] && { ln -s /dev/nbd0 /dev/root 2>/dev/null; :; };} && rm $job;' \ - > /initqueue-settled/nbd.sh + > $hookdir/initqueue/settled/nbd.sh printf '/bin/mount -t %s -o %s %s %s\n' \ "$nbdfstype" "$fsopts" /dev/nbd0 "$NEWROOT" \ - > /mount/01-$$-nbd.sh + > $hookdir/mount/01-$$-nbd.sh fi # NBD doesn't emit uevents when it gets connected, so kick it diff --git a/modules.d/95nbd/parse-nbdroot.sh b/modules.d/95nbd/parse-nbdroot.sh index 4edcf17a..61e5d53a 100755 --- a/modules.d/95nbd/parse-nbdroot.sh +++ b/modules.d/95nbd/parse-nbdroot.sh @@ -57,5 +57,5 @@ rootok=1 # Shut up init error check [ -z "$root" ] && root="nbd" -echo '[ -e /dev/root ]' > /initqueue-finished/nbd.sh +echo '[ -e /dev/root ]' > $hookdir/initqueue/finished/nbd.sh |