Update options for devtmpfs
authorPeter Hjalmarsson <xake@rymdraket.net>
Tue, 1 Feb 2011 18:33:57 +0000 (19:33 +0100)
committerSebastian Pipping <sebastian@pipping.org>
Mon, 7 Feb 2011 03:07:05 +0000 (04:07 +0100)
Options copied from /etc/init.d/udev-mount as that script does not
sanitize or even tuch the options.

defaults/initrd.scripts

index 034696b41c3c462c902e25197d9efe9d073ab98e..ee269188b69a00e8707590bfec704d311f5a607a 100755 (executable)
@@ -310,7 +310,8 @@ runmdev() {
        # Use devtmpfs if enabled in kernel,
        # else busybox udev replacement
        if grep -qs devtmpfs /proc/filesystems ; then
-               mount -t devtmpfs devtmpfs /dev
+               # Options copied from /etc/init.d/udev-mount, should probably be kept in sync
+               mount -t devtmpfs -o "exec,nosuid,mode=0755,size=10M" udev /dev
        else
                mdev -s
        fi