Add initramfs-login

This commit is contained in:
nemunaire 2018-02-11 00:21:53 +01:00
commit e9ddee7ef1
5 changed files with 45 additions and 0 deletions

15
initramfs-login/init Executable file
View 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'