# dependencies: cpio mkdir dracut # download and extract dracut curl -L https://www.kernel.org/pub/linux/utils/boot/dracut/dracut-043.tar.gz | tar -xz -C dracut --strip-components 1 cd dracut ## on virtualbox shared folder (symlinks are not allowed) # make the dracut-install binary (dracut-install resolves dependencies etc.) make install/dracut-install # copy the binary to current (instead of symlink) cp install/dracut-install dracut-install ## if symlinks are available #make dracut-install # TODO build dnbd3.ko, nbd.ko (dnbd3-qcow2-rootfs/kernel_modules/Makefile) # TODO add dnbd3-qcow2-rootfs to modules.d # build initramfs ./dracut.sh -l --verbose --force