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

ubuntu/xenial
Cody Shepherd 5 years ago
parent 9b1fe7a820
commit 9b93c0c613
No known key found for this signature in database
GPG Key ID: 0DB7E5F05C3FAB5F

@ -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