summaryrefslogtreecommitdiff
path: root/rc.sysinit
diff options
context:
space:
mode:
authorSébastien Luttringer <seblu@seblu.net>2012-03-12 22:41:11 +0100
committerSébastien Luttringer <seblu@seblu.net>2012-03-13 12:32:42 +0100
commit788daea5db4445f02fc156132f00829e1107dc6f (patch)
tree37487c54360633dea45035046a7af1793f1ebb99 /rc.sysinit
parent299c22ad5c124cb62e1ba35447440947fe4afb37 (diff)
Support additional binary formats at boot
This patch mount kernel binfmt_misc filesystem at boot and allow loading of a default configuration inspired from systemd binfmt.d way. Signed-off-by: Sébastien Luttringer <seblu@seblu.net>
Diffstat (limited to 'rc.sysinit')
-rwxr-xr-xrc.sysinit5
1 files changed, 4 insertions, 1 deletions
diff --git a/rc.sysinit b/rc.sysinit
index b38d350..9880995 100755
--- a/rc.sysinit
+++ b/rc.sysinit
@@ -11,8 +11,11 @@ printhl "Arch Linux\n"
printhl "${C_H2}http://www.archlinux.org"
printsep
-# mount /proc, /sys, /run, /dev, /run/lock, /dev/pts, /dev/shm (the api filesystems)
+# mount the api filesystems
+# /proc, /proc/sys/fs/binfmt_misc, /sys, /run, /dev, /run/lock, /dev/pts, /dev/shm
mountpoint -q /proc || mount -t proc proc /proc -o nosuid,noexec,nodev
+mountpoint -q /proc/sys/fs/binfmt_misc ||
+ mount -t binfmt_misc binfmt /proc/sys/fs/binfmt_misc
mountpoint -q /sys || mount -t sysfs sys /sys -o nosuid,noexec,nodev
mountpoint -q /run || mount -t tmpfs run /run -o mode=0755,nosuid,nodev
mountpoint -q /dev || mount -t devtmpfs dev /dev -o mode=0755,nosuid