live-build/ubuntu-cpc/hooks/033-disk-image-uefi.binary: call apt-get

update *before* installing packages, not after.
ubuntu/artful
Steve Langasek 7 years ago
parent a246300940
commit 8589d3548f

2
debian/changelog vendored

@ -8,6 +8,8 @@ livecd-rootfs (2.454) UNRELEASED; urgency=medium
images.
* live-build/functions: also call 'apt-get update' after mounting the
blank /var/lib/apt.
* live-build/ubuntu-cpc/hooks/033-disk-image-uefi.binary: call apt-get
update *before* installing packages, not after.
-- Steve Langasek <steve.langasek@ubuntu.com> Tue, 12 Sep 2017 14:33:02 -0700

@ -62,6 +62,8 @@ install_grub() {
efi_boot_dir="/boot/efi/EFI/BOOT"
chroot mountpoint mkdir -p "${efi_boot_dir}"
chroot mountpoint apt-get -y update
# UEFI GRUB modules are meant to be used equally by Secure Boot and
# non-Secure Boot systems. If you need an extra module not already
# provided or run into "Secure Boot policy forbids loading X" problems,
@ -106,7 +108,6 @@ install_grub() {
chroot mountpoint dpkg-divert --remove --local --rename /etc/grub.d/30_os-prober
chroot mountpoint apt-get -y clean
chroot mountpoint apt-get -y update
rm mountpoint/tmp/device.map
sync

Loading…
Cancel
Save