Bug#841889: grub-pc: ucf prompt that wants to change nothing except remove admin-defined config

Thorsten Glaser tg at mirbsd.de
Mon Oct 24 07:52:44 UTC 2016


Package: grub-pc
Version: 2.02~beta3-1
Severity: important
Justification: Policy §3.9.1

Upgrading GRUB:

Unpacking grub-pc (2.02~beta3-1) over (2.02~beta2-36) ...
[…]
Setting up grub-pc (2.02~beta3-1) ...

Then I get an ucf prompt, and the entire diff is:

Package configuration

            ┌─────────────────────────────┤ Configuring grub-pc ├─────────────────────────────┐
            │                                                                                 │
            │ Line by line differences between versions                                       │
            │                                                                                 │
            │ --- /etc/default/grub root.root 0644 2016-04-21 15:08:07                        │
            │ +++ /tmp/grub.Z2QbwNev1k root.root 0644 2016-10-24 07:45:50                     │
            │ @@ -8,8 +8,6 @@                                                                 │
            │  GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`               │
            │  GRUB_CMDLINE_LINUX_DEFAULT=""                                                  │
            │  GRUB_CMDLINE_LINUX="net.ifnames=0 kaslr"                                       │
            │ -GRUB_DISABLE_SUBMENU=y                                                         │
            │ -GRUB_FONT=/usr/share/grub/FixedMisc.pf2                                        │
            │                                                                                 │
            │  # Uncomment to enable BadRAM filtering, modify to suit your needs              │
            │  # This works with Linux (no patch required) and with any kernel that obtains   │
            │ @@ -25,7 +23,7 @@                                                               │
            │  #GRUB_GFXMODE=640x480                                                          │
            │                                                                                 │
            │  # Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to Linux  │
            │ -GRUB_DISABLE_LINUX_UUID=true                                                   │
            │ +#GRUB_DISABLE_LINUX_UUID=true                                                  │
            │                                                                                 │
            │  # Uncomment to disable generation of recovery mode menu entries                │
            │  #GRUB_DISABLE_RECOVERY="true"                                                  │
            │                                                                                 │
            │                                     <Ok>                                        │
            │                                                                                 │
            └─────────────────────────────────────────────────────────────────────────────────┘


This is *nothing* changed in the base config, and almost *all*
changes the local admin did reverted.

Packages, by policy, “should try to minimize the amount of prompting
they need to do”, and, furthermore, “an upgrade should not ask the same
questions again”. I also expect a package to respect the local admin’s
configuration changes, so this is border-line RC.



-- Package-specific info:

*********************** BEGIN /proc/mounts
/dev/mapper/vg--ci--busyapps-lv--root / ext4 rw,noatime,errors=remount-ro,data=ordered 0 0
*********************** END /proc/mounts

*********************** BEGIN /boot/grub/grub.cfg
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#

### BEGIN /etc/grub.d/00_header ###
if [ -s $prefix/grubenv ]; then
  set have_grubenv=true
  load_env
fi
if [ "${next_entry}" ] ; then
   set default="${next_entry}"
   set next_entry=
   save_env next_entry
   set boot_once=true
else
   set default="0"
fi

if [ x"${feature_menuentry_id}" = xy ]; then
  menuentry_id_option="--id"
else
  menuentry_id_option=""
fi

export menuentry_id_option

if [ "${prev_saved_entry}" ]; then
  set saved_entry="${prev_saved_entry}"
  save_env saved_entry
  set prev_saved_entry=
  save_env prev_saved_entry
  set boot_once=true
fi

function savedefault {
  if [ -z "${boot_once}" ]; then
    saved_entry="${chosen}"
    save_env saved_entry
  fi
}
function load_video {
  if [ x$feature_all_video_module = xy ]; then
    insmod all_video
  else
    insmod efi_gop
    insmod efi_uga
    insmod ieee1275_fb
    insmod vbe
    insmod vga
    insmod video_bochs
    insmod video_cirrus
  fi
}

insmod part_msdos
insmod lvm
insmod ext2
set root='lvmid/oyV2xM-hoQ2-b7rl-EPe4-PXyD-xK4D-84vpHC/repsLU-STzJ-8acy-Edls-nW1b-qzGW-3DYbKN'
if [ x$feature_platform_search_hint = xy ]; then
  search --no-floppy --fs-uuid --set=root --hint='lvmid/oyV2xM-hoQ2-b7rl-EPe4-PXyD-xK4D-84vpHC/repsLU-STzJ-8acy-Edls-nW1b-qzGW-3DYbKN'  d27bd1df-7c29-4e4e-a42e-8c230e868733
else
  search --no-floppy --fs-uuid --set=root d27bd1df-7c29-4e4e-a42e-8c230e868733
fi
if loadfont /usr/share/grub/FixedMisc.pf2 ; then
  set gfxmode=auto
  load_video
  insmod gfxterm
fi
terminal_output gfxterm
if [ "${recordfail}" = 1 ] ; then
  set timeout=30
else
  if [ x$feature_timeout_style = xy ] ; then
    set timeout_style=menu
    set timeout=5
  # Fallback normal timeout code in case the timeout_style feature is
  # unavailable.
  else
    set timeout=5
  fi
fi
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/05_debian_theme ###
set menu_color_normal=cyan/blue
set menu_color_highlight=white/blue
### END /etc/grub.d/05_debian_theme ###

### BEGIN /etc/grub.d/10_linux ###
function gfxmode {
	set gfxpayload="${1}"
}
set linux_gfx_mode=
export linux_gfx_mode
menuentry 'Debian GNU/Linux, with Linux 4.7.0-1-amd64' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.7.0-1-amd64-advanced-d27bd1df-7c29-4e4e-a42e-8c230e868733' {
	load_video
	insmod gzio
	if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
	insmod part_msdos
	insmod lvm
	insmod ext2
	set root='lvmid/oyV2xM-hoQ2-b7rl-EPe4-PXyD-xK4D-84vpHC/repsLU-STzJ-8acy-Edls-nW1b-qzGW-3DYbKN'
	if [ x$feature_platform_search_hint = xy ]; then
	  search --no-floppy --fs-uuid --set=root --hint='lvmid/oyV2xM-hoQ2-b7rl-EPe4-PXyD-xK4D-84vpHC/repsLU-STzJ-8acy-Edls-nW1b-qzGW-3DYbKN'  d27bd1df-7c29-4e4e-a42e-8c230e868733
	else
	  search --no-floppy --fs-uuid --set=root d27bd1df-7c29-4e4e-a42e-8c230e868733
	fi
	echo	'Loading Linux 4.7.0-1-amd64 ...'
	linux	/boot/vmlinuz-4.7.0-1-amd64 root=/dev/mapper/vg--ci--busyapps-lv--root ro net.ifnames=0 kaslr 
	echo	'Loading initial ramdisk ...'
	initrd	/boot/initrd.img-4.7.0-1-amd64
}
menuentry 'Debian GNU/Linux, with Linux 4.7.0-1-amd64 (recovery mode)' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.7.0-1-amd64-recovery-d27bd1df-7c29-4e4e-a42e-8c230e868733' {
	load_video
	insmod gzio
	if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
	insmod part_msdos
	insmod lvm
	insmod ext2
	set root='lvmid/oyV2xM-hoQ2-b7rl-EPe4-PXyD-xK4D-84vpHC/repsLU-STzJ-8acy-Edls-nW1b-qzGW-3DYbKN'
	if [ x$feature_platform_search_hint = xy ]; then
	  search --no-floppy --fs-uuid --set=root --hint='lvmid/oyV2xM-hoQ2-b7rl-EPe4-PXyD-xK4D-84vpHC/repsLU-STzJ-8acy-Edls-nW1b-qzGW-3DYbKN'  d27bd1df-7c29-4e4e-a42e-8c230e868733
	else
	  search --no-floppy --fs-uuid --set=root d27bd1df-7c29-4e4e-a42e-8c230e868733
	fi
	echo	'Loading Linux 4.7.0-1-amd64 ...'
	linux	/boot/vmlinuz-4.7.0-1-amd64 root=/dev/mapper/vg--ci--busyapps-lv--root ro single net.ifnames=0 kaslr
	echo	'Loading initial ramdisk ...'
	initrd	/boot/initrd.img-4.7.0-1-amd64
}
menuentry 'Debian GNU/Linux, with Linux 4.6.0-1-amd64' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.6.0-1-amd64-advanced-d27bd1df-7c29-4e4e-a42e-8c230e868733' {
	load_video
	insmod gzio
	if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
	insmod part_msdos
	insmod lvm
	insmod ext2
	set root='lvmid/oyV2xM-hoQ2-b7rl-EPe4-PXyD-xK4D-84vpHC/repsLU-STzJ-8acy-Edls-nW1b-qzGW-3DYbKN'
	if [ x$feature_platform_search_hint = xy ]; then
	  search --no-floppy --fs-uuid --set=root --hint='lvmid/oyV2xM-hoQ2-b7rl-EPe4-PXyD-xK4D-84vpHC/repsLU-STzJ-8acy-Edls-nW1b-qzGW-3DYbKN'  d27bd1df-7c29-4e4e-a42e-8c230e868733
	else
	  search --no-floppy --fs-uuid --set=root d27bd1df-7c29-4e4e-a42e-8c230e868733
	fi
	echo	'Loading Linux 4.6.0-1-amd64 ...'
	linux	/boot/vmlinuz-4.6.0-1-amd64 root=/dev/mapper/vg--ci--busyapps-lv--root ro net.ifnames=0 kaslr 
	echo	'Loading initial ramdisk ...'
	initrd	/boot/initrd.img-4.6.0-1-amd64
}
menuentry 'Debian GNU/Linux, with Linux 4.6.0-1-amd64 (recovery mode)' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.6.0-1-amd64-recovery-d27bd1df-7c29-4e4e-a42e-8c230e868733' {
	load_video
	insmod gzio
	if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
	insmod part_msdos
	insmod lvm
	insmod ext2
	set root='lvmid/oyV2xM-hoQ2-b7rl-EPe4-PXyD-xK4D-84vpHC/repsLU-STzJ-8acy-Edls-nW1b-qzGW-3DYbKN'
	if [ x$feature_platform_search_hint = xy ]; then
	  search --no-floppy --fs-uuid --set=root --hint='lvmid/oyV2xM-hoQ2-b7rl-EPe4-PXyD-xK4D-84vpHC/repsLU-STzJ-8acy-Edls-nW1b-qzGW-3DYbKN'  d27bd1df-7c29-4e4e-a42e-8c230e868733
	else
	  search --no-floppy --fs-uuid --set=root d27bd1df-7c29-4e4e-a42e-8c230e868733
	fi
	echo	'Loading Linux 4.6.0-1-amd64 ...'
	linux	/boot/vmlinuz-4.6.0-1-amd64 root=/dev/mapper/vg--ci--busyapps-lv--root ro single net.ifnames=0 kaslr
	echo	'Loading initial ramdisk ...'
	initrd	/boot/initrd.img-4.6.0-1-amd64
}

### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/20_linux_xen ###

### END /etc/grub.d/20_linux_xen ###

### BEGIN /etc/grub.d/30_os-prober ###
### END /etc/grub.d/30_os-prober ###

### BEGIN /etc/grub.d/30_uefi-firmware ###
### END /etc/grub.d/30_uefi-firmware ###

### BEGIN /etc/grub.d/40_custom ###
# This file provides an easy way to add custom menu entries.  Simply type the
# menu entries you want to add after this comment.  Be careful not to change
# the 'exec tail' line above.
### END /etc/grub.d/40_custom ###

### BEGIN /etc/grub.d/41_custom ###
if [ -f  ${config_directory}/custom.cfg ]; then
  source ${config_directory}/custom.cfg
elif [ -z "${config_directory}" -a -f  $prefix/custom.cfg ]; then
  source $prefix/custom.cfg;
fi
### END /etc/grub.d/41_custom ###
*********************** END /boot/grub/grub.cfg

*********************** BEGIN /proc/mdstat
cat: /proc/mdstat: No such file or directory
*********************** END /proc/mdstat

*********************** BEGIN /dev/disk/by-id
total 0
lrwxrwxrwx 1 root root 10 Oct 11 09:11 dm-name-vg--ci--busyapps-lv--root -> ../../dm-1
lrwxrwxrwx 1 root root 10 Oct 11 09:11 dm-name-vg--ci--busyapps-lv--swap -> ../../dm-0
lrwxrwxrwx 1 root root 10 Oct 11 09:11 dm-uuid-LVM-oyV2xMhoQ2b7rlEPe4PXyDxK4D84vpHCMwrmBRLhXwoa6eyllv0A1bsDsPLhf1ZY -> ../../dm-0
lrwxrwxrwx 1 root root 10 Oct 11 09:11 dm-uuid-LVM-oyV2xMhoQ2b7rlEPe4PXyDxK4D84vpHCrepsLUSTzJ8acyEdlsnW1bqzGW3DYbKN -> ../../dm-1
lrwxrwxrwx 1 root root 10 Oct 11 09:11 lvm-pv-uuid-Fkqs5n-lW8F-3HAW-4QzK-ZV3X-JQo2-slB8mY -> ../../vda1
lrwxrwxrwx 1 root root 10 Oct 11 09:11 raid-vg--ci--busyapps-lv--root -> ../../dm-1
lrwxrwxrwx 1 root root 10 Oct 11 09:11 raid-vg--ci--busyapps-lv--swap -> ../../dm-0
*********************** END /dev/disk/by-id

*********************** BEGIN /dev/disk/by-uuid
total 0
lrwxrwxrwx 1 root root 10 Oct 11 09:11 d27bd1df-7c29-4e4e-a42e-8c230e868733 -> ../../dm-1
lrwxrwxrwx 1 root root 10 Oct 11 09:11 fe275456-1411-4c48-9c2a-bf59cb5fcdab -> ../../dm-0
*********************** END /dev/disk/by-uuid

-- System Information:
Debian Release: stretch/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 4.7.0-1-amd64 (SMP w/2 CPU cores)
Locale: LANG=C, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/lksh
Init: sysvinit (via /sbin/init)

Versions of packages grub-pc depends on:
ii  debconf [debconf-2.0]  1.5.59
ii  dpkg                   1.18.10
ii  grub-common            2.02~beta3-1
iu  grub-pc-bin            2.02~beta3-1
iu  grub2-common           2.02~beta3-1
ii  ucf                    3.0036

grub-pc recommends no packages.

grub-pc suggests no packages.

-- debconf information:
  grub2/kfreebsd_cmdline_default: quiet
  grub-pc/install_devices_failed: false
  grub-pc/timeout: 5
  grub2/force_efi_extra_removable: false
  grub-pc/hidden_timeout: false
  grub-pc/postrm_purge_boot_grub: false
  grub-pc/install_devices_disks_changed:
* grub-pc/install_devices: /dev/vda
  grub-pc/install_devices_failed_upgrade: true
  grub-pc/install_devices_empty: false
* grub2/linux_cmdline: net.ifnames=0 kaslr
  grub-pc/kopt_extracted: false
  grub-pc/partition_description:
  grub-pc/mixed_legacy_and_grub2: true
  grub2/device_map_regenerated:
* grub2/linux_cmdline_default:
  grub-pc/disk_description:
  grub-pc/chainload_from_menu.lst: true
  grub2/kfreebsd_cmdline:



More information about the Pkg-grub-devel mailing list