Last active
June 20, 2021 03:14
-
-
Save paranlee/f4695eb5338ab8f6bd2a36f1b58b6bbd to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| dd if=/dev/zero of=root.bin bs=1M count=64 | |
| mkfs.ext2 -F root.bin | |
| mkdir mnt | |
| sudo mount -o loop root.bin mnt | |
| cd mnt | |
| sudo mkdir -p bin etc dev lib proc sbin tmp usr usr/bin usr/lib usr/sbin | |
| sudo cp ~/busybox/busybox bin | |
| sudo ln -s ../bin/busybox sbin/init | |
| sudo ln -s ../bin/busybox bin/sh | |
| cd .. | |
| sudo umount mnt |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment