Browse Source
Also got rid of "dracutmodules=hostonly". We have --hostonly, and it does the same thing.master
Victor Lowther
15 years ago
9 changed files with 48 additions and 20 deletions
@ -1,2 +1,2 @@
@@ -1,2 +1,2 @@
|
||||
#!/bin/bash |
||||
#!/bin/sh |
||||
[ -f /etc/redhat-release ] |
@ -1,5 +1,11 @@
@@ -1,5 +1,11 @@
|
||||
#!/bin/sh |
||||
# We depend on network modules being loaded |
||||
[ "$1" = "-d" ] && echo network |
||||
[ "$1" = "-H" ] && ! egrep -q '/ nfs[34 ]' /proc/mounts && exit 1 |
||||
|
||||
# If hostonly was requested, fail the check if we are not actually |
||||
# booting from root. |
||||
[ "$1" = "-h" ] && ! egrep -q '/ nfs[34 ]' /proc/mounts && exit 1 |
||||
|
||||
# If our prerequisites are not met, fail anyways. |
||||
which rpcbind rpc.statd mount.nfs mount.nfs4 umount >/dev/null 2>&1 || exit 1 |
||||
exit 0 |
||||
|
@ -1,3 +1,6 @@
@@ -1,3 +1,6 @@
|
||||
#!/bin/sh |
||||
|
||||
[ "$1" = "-H" ] && exit 1 |
||||
# Install all loaded modules in the initramfs if we are building a |
||||
# hostonly initramfs |
||||
[[ $1 = -h ]] |
||||
|
||||
|
Loading…
Reference in new issue