Processed: Re: Bug#1034610: grub-common no longer supports labels

2023-04-20 Thread Debian Bug Tracking System
Processing control commands:

> severity -1 important
Bug #1034610 [grub-common] grub-common no longer supports labels
Severity set to 'important' from 'critical'

-- 
1034610: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1034610
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems



Bug#1034610: grub-common no longer supports labels

2023-04-20 Thread Steve McIntyre
Control: severity -1 important

Hi!

On Wed, Apr 19, 2023 at 02:52:31PM -0300, Dario Susman wrote:
>Package: grub-common
>Version: 2.06-8
>Severity: critical
>Justification: breaks the whole system
>
>Dear Maintainer,
>
>After upgrading to latest version of grub-common and kernel, the system
>wouldn't boot up with the latest kernel. The device paths changed, sda1
>to sdb1. I noticed that the grub config changed to use UUIDs, however
>/etc/default/grub is set to use LABELS. Which is something I prefer to
>do.
>
>It seems that grub-mkinfo no longer supports the GRUB_ENABLE_LINUX_LABEL
>parameters and has to be re-written for it to work.

Looking in the history, I can't see where we've ever supported
this. Can you tell me which version(s) ever had this working for you
please?

-- 
Steve McIntyre, Cambridge, UK.st...@einval.com
Welcome my son, welcome to the machine.



Bug#1034610: grub-common no longer supports labels

2023-04-19 Thread Dario Susman
Package: grub-common
Version: 2.06-8
Severity: critical
Justification: breaks the whole system

Dear Maintainer,

After upgrading to latest version of grub-common and kernel, the system
wouldn't boot up with the latest kernel. The device paths changed, sda1
to sdb1. I noticed that the grub config changed to use UUIDs, however
/etc/default/grub is set to use LABELS. Which is something I prefer to
do.

It seems that grub-mkinfo no longer supports the GRUB_ENABLE_LINUX_LABEL
parameters and has to be re-written for it to work.


There's a patch in #568084, but I'm not entirely sure it'll work. And I
don't want to use UUIDs at all.

Thank you.

Best regards,
Dario Susman


-- Package-specific info:

*** BEGIN /proc/mounts
/dev/sda1 / ext4 rw,relatime,errors=remount-ro 0 0
/dev/sdb1 /mnt/WDBLUE1TB xfs 
rw,relatime,attr2,inode64,logbufs=8,logbsize=32k,noquota 0 0
/dev/nvme0n1p1 /mnt/NVME500 ext4 rw,relatime 0 0
*** END /proc/mounts

*** BEGIN /boot/grub/device.map
(hd0)   /dev/disk/by-id/ata-KINGSTON_SV300S37A120G_50026B7746012FCC
(hd1)   /dev/disk/by-id/ata-MAXTOR_STM3500320AS_9QM8W5FL
(hd2)   
/dev/disk/by-id/usb-Kingston_DataTraveler_2.0_001D0F0CAA76F951B59D0347-0:0
*** 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/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-16e84623-5d05-4f7b-b741-ad28bcc81a9f' {
load_video
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_msdos
insmod ext2
set root='hd0,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 
--hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 --hint='hd0,msdos1'  
16e84623-5d05-4f7b-b741-ad28bcc81a9f
else
  search --no-floppy --fs-uuid --set=root 
16e84623-5d05-4f7b-b741-ad28bcc81a9f
fi
echo'Loading Linux 6.1.0-7-amd64 ...'
linux   /boot/vmlinuz-6.1.0-7-amd64 root=/dev/sda1 ro 
initrd=/install/initrd.gz net.ifnames=0 apparmor=0 crashkernel=384M-:128M
echo'Loading initial ramdisk ...'
initrd  /boot/initrd.img-6.1.0-7-amd64
}
submenu 'Advanced options for Debian GNU/Linux' $menuentry_id_option 
'gnulinux-advanced-16e84623-5d05-4f7b-b741-ad28bcc81a9f' {
menuentry 'Debian GNU/Linux, with Linux 6.1.0-7-amd64' --class debian 
--class gnu-linux --class gnu --class os $menuentry_id_option 
'gnulinux-6.1.0-7-amd64-advanced-16e84623-5d05-4f7b-b741-ad28bcc81a9f' {
load_video
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; 
fi
insmod part_msdos
insmod ext2
set root='hd0,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
  search --no-floppy --fs-uuid --set=root 
--hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 
--hint='hd0,msdos1'  16e84623-5d05-4f7b-b741-ad28bcc81a9f
else
  search --no-floppy --fs-uuid --set=root 
16e84623-5d05-4f7b-b741-ad28bcc81a9f