grub2 (2.02~beta3-4) UNRELEASED; urgency=medium
+ [ Colin Watson ]
* Drop build-dependency on libxen-dev, unnecessary now that upstream has
taken a copy of the necessary public headers.
+ [ dann frazier ]
+ * Add grub2/update_nvram template to allow users to disable NVRAM
+ updates during package upgrades (LP: #1642298).
+
-- Colin Watson <cjwatson@debian.org> Sat, 05 Nov 2016 14:37:18 +0000
grub2 (2.02~beta3-3) unstable; urgency=medium
db_input low grub2/force_efi_extra_removable || true
;;
esac
+case @PACKAGE@ in
+ grub-*efi*|grub-ieee1275)
+ db_input low grub2/update_nvram || true
+ ;;
+esac
db_go
type systemd-detect-virt >/dev/null 2>&1 && systemd-detect-virt --quiet --container
}
+no_nvram_arg() {
+ db_get grub2/update_nvram
+ if [ "$RET" = false ]; then
+ echo "--no-nvram"
+ fi
+}
+
run_grub_install()
{
if ! grub-install $@ ; then
if [ "$RET" = true ]; then
FORCE_EXTRA_REMOVABLE="--force-extra-removable"
fi
- run_grub_install --target="$target" "$FORCE_EXTRA_REMOVABLE"
+ NO_NVRAM="$(no_nvram_arg)"
+ run_grub_install --target="$target" "$FORCE_EXTRA_REMOVABLE" "$NO_NVRAM"
fi
# /boot/grub/ has more chances of being accessible by GRUB
# Output may be empty; if so, just update the core image but
# don't install it to any PReP partition.
prep_bootdev="$(/usr/lib/grub/powerpc-ieee1275/prep-bootdev)"
- run_grub_install --target=powerpc-ieee1275 $prep_bootdev
+ NO_NVRAM="$(no_nvram_arg)"
+ run_grub_install --target=powerpc-ieee1275 $prep_bootdev "$NO_NVRAM"
;;
esac
;;
GRUB is configured successfully to be able to boot any other OS installations
correctly.
+Template: grub2/update_nvram
+Type: boolean
+Default: true
+_Description: Update NVRAM variables to automatically boot into Debian?
+ GRUB can configure your platform's NVRAM variables so that it boots into
+ Debian automatically when powered on. However, you may prefer to disable
+ this behavior and avoid changes to your boot configuration. For example,
+ if your NVRAM variables have been setup such that your system contacts a
+ PXE server on every boot, this would preserve that behavior.
+
# still unused
Template: grub2/kfreebsd_cmdline
Type: string