Added kernel-extra.config for customization

This commit is contained in:
2026-03-21 02:26:13 +08:00
parent 9c97871f97
commit a7236ed3b0
9 changed files with 177 additions and 20 deletions

View File

@@ -1,20 +1,19 @@
#!/bin/sh
mount -t proc none /proc
mount -t sysfs none /sys
mount -t devtmpfs devtmpfs /dev
mount -t proc proc /proc
mount -t sysfs sysfs /sys
cat <<!
# 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..."
Booting kernel took $(cut -d' ' -f1 /proc/uptime) seconds.
while true; do
setsid cttyhack /bin/sh
echo "Shell exited. Starting another one..."
done
!
exec /bin/sh
EOF
exec poweroff -f