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

This commit is contained in:
Cody Shepherd 2020-02-12 10:39:19 -08:00
parent 9b1fe7a820
commit 9b93c0c613
No known key found for this signature in database
GPG Key ID: 0DB7E5F05C3FAB5F

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