summaryrefslogtreecommitdiffstats
path: root/build_initramfs.sh
blob: f2e5bd86a71be09b094dd8d3dd4ebcc34c1672c8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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