initrd/build-layer

13 lines
310 B
Plaintext
Raw Normal View History

2019-02-11 05:05:43 +00:00
#! /bin/sh
set -ex
mkdir dev sys proc bin sbin usr usr/bin usr/sbin
mknod dev/null -m 0666 c 1 3
mknod dev/tty -m 0666 c 5 0
mknod dev/console -m 0600 c 5 1
curl -L -o bin/busybox https://busybox.net/downloads/binaries/$busybox_v/busybox-$arch
chmod +x bin/busybox
chroot . /bin/busybox --install -s