tinit - 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
---
tinit (623B)
---
1 #!/bin/busybox sh
2 set -x
3
4 /bin/busybox --install -s /bin
5
6 mkdir -p /dev /boot /mnt/ro /mnt/rw /proc /sys /etc /tmp
7
8 touch /etc/fstab
9
10 mount -t devtmpfs none /dev
11 mount -t sysfs none /sys
12 mount -t proc none /proc
13 mount -t tmpfs -o size=50M none /tmp
14
15 mount /dev/mmcblk0p1 /boot
16 cp /boot/filesystem.squashfs /tmp
17 umount /boot
18
19 mount -t squashfs /tmp/filesystem.squashfs /mnt/ro
20 mount -t tmpfs size=256M none /mnt/rw
21 mkdir /mnt/rw/upper /mnt/rw/work
22 mount -t overlay \
23 -o lowerdir=/mnt/ro,upperdir=/mnt/rw/upper,workdir=/mnt/rw/work \
24 overlay /mnt/overlay
25
26 mount --move /dev /mnt/overlay dev
27 umount /proc /sys
28
29 exec /bin/sh