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

This commit is contained in:
Cody Shepherd 2020-02-12 10:29:17 -08:00 committed by David Krauser
parent 6fed316068
commit a668e09ac4

View File

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