initrd/build-layer
2019-03-07 11:35:11 +11:00

15 lines
317 B
Bash
Executable File

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