mirror of
https://gitlab.archlinux.org/tpowa/archboot.git
synced 2024-09-20 03:50:37 +02:00
add init changes from mkinitcpio
This commit is contained in:
parent
cb53479c36
commit
d4efb0b863
1 changed files with 13 additions and 2 deletions
|
@ -5,9 +5,20 @@ ln -s /bin/bash /bin/sh
|
|||
ln -s /sbin/modprobe /bin/modprobe
|
||||
|
||||
msg ":: Loading Initramfs"
|
||||
/bin/mount -t proc proc /proc -o nosuid,noexec,nodev
|
||||
/bin/mount -t sysfs sys /sys -o nosuid,noexec,nodev
|
||||
|
||||
/bin/mount -t sysfs none /sys
|
||||
/bin/mount -t proc none /proc
|
||||
if grep -q devtmpfs /proc/filesystems 2>/dev/null; then
|
||||
/bin/mount -n -t devtmpfs udev /dev -o mode=0755,size=10M,nosuid
|
||||
else
|
||||
/bin/mount -n -t tmpfs udev /dev -o mode=0755,size=10M,nosuid
|
||||
# We don't have devtmpfs, so add the most important standard devices
|
||||
/bin/mknod /dev/null c 1 3
|
||||
/bin/mknod /dev/zero c 1 5
|
||||
/bin/mknod /dev/console c 5 1
|
||||
# /dev/mem is needed if we want to load uvesafb before triggering uevents
|
||||
/bin/mknod /dev/mem c 1 1
|
||||
fi
|
||||
|
||||
read CMDLINE </proc/cmdline
|
||||
export CMDLINE
|
||||
|
|
Loading…
Reference in a new issue