Package: grub-installer
Version: 1.102
Severity: important
Tags: d-i patch

While hacking on #789798 and cribbing code from #767037 I spotted a syntax
error in the propagation of grub-installer/force-efi-extra-removable to
grub2/force_efi_extra_removable in that the input passed to
debconf-set-selections omits the package name.

The fix is pretty simple by analogy with other uses of debconf-set-selections,
see below.

This should be fixed in sid/stretch and backported to jessie as well.

Stretch side needs coordination with
https://lists.debian.org/debian-boot/2015/07/msg00161.html .

Ian.

>From 849a2fe74c31e8acb5768d259e23bdb480e68a4b Mon Sep 17 00:00:00 2001
From: Ian Campbell <i...@hellion.org.uk>
Date: Sun, 12 Jul 2015 22:09:24 +0100
Subject: [PATCH] Fix preseeding of grub2/force_efi_extra_removable into
 installed system

---
 grub-installer | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/grub-installer b/grub-installer
index 8bbde2e..296419e 100755
--- a/grub-installer
+++ b/grub-installer
@@ -809,7 +809,7 @@ if [ -z "$frdisk" ]; then
                        grub_install_params="$grub_install_params 
--force-extra-removable"
                        # Make sure this happens on upgrades too
                        $chroot $ROOT 'debconf-set-selections' <<EOF
-grub2/force_efi_extra_removable boolean true
+$grub_package grub2/force_efi_extra_removable boolean true
 EOF
                fi
 
-- 
2.1.4


-- System Information:
Debian Release: stretch/sid
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable'), (500, 'stable'), (500, 
'oldstable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386, armhf, armel, arm64

Kernel: Linux 3.16.0-4-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_GB.utf8, LC_CTYPE=en_GB.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Init: sysvinit (via /sbin/init)


-- 
To UNSUBSCRIBE, email to debian-boot-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: 
https://lists.debian.org/20150713075527.18190.13885.report...@dagon.hellion.org.uk

Reply via email to