projects
/
platform
/
upstream
/
dracut.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1d4b337
)
dracut.sh: turn off host-only mode, if essential system filesystems not mounted
author
Harald Hoyer
<harald@redhat.com>
Wed, 20 Mar 2013 09:22:41 +0000
(10:22 +0100)
committer
Harald Hoyer
<harald@redhat.com>
Wed, 20 Mar 2013 09:22:41 +0000
(10:22 +0100)
dracut.sh
patch
|
blob
|
history
diff --git
a/dracut.sh
b/dracut.sh
index
7728712
..
9afa694
100755
(executable)
--- a/
dracut.sh
+++ b/
dracut.sh
@@
-781,6
+781,15
@@
fi
# Need to be able to have non-root users read stuff (rpcbind etc)
chmod 755 "$initdir"
+if [[ $hostonly ]]; then
+ for i in /sys /proc /run /dev; do
+ if ! findmnt "$i" &>/dev/null; then
+ dwarning "Turning off host-only mode: '$i' is not mounted!"
+ unset hostonly
+ fi
+ done
+fi
+
declare -A host_fs_types
for line in "${fstab_lines[@]}"; do