Use the same options for proc and sysfs as Gentoo/OpenRC uses

cleanup-cruft
Peter Hjalmarsson 14 years ago committed by Sebastian Pipping
parent 1cf3de853a
commit b312056622

@ -210,7 +210,7 @@ cache_cd_contents() {
} }
mount_sysfs() { mount_sysfs() {
mount -t sysfs /sys /sys >/dev/null 2>&1 mount -t sysfs sysfs /sys -o noexec,nosuid,nodev >/dev/null 2>&1
ret=$? ret=$?
[ ${ret} -eq 0 ] || bad_msg "Failed to mount /sys!" [ ${ret} -eq 0 ] || bad_msg "Failed to mount /sys!"
} }

@ -20,7 +20,7 @@ then
exit 1 exit 1
fi fi
mount -t proc proc /proc >/dev/null 2>&1 mount -t proc -o noexec,nosuid,nodev proc /proc >/dev/null 2>&1
mount -o remount,rw / >/dev/null 2>&1 mount -o remount,rw / >/dev/null 2>&1
# Set up symlinks # Set up symlinks

Loading…
Cancel
Save