1 diff -ur dracut-044.orig/modules.d/99base/init.sh dracut-044/modules.d/99base/init.sh
2 --- dracut-044.orig/modules.d/99base/init.sh 2015-11-25 13:22:28.000000000 +0000
3 +++ dracut-044/modules.d/99base/init.sh 2015-11-30 13:00:40.396305000 +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