Add initramfs-login
This commit is contained in:
parent
5746c8269f
commit
e9ddee7ef1
5 changed files with 45 additions and 0 deletions
15
initramfs-login/init
Executable file
15
initramfs-login/init
Executable file
|
|
@ -0,0 +1,15 @@
|
|||
#!/bin/sh
|
||||
|
||||
mount -t proc proc /proc
|
||||
mount -t sysfs sysfs /sys
|
||||
|
||||
echo 0 > /proc/sys/kernel/printk
|
||||
|
||||
busybox --install -s
|
||||
|
||||
mknod /dev/null c 1 3
|
||||
mknod /dev/tty c 5 0
|
||||
|
||||
mdev -s
|
||||
|
||||
exec setsid sh -c 'exec sh /init2 </dev/tty1 >/dev/tty1 2>&1'
|
||||
Reference in a new issue