#!/bin/bash # LEdoian's absurdly simple initrd generator (benchmark arc) set -eu mkdir "initrd" cp "./init" "initrd/" busybox="$(which busybox)" cp "$busybox" "initrd/busybox" pushd "./initrd" find . | cpio -o -H newc > ../initrd.img popd