Properly setup the chroot before using the network in buildd hook.

sil2100/appliance-images
Cody Shepherd 5 years ago committed by David Krauser
parent f5c65024a3
commit 68e8afd528

@ -1,7 +1,18 @@
#!/bin/sh #!/bin/sh
set -e set -e
# This is run after 02-disk-image-uefi.binary because # This is run after 02-disk-image-uefi.binary because
# we don't want policyrcd-script-zg2 installed in # we don't want policyrcd-script-zg2 installed in
# bootable images. # bootable images.
. config/functions
cleanup() {
teardown_mountpoint chroot
}
trap cleanup EXIT
setup_mountpoint chroot
chroot chroot apt-get install -y policyrcd-script-zg2 chroot chroot apt-get install -y policyrcd-script-zg2

Loading…
Cancel
Save