summaryrefslogtreecommitdiff
path: root/create_installroot/rootfs-arm64/init
diff options
context:
space:
mode:
authorFreeArtMan <dos21h@gmail.com>2023-12-21 12:54:48 +0000
committerFreeArtMan <dos21h@gmail.com>2023-12-21 12:54:48 +0000
commit860350456aca9cbb5e8728fd71cbb7a4023578db (patch)
treeba8045273d4b19c4f584cfba7165484f45e70d3f /create_installroot/rootfs-arm64/init
parent6db32478d5951f01fd055c61176db0fea84379a7 (diff)
downloados201-860350456aca9cbb5e8728fd71cbb7a4023578db.tar.gz
os201-860350456aca9cbb5e8728fd71cbb7a4023578db.zip
Added initrd script. Add bootable example with prebuilt images
Diffstat (limited to 'create_installroot/rootfs-arm64/init')
-rwxr-xr-xcreate_installroot/rootfs-arm64/init9
1 files changed, 9 insertions, 0 deletions
diff --git a/create_installroot/rootfs-arm64/init b/create_installroot/rootfs-arm64/init
new file mode 100755
index 0000000..53ad0cc
--- /dev/null
+++ b/create_installroot/rootfs-arm64/init
@@ -0,0 +1,9 @@
+#!/sh
+/busybox echo "Boom" > /dev/kmsg
+export PATH=/sbin:/usr/sbin:/bin:/usr/bin:/
+/busybox mount -t proc none /proc
+/busybox mount -t sysfs none /sys
+/buysbox mount -t devtmpfs -o nosuid,mode=0755 udev /dev
+/busybox mount /dev/pts
+/busybox mount -t devpts -o noexec,nosuid,gid=5,mode=0620 devpts /dev/pts || true
+exec /busybox sh