let me show you steps which I did. Right after curtin installation
(which fails see error in the first message of the thread), there are
the following options in debconf for grub-pc:

# debconf-show grub-pc
* grub-pc/install_devices_empty: false
* grub-pc/cloud_style_installation: true
* grub-pc/install_devices: 
/dev/disk/by-id/nvme-eui.00000000000000018ce38e01000a4355, 
/dev/disk/by-id/nvme-KXG60ZNV256G_TOSHIBA_31RY10BSYRU1
* grub-efi/cloud_style_installation: true

Then I disable cloud_style_installation:

# echo 'grub-pc grub-pc/cloud_style_installation select false' | 
debconf-set-selections
# debconf-show grub-pc
* grub-pc/install_devices_empty: false
* grub-pc/install_devices: 
/dev/disk/by-id/nvme-eui.00000000000000018ce38e01000a4355, 
/dev/disk/by-id/nvme-KXG60ZNV256G_TOSHIBA_31RY10BSYRU1
* grub-pc/cloud_style_installation: false
* grub-efi/cloud_style_installation: true

and run dpkg-reconfigure. It shows dialog and 3 questions:

* specify linux cmdline
* parameters for default menu entry
* enable os-prober or not

and that's it, then it just exits with 0 code and nothing happens. The
following options are set in debconf after it:

# debconf-show grub-pc
* grub-pc/cloud_style_installation: false
* grub-efi/cloud_style_installation: true
* grub2/linux_cmdline:
* grub2/linux_cmdline_default: console=tty0
* grub-pc/install_devices_empty: false
* grub-pc/install_devices: 
/dev/disk/by-id/nvme-eui.00000000000000018ce38e01000a4355, 
/dev/disk/by-id/nvme-KXG60ZNV256G_TOSHIBA_31RY10BSYRU1
* grub2/enable_os_prober: false


I tried to reset all options or clear exactly 'grub-pc/install_devices'. It 
doesn't take an effect and dpkg-reconfigure doesn't ask to select devices:

# echo RESET grub-pc/install_devices | debconf-communicate grub-pc
0
# dpkg-reconfigure grub-pc
# debconf-show grub-pc
* grub-pc/install_devices_empty: false
* grub-efi/cloud_style_installation: true
* grub2/linux_cmdline_default: console=tty0
* grub2/enable_os_prober: false
* grub-pc/cloud_style_installation: false
* grub2/linux_cmdline:

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2076329

Title:
  24.04 grub-pc fails on dpkg-reconfigure

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/grub2/+bug/2076329/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to