Bug#943387: upgrade-from-grub-legacy: environment variable DPKG_MAINTSCRIPT_NAME is required

Martin von Wittich martin.von.wittich at iserv.eu
Thu Oct 24 10:05:45 BST 2019


Package: grub-pc
Version: 2.02~beta3-5+deb9u2
Severity: normal
Tags: patch

Dear Maintainer,

apparently, one of our servers still has some GRUB legacy files
installed, which causes `dpkg-reconfigure grub-pc` to tell me that I
have to run `upgrade-from-grub-legacy`. That doesn't work though:


host ~ # upgrade-from-grub-legacy

core.img doesn't exist, trying to create it.

i386-pc wird für Ihre Plattform installiert.
installation beendet. Keine Fehler aufgetreten.
dpkg: Warnung: Version »dummy-version« hat falsche Syntax: Versionsnummer beginnt nicht mit einer Ziffer
dpkg: Warnung: Version »dummy-version« hat falsche Syntax: Versionsnummer beginnt nicht mit einer Ziffer
dpkg: Warnung: Version »dummy-version« hat falsche Syntax: Versionsnummer beginnt nicht mit einer Ziffer
i386-pc wird für Ihre Plattform installiert.
installation beendet. Keine Fehler aufgetreten.
i386-pc wird für Ihre Plattform installiert.
installation beendet. Keine Fehler aufgetreten.
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-4.9.0-11-amd64
Found initrd image: /boot/initrd.img-4.9.0-11-amd64
Found linux image: /boot/vmlinuz-4.9.0-8-amd64
Found initrd image: /boot/initrd.img-4.9.0-8-amd64
Found memtest86+ image: /boot/memtest86+.bin
Found memtest86+ multiboot image: /boot/memtest86+_multiboot.bin
Found linux image: /boot/vmlinuz-4.9.0-11-amd64
Found initrd image: /boot/initrd.img-4.9.0-11-amd64
Found linux image: /boot/vmlinuz-4.9.0-8-amd64
Found initrd image: /boot/initrd.img-4.9.0-8-amd64
done
dpkg-maintscript-helper: error: environment variable DPKG_MAINTSCRIPT_NAME is required


I've looked into the script and determined that the following command causes
this error:


host ~ # UPGRADE_FROM_GRUB_LEGACY=1 /var/lib/dpkg/info/grub-pc.postinst configure dummy-version
dpkg: Warnung: Version »dummy-version« hat falsche Syntax: Versionsnummer beginnt nicht mit einer Ziffer
dpkg: Warnung: Version »dummy-version« hat falsche Syntax: Versionsnummer beginnt nicht mit einer Ziffer
dpkg: Warnung: Version »dummy-version« hat falsche Syntax: Versionsnummer beginnt nicht mit einer Ziffer
i386-pc wird für Ihre Plattform installiert.
installation beendet. Keine Fehler aufgetreten.
i386-pc wird für Ihre Plattform installiert.
installation beendet. Keine Fehler aufgetreten.
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-4.9.0-11-amd64
Found initrd image: /boot/initrd.img-4.9.0-11-amd64
Found linux image: /boot/vmlinuz-4.9.0-8-amd64
Found initrd image: /boot/initrd.img-4.9.0-8-amd64
Found memtest86+ image: /boot/memtest86+.bin
Found memtest86+ multiboot image: /boot/memtest86+_multiboot.bin
Found linux image: /boot/vmlinuz-4.9.0-11-amd64
Found initrd image: /boot/initrd.img-4.9.0-11-amd64
Found linux image: /boot/vmlinuz-4.9.0-8-amd64
Found initrd image: /boot/initrd.img-4.9.0-8-amd64
done
dpkg-maintscript-helper: error: environment variable DPKG_MAINTSCRIPT_NAME is required


As far as I can tell, the issue occurs because upgrade-from-grub-legacy calls
the postinst directly without providing the DPKG_MAINTSCRIPT_NAME environment
variable (which dpkg would do when it calls a maintainer script), and the
command dpkg-maintscript-helper inside this postinst script then fails because
it requires this variable.

I've attached a patch that resolves the issue for me.


-- Package-specific info:

*********************** BEGIN /proc/mounts
/dev/md1 / ext4 rw,relatime,errors=remount-ro,data=ordered 0 0
/dev/md1 /var/lib/docker/containers/2f9ea6c5164b0a0923d88379717a4435cb4250e0d8fe8b707f32eae1e70a212d/mounts ext4 rw,relatime,errors=remount-ro,data=ordered 0 0
/dev/md1 /var/lib/docker/containers/577647308b1ba37730d8006f453628b5042427485e0927957171872b10d6c37a/mounts ext4 rw,relatime,errors=remount-ro,data=ordered 0 0
/dev/md1 /var/lib/docker/containers/10800baf61f8ba8b1d6c2fa68e023887f651c04d1996c21e7ba1947bbaf401d3/mounts ext4 rw,relatime,errors=remount-ro,data=ordered 0 0
/dev/md1 /var/lib/docker/containers/0525084a5e3e5504f7468fa1111df9bfb2f22ad7e5ee758e7b4270ffaa3d65d3/mounts ext4 rw,relatime,errors=remount-ro,data=ordered 0 0
*********************** END /proc/mounts

*********************** BEGIN /boot/grub/device.map
(hd0)	/dev/disk/by-id/ata-ST2000NM0033-9ZM175_Z1X4QRBZ
(hd1)	/dev/disk/by-id/ata-ST2000NM0033-9ZM175_Z1X4QRP9
*********************** END /boot/grub/device.map

*********************** 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
}

terminal_input console
terminal_output console
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/09_linux_amd64 ###
### END /etc/grub.d/09_linux_amd64 ###

### BEGIN /etc/grub.d/10_linux ###
function gfxmode {
	set gfxpayload="${1}"
}
set linux_gfx_mode=
export linux_gfx_mode
menuentry 'Debian GNU/Linux' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-37ecb3eb-155b-440b-9faf-977698480dd4' {
	load_video
	insmod gzio
	if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
	insmod part_gpt
	insmod part_gpt
	insmod diskfilter
	insmod mdraid1x
	insmod ext2
	set root='mduuid/830a760c237f106fd67bb51cd6c72183'
	if [ x$feature_platform_search_hint = xy ]; then
	  search --no-floppy --fs-uuid --set=root --hint='mduuid/830a760c237f106fd67bb51cd6c72183'  37ecb3eb-155b-440b-9faf-977698480dd4
	else
	  search --no-floppy --fs-uuid --set=root 37ecb3eb-155b-440b-9faf-977698480dd4
	fi
	echo	'Loading Linux 4.9.0-11-amd64 ...'
	linux	/boot/vmlinuz-4.9.0-11-amd64 root=UUID=37ecb3eb-155b-440b-9faf-977698480dd4 ro  quiet
	echo	'Loading initial ramdisk ...'
	initrd	/boot/initrd.img-4.9.0-11-amd64
}
submenu 'Advanced options for Debian GNU/Linux' $menuentry_id_option 'gnulinux-advanced-37ecb3eb-155b-440b-9faf-977698480dd4' {
	menuentry 'Debian GNU/Linux, with Linux 4.9.0-11-amd64' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.9.0-11-amd64-advanced-37ecb3eb-155b-440b-9faf-977698480dd4' {
		load_video
		insmod gzio
		if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
		insmod part_gpt
		insmod part_gpt
		insmod diskfilter
		insmod mdraid1x
		insmod ext2
		set root='mduuid/830a760c237f106fd67bb51cd6c72183'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint='mduuid/830a760c237f106fd67bb51cd6c72183'  37ecb3eb-155b-440b-9faf-977698480dd4
		else
		  search --no-floppy --fs-uuid --set=root 37ecb3eb-155b-440b-9faf-977698480dd4
		fi
		echo	'Loading Linux 4.9.0-11-amd64 ...'
		linux	/boot/vmlinuz-4.9.0-11-amd64 root=UUID=37ecb3eb-155b-440b-9faf-977698480dd4 ro  quiet
		echo	'Loading initial ramdisk ...'
		initrd	/boot/initrd.img-4.9.0-11-amd64
	}
	menuentry 'Debian GNU/Linux, with Linux 4.9.0-11-amd64 (sysvinit)' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.9.0-11-amd64-init-sysvinit-37ecb3eb-155b-440b-9faf-977698480dd4' {
		load_video
		insmod gzio
		if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
		insmod part_gpt
		insmod part_gpt
		insmod diskfilter
		insmod mdraid1x
		insmod ext2
		set root='mduuid/830a760c237f106fd67bb51cd6c72183'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint='mduuid/830a760c237f106fd67bb51cd6c72183'  37ecb3eb-155b-440b-9faf-977698480dd4
		else
		  search --no-floppy --fs-uuid --set=root 37ecb3eb-155b-440b-9faf-977698480dd4
		fi
		echo	'Loading Linux 4.9.0-11-amd64 ...'
		linux	/boot/vmlinuz-4.9.0-11-amd64 root=UUID=37ecb3eb-155b-440b-9faf-977698480dd4 ro  quiet init=/lib/sysvinit/init
		echo	'Loading initial ramdisk ...'
		initrd	/boot/initrd.img-4.9.0-11-amd64
	}
	menuentry 'Debian GNU/Linux, with Linux 4.9.0-11-amd64 (recovery mode)' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.9.0-11-amd64-recovery-37ecb3eb-155b-440b-9faf-977698480dd4' {
		load_video
		insmod gzio
		if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
		insmod part_gpt
		insmod part_gpt
		insmod diskfilter
		insmod mdraid1x
		insmod ext2
		set root='mduuid/830a760c237f106fd67bb51cd6c72183'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint='mduuid/830a760c237f106fd67bb51cd6c72183'  37ecb3eb-155b-440b-9faf-977698480dd4
		else
		  search --no-floppy --fs-uuid --set=root 37ecb3eb-155b-440b-9faf-977698480dd4
		fi
		echo	'Loading Linux 4.9.0-11-amd64 ...'
		linux	/boot/vmlinuz-4.9.0-11-amd64 root=UUID=37ecb3eb-155b-440b-9faf-977698480dd4 ro single 
		echo	'Loading initial ramdisk ...'
		initrd	/boot/initrd.img-4.9.0-11-amd64
	}
	menuentry 'Debian GNU/Linux, with Linux 4.9.0-8-amd64' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.9.0-8-amd64-advanced-37ecb3eb-155b-440b-9faf-977698480dd4' {
		load_video
		insmod gzio
		if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
		insmod part_gpt
		insmod part_gpt
		insmod diskfilter
		insmod mdraid1x
		insmod ext2
		set root='mduuid/830a760c237f106fd67bb51cd6c72183'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint='mduuid/830a760c237f106fd67bb51cd6c72183'  37ecb3eb-155b-440b-9faf-977698480dd4
		else
		  search --no-floppy --fs-uuid --set=root 37ecb3eb-155b-440b-9faf-977698480dd4
		fi
		echo	'Loading Linux 4.9.0-8-amd64 ...'
		linux	/boot/vmlinuz-4.9.0-8-amd64 root=UUID=37ecb3eb-155b-440b-9faf-977698480dd4 ro  quiet
		echo	'Loading initial ramdisk ...'
		initrd	/boot/initrd.img-4.9.0-8-amd64
	}
	menuentry 'Debian GNU/Linux, with Linux 4.9.0-8-amd64 (sysvinit)' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.9.0-8-amd64-init-sysvinit-37ecb3eb-155b-440b-9faf-977698480dd4' {
		load_video
		insmod gzio
		if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
		insmod part_gpt
		insmod part_gpt
		insmod diskfilter
		insmod mdraid1x
		insmod ext2
		set root='mduuid/830a760c237f106fd67bb51cd6c72183'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint='mduuid/830a760c237f106fd67bb51cd6c72183'  37ecb3eb-155b-440b-9faf-977698480dd4
		else
		  search --no-floppy --fs-uuid --set=root 37ecb3eb-155b-440b-9faf-977698480dd4
		fi
		echo	'Loading Linux 4.9.0-8-amd64 ...'
		linux	/boot/vmlinuz-4.9.0-8-amd64 root=UUID=37ecb3eb-155b-440b-9faf-977698480dd4 ro  quiet init=/lib/sysvinit/init
		echo	'Loading initial ramdisk ...'
		initrd	/boot/initrd.img-4.9.0-8-amd64
	}
	menuentry 'Debian GNU/Linux, with Linux 4.9.0-8-amd64 (recovery mode)' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.9.0-8-amd64-recovery-37ecb3eb-155b-440b-9faf-977698480dd4' {
		load_video
		insmod gzio
		if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
		insmod part_gpt
		insmod part_gpt
		insmod diskfilter
		insmod mdraid1x
		insmod ext2
		set root='mduuid/830a760c237f106fd67bb51cd6c72183'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint='mduuid/830a760c237f106fd67bb51cd6c72183'  37ecb3eb-155b-440b-9faf-977698480dd4
		else
		  search --no-floppy --fs-uuid --set=root 37ecb3eb-155b-440b-9faf-977698480dd4
		fi
		echo	'Loading Linux 4.9.0-8-amd64 ...'
		linux	/boot/vmlinuz-4.9.0-8-amd64 root=UUID=37ecb3eb-155b-440b-9faf-977698480dd4 ro single 
		echo	'Loading initial ramdisk ...'
		initrd	/boot/initrd.img-4.9.0-8-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/20_memtest86+ ###
menuentry "Memory test (memtest86+)" {
	insmod part_gpt
	insmod part_gpt
	insmod diskfilter
	insmod mdraid1x
	insmod ext2
	set root='mduuid/830a760c237f106fd67bb51cd6c72183'
	if [ x$feature_platform_search_hint = xy ]; then
	  search --no-floppy --fs-uuid --set=root --hint='mduuid/830a760c237f106fd67bb51cd6c72183'  37ecb3eb-155b-440b-9faf-977698480dd4
	else
	  search --no-floppy --fs-uuid --set=root 37ecb3eb-155b-440b-9faf-977698480dd4
	fi
	linux16	/boot/memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
	insmod part_gpt
	insmod part_gpt
	insmod diskfilter
	insmod mdraid1x
	insmod ext2
	set root='mduuid/830a760c237f106fd67bb51cd6c72183'
	if [ x$feature_platform_search_hint = xy ]; then
	  search --no-floppy --fs-uuid --set=root --hint='mduuid/830a760c237f106fd67bb51cd6c72183'  37ecb3eb-155b-440b-9faf-977698480dd4
	else
	  search --no-floppy --fs-uuid --set=root 37ecb3eb-155b-440b-9faf-977698480dd4
	fi
	linux16	/boot/memtest86+.bin console=ttyS0,115200n8
}
menuentry "Memory test (memtest86+, experimental multiboot)" {
	insmod part_gpt
	insmod part_gpt
	insmod diskfilter
	insmod mdraid1x
	insmod ext2
	set root='mduuid/830a760c237f106fd67bb51cd6c72183'
	if [ x$feature_platform_search_hint = xy ]; then
	  search --no-floppy --fs-uuid --set=root --hint='mduuid/830a760c237f106fd67bb51cd6c72183'  37ecb3eb-155b-440b-9faf-977698480dd4
	else
	  search --no-floppy --fs-uuid --set=root 37ecb3eb-155b-440b-9faf-977698480dd4
	fi
	multiboot	/boot/memtest86+_multiboot.bin
}
menuentry "Memory test (memtest86+, serial console 115200, experimental multiboot)" {
	insmod part_gpt
	insmod part_gpt
	insmod diskfilter
	insmod mdraid1x
	insmod ext2
	set root='mduuid/830a760c237f106fd67bb51cd6c72183'
	if [ x$feature_platform_search_hint = xy ]; then
	  search --no-floppy --fs-uuid --set=root --hint='mduuid/830a760c237f106fd67bb51cd6c72183'  37ecb3eb-155b-440b-9faf-977698480dd4
	else
	  search --no-floppy --fs-uuid --set=root 37ecb3eb-155b-440b-9faf-977698480dd4
	fi
	multiboot	/boot/memtest86+_multiboot.bin console=ttyS0,115200n8
}
### END /etc/grub.d/20_memtest86+ ###

### BEGIN /etc/grub.d/25_iserv_pw ###
### PASSWORD LINE REMOVED ###
	load_video
	insmod gzio
	if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
	insmod part_gpt
	insmod part_gpt
	insmod diskfilter
	insmod mdraid1x
	insmod ext2
	set root='mduuid/830a760c237f106fd67bb51cd6c72183'
	if [ x$feature_platform_search_hint = xy ]; then
	  search --no-floppy --fs-uuid --set=root --hint='mduuid/830a760c237f106fd67bb51cd6c72183'  37ecb3eb-155b-440b-9faf-977698480dd4
	else
	  search --no-floppy --fs-uuid --set=root 37ecb3eb-155b-440b-9faf-977698480dd4
	fi
	echo	'Loading Linux 4.9.0-11-amd64 ...'
	linux	/boot/vmlinuz-4.9.0-11-amd64 root=UUID=37ecb3eb-155b-440b-9faf-977698480dd4 rw init=/usr/lib/iserv/bootpw
	echo	'Loading initial ramdisk ...'
	initrd	/boot/initrd.img-4.9.0-11-amd64
}
### END /etc/grub.d/25_iserv_pw ###

### 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
Personalities : [raid1] [linear] [multipath] [raid0] [raid6] [raid5] [raid4] [raid10] 
md1 : active raid1 sdb2[1] sda2[0]
      1953381248 blocks super 1.2 [2/2] [UU]
      
unused devices: <none>
*********************** END /proc/mdstat

*********************** BEGIN /dev/disk/by-id
total 0
lrwxrwxrwx 1 root root  9 Oct 24 10:32 ata-ST2000NM0033-9ZM175_Z1X4QRBZ -> ../../sda
lrwxrwxrwx 1 root root 10 Oct 24 10:32 ata-ST2000NM0033-9ZM175_Z1X4QRBZ-part1 -> ../../sda1
lrwxrwxrwx 1 root root 10 Oct 24 10:32 ata-ST2000NM0033-9ZM175_Z1X4QRBZ-part2 -> ../../sda2
lrwxrwxrwx 1 root root  9 Oct 24 10:33 ata-ST2000NM0033-9ZM175_Z1X4QRP9 -> ../../sdb
lrwxrwxrwx 1 root root 10 Oct 24 10:33 ata-ST2000NM0033-9ZM175_Z1X4QRP9-part1 -> ../../sdb1
lrwxrwxrwx 1 root root 10 Oct 24 10:33 ata-ST2000NM0033-9ZM175_Z1X4QRP9-part2 -> ../../sdb2
lrwxrwxrwx 1 root root  9 Apr 15  2019 md-name-iserv.redacted.de:1 -> ../../md1
lrwxrwxrwx 1 root root  9 Apr 15  2019 md-uuid-830a760c:237f106f:d67bb51c:d6c72183 -> ../../md1
lrwxrwxrwx 1 root root  9 Apr 15  2019 usb-AMI_Virtual_CDROM0_AAAABBBBCCCC1-0:0 -> ../../sr0
lrwxrwxrwx 1 root root  9 Apr 15  2019 usb-AMI_Virtual_Floppy0_AAAABBBBCCCC2-0:0 -> ../../sdc
lrwxrwxrwx 1 root root  9 Apr 15  2019 usb-AMI_Virtual_HDISK0_AAAABBBBCCCC3-0:0 -> ../../sdd
lrwxrwxrwx 1 root root  9 Oct 24 10:33 wwn-0x5000c5007b2b97cc -> ../../sdb
lrwxrwxrwx 1 root root 10 Oct 24 10:33 wwn-0x5000c5007b2b97cc-part1 -> ../../sdb1
lrwxrwxrwx 1 root root 10 Oct 24 10:33 wwn-0x5000c5007b2b97cc-part2 -> ../../sdb2
lrwxrwxrwx 1 root root  9 Oct 24 10:32 wwn-0x5000c5007b2b9b90 -> ../../sda
lrwxrwxrwx 1 root root 10 Oct 24 10:32 wwn-0x5000c5007b2b9b90-part1 -> ../../sda1
lrwxrwxrwx 1 root root 10 Oct 24 10:32 wwn-0x5000c5007b2b9b90-part2 -> ../../sda2
*********************** END /dev/disk/by-id

*********************** BEGIN /dev/disk/by-uuid
total 0
lrwxrwxrwx 1 root root 9 Apr 15  2019 37ecb3eb-155b-440b-9faf-977698480dd4 -> ../../md1
*********************** END /dev/disk/by-uuid

-- System Information:
Debian Release: 9.11
  APT prefers oldstable-updates
  APT policy: (500, 'oldstable-updates'), (500, 'oldstable')
Architecture: i386 (x86_64)
Foreign Architectures: amd64

Kernel: Linux 4.9.0-8-amd64 (SMP w/8 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8), LANGUAGE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages grub-pc depends on:
ii  debconf [debconf-2.0]  1.5.61
ii  dpkg                   1.18.25
ii  grub-common            2.02~beta3-5+deb9u2
ii  grub-pc-bin            2.02~beta3-5+deb9u2
ii  grub2-common           2.02~beta3-5+deb9u2
ii  ucf                    3.0036

grub-pc recommends no packages.

grub-pc suggests no packages.

-- debconf information:
* grub2/linux_cmdline_default: quiet
  grub-pc/timeout: 5
  grub-pc/disk_description:
  grub-pc/hidden_timeout: false
  grub-pc/kopt_extracted: true
  grub-pc/partition_description:
  grub2/device_map_regenerated:
  grub-pc/install_devices_failed_upgrade: true
* grub-pc/install_devices: /dev/disk/by-id/ata-ST2000NM0033-9ZM175_Z1X4QRBZ, /dev/disk/by-id/ata-ST2000NM0033-9ZM175_Z1X4QRP9
  grub2/update_nvram: true
  grub2/kfreebsd_cmdline_default: quiet
* grub-pc/install_devices_disks_changed: /dev/disk/by-id/ata-ST2000NM0033-9ZM175_Z1X4QRBZ, /dev/disk/by-id/ata-ST2000NM0033-9ZM175_Z1X4QRP9
  grub-pc/install_devices_empty: false
  grub-pc/mixed_legacy_and_grub2: true
  grub-pc/postrm_purge_boot_grub: false
  grub2/kfreebsd_cmdline:
  grub-pc/install_devices_failed: false
* grub-pc/chainload_from_menu.lst: false
  grub2/force_efi_extra_removable: false
* grub2/linux_cmdline:
-------------- next part --------------
--- upgrade-from-grub-legacy	2019-06-12 13:20:51.000000000 +0200
+++ /usr/sbin/upgrade-from-grub-legacy	2019-10-24 10:58:46.343764081 +0200
@@ -8,7 +8,9 @@
 echo RESET grub-pc/install_devices | debconf-communicate >/dev/null
 
 # Pretend we're upgrading grub-pc.  This will make our postinst DTRT.
-UPGRADE_FROM_GRUB_LEGACY=1 \
+DPKG_MAINTSCRIPT_NAME=postinst \
+  DPKG_MAINTSCRIPT_PACKAGE=grub-pc \
+  UPGRADE_FROM_GRUB_LEGACY=1 \
   /var/lib/dpkg/info/grub-pc.postinst configure dummy-version
 
 if test ! -f /boot/grub/grub.cfg ; then


More information about the Pkg-grub-devel mailing list