diff --git a/doc/README-functions.md b/doc/README-functions.md index 39dc020..dbaf149 100644 --- a/doc/README-functions.md +++ b/doc/README-functions.md @@ -116,4 +116,7 @@ Prints default `/etc/apt/sources.list` # zlibs/customise ## install_default_kernel() -Install the default kernel in the bootstrapped system \ No newline at end of file +Install the default kernel in the bootstrapped system + +## make_qemu_image() +Make a raw/qcow2 qemu image of workdir \ No newline at end of file diff --git a/zlibs/customise b/zlibs/customise index bb500ff..0212b74 100644 --- a/zlibs/customise +++ b/zlibs/customise @@ -56,6 +56,30 @@ install_default_kernel(){ notice "default kernel installed" } +_install_bootloader(){ + fn _install_bootloader $@ + root=$1 + install_dev=$2 + + sudo chroot ${root} apt-get install --assume-yes --no-install-recommends grub-pc + if [[ ! -d ${root}/boot/grub ]]; then + sudo mkdir ${root}/boot/grub + fi + + ztmp + devicemap=$ztmpfile + + + cat > ${devicemap} <