tUpdate initramfs initscript. - uwu - hardware bitcoin wallet software and build system
HTML git clone https://git.parazyd.org/uwu
DIR Log
DIR Files
DIR Refs
DIR README
DIR LICENSE
---
DIR commit 111efbb7f8bd1741060d640a9278c26e82cea7e9
DIR parent 0b90d06a83523ef02b22ee1cb86d4b58fb96f770
HTML Author: parazyd <parazyd@dyne.org>
Date: Tue, 2 Feb 2021 22:06:25 +0100
Update initramfs initscript.
Diffstat:
M initramfs/init | 22 ++++++++++++++++++++--
1 file changed, 20 insertions(+), 2 deletions(-)
---
DIR diff --git a/initramfs/init b/initramfs/init
t@@ -1,3 +1,21 @@
-#!/bin/sh
+#!/bin/busybox sh
+set -x
-exit 0
+/bin/busybox --install -s /bin
+
+mkdir -p /dev /boot /mnt /proc /sys /etc /tmp
+
+touch /etc/fstab
+
+mount -t devtmpfs none /dev
+mount -t sysfs none /sys
+mount -t proc none /proc
+mount -t tmpfs -o size=50M none /tmp
+
+mount /dev/mmcblk0p1 /boot
+cp /boot/filesystem.squashfs /tmp
+umount /boot
+
+mount -t squashfs /tmp/filesystem.squashfs /mnt
+
+exec /bin/sh