diff options
author | Peter Hjalmarsson <xake@rymdraket.net> | 2011-03-24 13:33:03 +0100 |
---|---|---|
committer | Sebastian Pipping <sebastian@pipping.org> | 2011-03-28 19:26:10 +0200 |
commit | b312056622a1973328ed43864b3ce9419a068c70 (patch) | |
tree | ab727502b749dc481a25375ec755adb4b203406c | |
parent | Remove "--slowusb" as it is enabled by default. Also document "noslowusb". (diff) | |
download | genkernel-b312056622a1973328ed43864b3ce9419a068c70.tar.gz genkernel-b312056622a1973328ed43864b3ce9419a068c70.tar.bz2 genkernel-b312056622a1973328ed43864b3ce9419a068c70.zip |
Use the same options for proc and sysfs as Gentoo/OpenRC uses
-rwxr-xr-x | defaults/initrd.scripts | 2 | ||||
-rwxr-xr-x | defaults/linuxrc | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/defaults/initrd.scripts b/defaults/initrd.scripts index 4a12b73e..b228a77f 100755 --- a/defaults/initrd.scripts +++ b/defaults/initrd.scripts @@ -210,7 +210,7 @@ cache_cd_contents() { } 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} -eq 0 ] || bad_msg "Failed to mount /sys!" } diff --git a/defaults/linuxrc b/defaults/linuxrc index 61efc953..115f1f52 100755 --- a/defaults/linuxrc +++ b/defaults/linuxrc @@ -20,7 +20,7 @@ then exit 1 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 # Set up symlinks |