On Fri 10 Jul 2020 at 02:39:08 (-0400), Borden Rhodes wrote: > > Please tell us the output of: > > dpkg -l | grep -i grub > > Sorry for missing this. Please see below: > > # dpkg -l | grep -i grub > ii grub-common 2.04-8 amd64 > ii grub-efi-amd64-bin 2.04-8 amd64 > ii grub-efi-amd64-signed 1+2.04+8 amd64 > rc grub-imageboot 0.6 all > ii grub2-common 2.04-8 amd64
Mine: ii grub-common 2.02+dfsg1-20 ii grub-efi-amd64 2.02+dfsg1-20 ii grub-efi-amd64-bin 2.02+dfsg1-20 ii grub-efi-amd64-signed 1+2.02+dfsg1+20 ii grub-rescue-pc 2.02+dfsg1-20 ii grub2-common 2.02+dfsg1-20 > > The package grub2-common has the file: > > /usr/share/grub/default/grub > > Which is the default /etc/default/grub file > > Thank you for this. I figured there was such a template file but I didn't know > where to look. It would be nice to have this added to > https://wiki.debian.org/Grub so people know how to reconstruct a fresh > template file if theirs gets destroyed (or, in my case, uninstalled) > > > The actual package which creates /etc/default/grub in the d-i is > > one of grub-pc and the packages it conflicts with, viz: > > grub (<< 0.97-54), grub-coreboot, grub-efi-amd64, grub-efi-ia32, > > grub-ieee1275, grub-legacy, grub-xen > > So that might be the explanation. I removed grub-efi-amd64 to install > grub-efi-amd64-signed. The latter doesn't appear to create its own > /etc/default/grub file. > > Is this a bug that I should report or is this by design? It's a misunderstanding. You removed grub-efi-amd64 *in order to* install grub-efi-amd64-signed. You would be asked why? > > To find out which, either look at dpkg -l or type > > $ grep -B2 'Creating config file /etc/def' /var/log/installer/syslog > > if you're a member of group adm. > > I think this file has long since been deleted. I think I installed Debian on > this machine when I got it over 2 years ago. Apr 4 01:17:15 in-target: Setting up efibootmgr (15-1) ... Apr 4 01:17:15 in-target: Setting up mokutil (0.3.0+1538710437.fb6250f-1) ... Apr 4 01:17:15 in-target: Setting up grub-efi-amd64-signed (1+2.02+dfsg1+20) ... Apr 4 01:17:15 in-target: Setting up grub2-common (2.02+dfsg1-20) ... Apr 4 01:17:15 in-target: Setting up shim-signed-common (1.33+15+1533136590.3beb971-7) ... Apr 4 01:17:15 in-target: No DKMS packages installed: not changing Secure Boot validation state. Apr 4 01:17:15 in-target: Setting up grub-efi-amd64-bin (2.02+dfsg1-20) ... Apr 4 01:17:16 in-target: Setting up shim-unsigned (15+1533136590.3beb971-7) ... Apr 4 01:17:16 in-target: Setting up grub-efi-amd64 (2.02+dfsg1-20) ... Apr 4 01:17:16 in-target: Apr 4 01:17:16 in-target: Creating config file /etc/default/grub with new version Apr 4 01:17:16 in-target: Setting up shim-helpers-amd64-signed (1+15+1533136590.3beb971+7) ... Apr 4 01:17:16 in-target: Setting up shim-signed:amd64 (1.33+15+1533136590.3beb971-7) ... Apr 4 01:17:16 in-target: Processing triggers for man-db (2.8.5-2) ... Apr 4 01:17:17 grub-installer: info: Additionally installing shim-signed to go with grub-efi-amd64 That's a longer extract to include more of the grub packages being installed by d-i; amongst them grub-efi-amd64-signed as well as grub-efi-amd64. Cheers, David.