diff options
Diffstat (limited to 'build_initramfs.sh')
-rwxr-xr-x | build_initramfs.sh | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/build_initramfs.sh b/build_initramfs.sh new file mode 100755 index 00000000..f2e5bd86 --- /dev/null +++ b/build_initramfs.sh @@ -0,0 +1,20 @@ +# 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 |