Adding hooks and making replace_kernel function

sil2100/enable-universe-none
Pat Viafore 6 years ago
parent 528b2ea57a
commit afbda566eb
No known key found for this signature in database
GPG Key ID: 20C739856E05C9D1

@ -877,3 +877,17 @@ is_live_layer () {
done
return 1
}
replace_kernel () {
mountpoint=$1
new_kernel=$2
# Install custom kernel (N.B. the trailing + retains linux-base during this
# operation)
env DEBIAN_FRONTEND=noninteractive chroot "${mountpoint}" apt-get \
remove --purge --assume-yes '^linux-.*' 'linux-base+'
env DEBIAN_FRONTEND=noninteractive chroot "${mountpoint}" apt-get \
update --assume-yes
env DEBIAN_FRONTEND=noninteractive chroot "${mountpoint}" apt-get \
install --assume-yes "${new_kernel}"
}

@ -2,6 +2,7 @@ depends root-dir
depends tarball
depends squashfs
depends disk-image
depends kvm
depends qcow2
depends vmdk
depends vagrant

@ -0,0 +1,2 @@
depends disk-image
base/kvm-image.binary
Loading…
Cancel
Save