1 diff -urN dracut-037.orig/modules.d/99base/init.sh dracut-037/modules.d/99base/init.sh
2 --- dracut-037.orig/modules.d/99base/init.sh 2014-03-19 16:16:08.000000000 +0000
3 +++ dracut-037/modules.d/99base/init.sh 2014-05-17 15:55:22.273000000 +0000
7 # By the time we get here, the root filesystem should be mounted.
9 +# Remount /proc and /sys with options from $NEWROOT/etc/fstab,
10 +# keep defaults just in case.
11 +procopts="nosuid,noexec,nodev,"
12 +sysopts="nosuid,noexec,nodev,"
13 +if [ -f "$NEWROOT/etc/fstab" ] \
14 + && ! [ -L "$NEWROOT/etc/fstab" ]; then
15 + while read dev mp fs opts dump fsck; do
17 + [ "${dev%%#*}" != "$dev" ] && continue
18 + if [ "$mp" = "/proc" ]; then
20 + elif [ "$mp" = "/sys" ]; then
23 + done < "$NEWROOT/etc/fstab"
25 +mount -o remount,$procopts /proc 2>&1
26 +mount -o remount,$sysopts /sys 2>&1
29 for i in "$(getarg real_init=)" "$(getarg init=)" $(getargs rd.distroinit=) /sbin/init; do
30 [ -n "$i" ] || continue