Bug#856014: grub-efi-amd64: Invalid argument error during installation script. Warning of unbootable system.
Marco Stronati
marco at stronati.org
Fri Feb 24 09:48:47 UTC 2017
Package: grub-efi-amd64
Version: 2.02~beta3-5
Severity: normal
Dear Maintainer,
Dear Maintainer,
during upgrade of grub-efi-amd64 there is an error in the installation
script followed by a warning that the system may be unbootable. It is
not clear to me if this is a severe issue or it is a benign script
issue as the old grub is still working.
regards,
Marco
$ sudo aptitude reinstall grub-efi-amd64
The following packages will be REINSTALLED:
grub-efi-amd64
0 packages upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 0 not upgraded.
Need to get 0 B/73,1 kB of archives. After unpacking 0 B will be used.
Preconfiguring packages ...
(Reading database ... 263765 files and directories currently installed.)
Preparing to unpack .../grub-efi-amd64_2.02~beta3-5_amd64.deb ...
Unpacking grub-efi-amd64 (2.02~beta3-5) over (2.02~beta3-5) ...
Setting up grub-efi-amd64 (2.02~beta3-5) ...
Installing for x86_64-efi platform.
Could not delete variable: Invalid argument
grub-install: error: efibootmgr failed to register the boot entry: Block device required.
Failed: grub-install --target=x86_64-efi
WARNING: Bootloader is not properly installed, system may not be bootable
Generating grub configuration file ...
Found background image: .background_cache.png
Found linux image: /boot/vmlinuz-4.9.0-1-amd64
Found initrd image: /boot/initrd.img-4.9.0-1-amd64
Found linux image: /boot/vmlinuz-4.8.0-2-amd64
Found initrd image: /boot/initrd.img-4.8.0-2-amd64
Found linux image: /boot/vmlinuz-4.5.0-2-amd64
Found initrd image: /boot/initrd.img-4.5.0-2-amd64
Adding boot menu entry for EFI firmware configuration
-- Package-specific info:
*********************** BEGIN /proc/mounts
/dev/mapper/piatto--vg-root / ext4 rw,relatime,errors=remount-ro,data=ordered 0 0
/dev/sda2 /boot ext2 rw,relatime,block_validity,barrier,user_xattr,acl 0 0
/dev/sda1 /boot/efi vfat rw,relatime,fmask=0077,dmask=0077,codepage=437,iocharset=ascii,shortname=mixed,utf8,errors=remount-ro 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
}
if [ x$feature_default_font_path = xy ] ; then
font=unicode
else
insmod part_gpt
insmod ext2
set root='hd0,gpt2'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2 a2908130-b359-4cdd-95fe-c8cd3625b45c
else
search --no-floppy --fs-uuid --set=root a2908130-b359-4cdd-95fe-c8cd3625b45c
fi
font="/grub/unicode.pf2"
fi
if loadfont $font ; then
set gfxmode=auto
load_video
insmod gfxterm
set locale_dir=$prefix/locale
set lang=en_US
insmod gettext
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=1
# Fallback normal timeout code in case the timeout_style feature is
# unavailable.
else
set timeout=1
fi
fi
### END /etc/grub.d/00_header ###
### BEGIN /etc/grub.d/05_debian_theme ###
insmod part_gpt
insmod ext2
set root='hd0,gpt2'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2 a2908130-b359-4cdd-95fe-c8cd3625b45c
else
search --no-floppy --fs-uuid --set=root a2908130-b359-4cdd-95fe-c8cd3625b45c
fi
insmod png
if background_image /grub/.background_cache.png; then
set color_normal=white/black
set color_highlight=black/white
else
set menu_color_normal=cyan/blue
set menu_color_highlight=white/blue
fi
### 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' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-f6292f58-2722-4d92-aa4f-b5bb38128d9c' {
load_video
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_gpt
insmod ext2
set root='hd0,gpt2'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2 a2908130-b359-4cdd-95fe-c8cd3625b45c
else
search --no-floppy --fs-uuid --set=root a2908130-b359-4cdd-95fe-c8cd3625b45c
fi
echo 'Loading Linux 4.9.0-1-amd64 ...'
linux /vmlinuz-4.9.0-1-amd64 root=/dev/mapper/piatto--vg-root ro quiet
echo 'Loading initial ramdisk ...'
initrd /initrd.img-4.9.0-1-amd64
}
submenu 'Advanced options for Debian GNU/Linux' $menuentry_id_option 'gnulinux-advanced-f6292f58-2722-4d92-aa4f-b5bb38128d9c' {
menuentry 'Debian GNU/Linux, with Linux 4.9.0-1-amd64' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.9.0-1-amd64-advanced-f6292f58-2722-4d92-aa4f-b5bb38128d9c' {
load_video
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_gpt
insmod ext2
set root='hd0,gpt2'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2 a2908130-b359-4cdd-95fe-c8cd3625b45c
else
search --no-floppy --fs-uuid --set=root a2908130-b359-4cdd-95fe-c8cd3625b45c
fi
echo 'Loading Linux 4.9.0-1-amd64 ...'
linux /vmlinuz-4.9.0-1-amd64 root=/dev/mapper/piatto--vg-root ro quiet
echo 'Loading initial ramdisk ...'
initrd /initrd.img-4.9.0-1-amd64
}
menuentry 'Debian GNU/Linux, with Linux 4.9.0-1-amd64 (recovery mode)' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.9.0-1-amd64-recovery-f6292f58-2722-4d92-aa4f-b5bb38128d9c' {
load_video
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_gpt
insmod ext2
set root='hd0,gpt2'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2 a2908130-b359-4cdd-95fe-c8cd3625b45c
else
search --no-floppy --fs-uuid --set=root a2908130-b359-4cdd-95fe-c8cd3625b45c
fi
echo 'Loading Linux 4.9.0-1-amd64 ...'
linux /vmlinuz-4.9.0-1-amd64 root=/dev/mapper/piatto--vg-root ro single
echo 'Loading initial ramdisk ...'
initrd /initrd.img-4.9.0-1-amd64
}
menuentry 'Debian GNU/Linux, with Linux 4.8.0-2-amd64' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.8.0-2-amd64-advanced-f6292f58-2722-4d92-aa4f-b5bb38128d9c' {
load_video
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_gpt
insmod ext2
set root='hd0,gpt2'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2 a2908130-b359-4cdd-95fe-c8cd3625b45c
else
search --no-floppy --fs-uuid --set=root a2908130-b359-4cdd-95fe-c8cd3625b45c
fi
echo 'Loading Linux 4.8.0-2-amd64 ...'
linux /vmlinuz-4.8.0-2-amd64 root=/dev/mapper/piatto--vg-root ro quiet
echo 'Loading initial ramdisk ...'
initrd /initrd.img-4.8.0-2-amd64
}
menuentry 'Debian GNU/Linux, with Linux 4.8.0-2-amd64 (recovery mode)' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.8.0-2-amd64-recovery-f6292f58-2722-4d92-aa4f-b5bb38128d9c' {
load_video
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_gpt
insmod ext2
set root='hd0,gpt2'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2 a2908130-b359-4cdd-95fe-c8cd3625b45c
else
search --no-floppy --fs-uuid --set=root a2908130-b359-4cdd-95fe-c8cd3625b45c
fi
echo 'Loading Linux 4.8.0-2-amd64 ...'
linux /vmlinuz-4.8.0-2-amd64 root=/dev/mapper/piatto--vg-root ro single
echo 'Loading initial ramdisk ...'
initrd /initrd.img-4.8.0-2-amd64
}
menuentry 'Debian GNU/Linux, with Linux 4.5.0-2-amd64' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.5.0-2-amd64-advanced-f6292f58-2722-4d92-aa4f-b5bb38128d9c' {
load_video
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_gpt
insmod ext2
set root='hd0,gpt2'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2 a2908130-b359-4cdd-95fe-c8cd3625b45c
else
search --no-floppy --fs-uuid --set=root a2908130-b359-4cdd-95fe-c8cd3625b45c
fi
echo 'Loading Linux 4.5.0-2-amd64 ...'
linux /vmlinuz-4.5.0-2-amd64 root=/dev/mapper/piatto--vg-root ro quiet
echo 'Loading initial ramdisk ...'
initrd /initrd.img-4.5.0-2-amd64
}
menuentry 'Debian GNU/Linux, with Linux 4.5.0-2-amd64 (recovery mode)' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.5.0-2-amd64-recovery-f6292f58-2722-4d92-aa4f-b5bb38128d9c' {
load_video
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_gpt
insmod ext2
set root='hd0,gpt2'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2 a2908130-b359-4cdd-95fe-c8cd3625b45c
else
search --no-floppy --fs-uuid --set=root a2908130-b359-4cdd-95fe-c8cd3625b45c
fi
echo 'Loading Linux 4.5.0-2-amd64 ...'
linux /vmlinuz-4.5.0-2-amd64 root=/dev/mapper/piatto--vg-root ro single
echo 'Loading initial ramdisk ...'
initrd /initrd.img-4.5.0-2-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 ###
menuentry 'System setup' $menuentry_id_option 'uefi-firmware' {
fwsetup
}
### 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 LVM
--- Volume group ---
VG Name piatto-vg
System ID
Format lvm2
Metadata Areas 1
Metadata Sequence No 3
VG Access read/write
VG Status resizable
MAX LV 0
Cur LV 2
Open LV 2
Max PV 0
Cur PV 1
Act PV 1
VG Size 237.73 GiB
PE Size 4.00 MiB
Total PE 60859
Alloc PE / Size 60859 / 237.73 GiB
Free PE / Size 0 / 0
VG UUID LT8ZdO-XdD0-UBx7-NDOd-OrSM-oNrw-TDLdd5
--- Physical volume ---
PV Name /dev/mapper/sda3_crypt
VG Name piatto-vg
PV Size 237.73 GiB / not usable 3.00 MiB
Allocatable yes (but full)
PE Size 4.00 MiB
Total PE 60859
Free PE 0
Allocated PE 60859
PV UUID 2u5ZMi-CnCI-vae3-p0EL-Vmg8-aN2A-udeYC7
--- Logical volume ---
LV Path /dev/piatto-vg/root
LV Name root
VG Name piatto-vg
LV UUID nrNt1z-stM2-l7Aq-zI20-0fVK-XHhd-2VTM2V
LV Write Access read/write
LV Creation host, time piatto, 2015-08-25 14:41:39 +0200
LV Status available
# open 1
LV Size 229.82 GiB
Current LE 58834
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 254:1
--- Logical volume ---
LV Path /dev/piatto-vg/swap_1
LV Name swap_1
VG Name piatto-vg
LV UUID HHrOxS-N9iS-Uqq8-ztQr-I24d-ZsBo-iSd1Ji
LV Write Access read/write
LV Creation host, time piatto, 2015-08-25 14:41:39 +0200
LV Status available
# open 2
LV Size 7.91 GiB
Current LE 2025
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 254:2
*********************** END LVM
*********************** BEGIN /dev/disk/by-id
total 0
lrwxrwxrwx 1 root root 9 Feb 16 11:16 ata-SAMSUNG_SSD_PM851_M.2_2280_256GB_S1D3NSAG641330 -> ../../sda
lrwxrwxrwx 1 root root 10 Feb 16 11:16 ata-SAMSUNG_SSD_PM851_M.2_2280_256GB_S1D3NSAG641330-part1 -> ../../sda1
lrwxrwxrwx 1 root root 10 Feb 16 11:16 ata-SAMSUNG_SSD_PM851_M.2_2280_256GB_S1D3NSAG641330-part2 -> ../../sda2
lrwxrwxrwx 1 root root 10 Feb 16 11:16 ata-SAMSUNG_SSD_PM851_M.2_2280_256GB_S1D3NSAG641330-part3 -> ../../sda3
lrwxrwxrwx 1 root root 10 Feb 16 11:16 dm-name-piatto--vg-root -> ../../dm-1
lrwxrwxrwx 1 root root 10 Feb 16 11:16 dm-name-piatto--vg-swap_1 -> ../../dm-2
lrwxrwxrwx 1 root root 10 Feb 16 11:16 dm-name-sda3_crypt -> ../../dm-0
lrwxrwxrwx 1 root root 10 Feb 16 11:16 dm-uuid-CRYPT-LUKS1-bfc72d4da1024af3870f404e8892bdac-sda3_crypt -> ../../dm-0
lrwxrwxrwx 1 root root 10 Feb 16 11:16 dm-uuid-LVM-LT8ZdOXdD0UBx7NDOdOrSMoNrwTDLdd5HHrOxSN9iSUqq8ztQrI24dZsBoiSd1Ji -> ../../dm-2
lrwxrwxrwx 1 root root 10 Feb 16 11:16 dm-uuid-LVM-LT8ZdOXdD0UBx7NDOdOrSMoNrwTDLdd5nrNt1zstM2l7AqzI200fVKXHhd2VTM2V -> ../../dm-1
lrwxrwxrwx 1 root root 10 Feb 16 11:16 lvm-pv-uuid-2u5ZMi-CnCI-vae3-p0EL-Vmg8-aN2A-udeYC7 -> ../../dm-0
lrwxrwxrwx 1 root root 9 Feb 16 11:16 wwn-0x5002538844584d30 -> ../../sda
lrwxrwxrwx 1 root root 10 Feb 16 11:16 wwn-0x5002538844584d30-part1 -> ../../sda1
lrwxrwxrwx 1 root root 10 Feb 16 11:16 wwn-0x5002538844584d30-part2 -> ../../sda2
lrwxrwxrwx 1 root root 10 Feb 16 11:16 wwn-0x5002538844584d30-part3 -> ../../sda3
*********************** END /dev/disk/by-id
*********************** BEGIN /dev/disk/by-uuid
total 0
lrwxrwxrwx 1 root root 10 Feb 16 11:16 26b2d86b-4425-43be-9521-1c152b58723b -> ../../dm-2
lrwxrwxrwx 1 root root 10 Feb 16 11:16 A208-BFF8 -> ../../sda1
lrwxrwxrwx 1 root root 10 Feb 16 11:16 a2908130-b359-4cdd-95fe-c8cd3625b45c -> ../../sda2
lrwxrwxrwx 1 root root 10 Feb 16 11:16 bfc72d4d-a102-4af3-870f-404e8892bdac -> ../../sda3
lrwxrwxrwx 1 root root 10 Feb 16 11:16 f6292f58-2722-4d92-aa4f-b5bb38128d9c -> ../../dm-1
*********************** END /dev/disk/by-uuid
-- System Information:
Debian Release: 9.0
APT prefers testing
APT policy: (500, 'testing'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 4.9.0-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
Versions of packages grub-efi-amd64 depends on:
ii debconf [debconf-2.0] 1.5.60
ii dpkg 1.18.22
ii grub-common 2.02~beta3-5
ii grub-efi-amd64-bin 2.02~beta3-5
ii grub2-common 2.02~beta3-5
ii ucf 3.0036
grub-efi-amd64 recommends no packages.
grub-efi-amd64 suggests no packages.
-- debconf information:
* grub2/linux_cmdline_default: quiet
* grub2/linux_cmdline:
grub2/update_nvram: true
grub2/device_map_regenerated:
grub2/kfreebsd_cmdline_default: quiet
grub2/force_efi_extra_removable: false
grub2/kfreebsd_cmdline:
More information about the Pkg-grub-devel
mailing list