Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Non-stable grub configuration for install_devices #206

Closed
mika opened this issue Mar 31, 2023 · 1 comment · Fixed by #207
Closed

Non-stable grub configuration for install_devices #206

mika opened this issue Mar 31, 2023 · 1 comment · Fixed by #207

Comments

@mika
Copy link
Member

mika commented Mar 31, 2023

We pass the requested --grub ... device argument to the GRUB package configuration, like:

root@grml:~# debconf-show grub-pc | grep grub-pc/install_devices
* grub-pc/install_devices: /dev/sda
  grub-pc/install_devices_failed: false
  grub-pc/install_devices_failed_upgrade: true
* grub-pc/install_devices_empty: true
  grub-pc/install_devices_disks_changed:

But the GRUB package nowadays tries to use /dev/disk/by-id/... for the install_devices setting, as can be observed by reconfiguring the package (which then automatically converts the /dev/sdX device to the proper /dev/disk/by-id/... device):

root@grml:~# dpkg-reconfigure grub-pc
grub-pc: Running grub-install ...
Installing for i386-pc platform.
Installation finished. No error reported.
  grub-install success for /dev/sda
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-6.1.0-7-amd64
Found initrd image: /boot/initrd.img-6.1.0-7-amd64
Warning: os-prober will not be executed to detect other bootable partitions.
Systems on them will not be added to the GRUB boot configuration.
Check GRUB_DISABLE_OS_PROBER documentation entry.
done
root@grml:~# debconf-show grub-pc | grep grub-pc/install_devices
  grub-pc/install_devices_disks_changed:
* grub-pc/install_devices: /dev/disk/by-id/ata-VBOX_HARDDISK_VBf4f4391c-6316fa69
  grub-pc/install_devices_failed: false
  grub-pc/install_devices_failed_upgrade: true
* grub-pc/install_devices_empty: true

Usage of /dev/disk/by-id/... is to be preferred, as this is the more stable path.

@mika
Copy link
Member Author

mika commented Mar 31, 2023

Implemented at #207, needs to be tested/verified with all different kinds of configurations (Debian releases, VM use case, SW-RAID,...)

@mika mika closed this as completed in b379e24 Sep 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant