initrd/build-layer

15 lines
317 B
Plaintext
Raw Normal View History

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