initramfs to also use merge-rootfs
This commit is contained in:
24
initramfs/rootfs-extra/init
Executable file
24
initramfs/rootfs-extra/init
Executable file
@@ -0,0 +1,24 @@
|
||||
#!/bin/sh
|
||||
|
||||
mount -t devtmpfs devtmpfs /dev
|
||||
mount -t proc proc /proc
|
||||
mount -t sysfs sysfs /sys
|
||||
|
||||
# Spin the fan
|
||||
echo 100 > /sys/class/hwmon/hwmon0/pwm1
|
||||
|
||||
# Optional but nice
|
||||
mkdir -p /dev/pts
|
||||
mount -t devpts devpts /dev/pts
|
||||
|
||||
echo "Booting kernel took $(cut -d' ' -f1 /proc/uptime) seconds."
|
||||
echo "Dropping to shell on ttyS0..."
|
||||
|
||||
. /etc/build-info
|
||||
|
||||
while true; do
|
||||
setsid cttyhack /bin/sh
|
||||
echo "Shell exited. Starting another one..."
|
||||
done
|
||||
|
||||
exec poweroff -f
|
||||
Reference in New Issue
Block a user