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