From 4d7509f570693af1083cb3c96948fbd6bf4e8b90 Mon Sep 17 00:00:00 2001 From: Steve Langasek Date: Tue, 3 Oct 2017 17:31:16 +0200 Subject: [PATCH] Fix a reference to an undefined variable in a script that's set -u. --- debian/changelog | 1 + live-build/ubuntu-cpc/hooks/033-disk-image-uefi.binary | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/debian/changelog b/debian/changelog index d753a243..e5defa4f 100644 --- a/debian/changelog +++ b/debian/changelog @@ -26,6 +26,7 @@ livecd-rootfs (2.408.19) UNRELEASED; urgency=medium * If we're using SUBPROJECT=minimize, and tzdata is not installed, remove files that have been left behind. This is a workaround for a bug that should be fixed in tzdata. + * Fix a reference to an undefined variable in a script that's set -u. [ Balint Reczey ] * Mount using --make-rslave to ensure safe unmounts for rbind mounts diff --git a/live-build/ubuntu-cpc/hooks/033-disk-image-uefi.binary b/live-build/ubuntu-cpc/hooks/033-disk-image-uefi.binary index 85b17880..0ac9da59 100755 --- a/live-build/ubuntu-cpc/hooks/033-disk-image-uefi.binary +++ b/live-build/ubuntu-cpc/hooks/033-disk-image-uefi.binary @@ -61,7 +61,7 @@ install_grub() { efi_boot_dir="/boot/efi/EFI/BOOT" chroot mountpoint mkdir -p "${efi_boot_dir}" - if [ "$SUBPROJECT" = minimize ] && [ -n "$partuuid" ]; then + if [ "${SUBPROJECT:-}" = minimize ] && [ -n "$partuuid" ]; then # FIXME: code duplicated between 032-disk-image.binary # and 033-disk-image-uefi.binary. We want to fix this to not # have initramfs-tools installed at all on these images.