| Summary: | bootloader-config fails on non-existent unknown device | ||
|---|---|---|---|
| Product: | Mageia | Reporter: | Florian Hubold <doktor5000> |
| Component: | RPM Packages | Assignee: | Mageia Bug Squad <bugsquad> |
| Status: | RESOLVED WORKSFORME | QA Contact: | |
| Severity: | normal | ||
| Priority: | Normal | CC: | doktor5000, rverschelde |
| Version: | 7 | ||
| Target Milestone: | --- | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Source RPM: | drakxtools-18.21-1.mga7.src.rpm | CVE: | |
| Status comment: | |||
|
Description
Florian Hubold
2019-07-08 12:56:40 CEST
Florian Hubold
2019-07-08 13:00:32 CEST
CC:
(none) =>
doktor5000, rverschelde After checking a bit more, stumbled about the cause for this, it's /boot/grub2/install.sh which contains "grub2-install /dev/sdd" instead of "grub2-install". Although that has been there since Dec. 2017, and has not been an issue until now.
[doktor5000@Mageia6]─[15:23:40]─[~] sudo LC_ALL=C strace -f bootloader-config --action rebuild-initrds 2>&1 |grep sdd
read(4, "grub2-install /dev/sdd", 8192) = 22
stat("/dev/sdd", 0xc89478) = -1 ENOENT (No such file or directory)
stat("/sys/block/sdd/dev", 0xc89478) = -1 ENOENT (No such file or directory)
stat("/dev/sdd", 0xc89478) = -1 ENOENT (No such file or directory)
write(2, "INTERNAL ERROR: unknown device s"..., 393INTERNAL ERROR: unknown device sdd
[doktor5000@Mageia6]─[15:23:54]─[~]
[doktor5000@Mageia6]─[15:24:45]─[~] ll /boot/grub2/install.sh
-rwxr-xr-x 1 root root 22 Dez 5 2017 /boot/grub2/install.sh*
[doktor5000@Mageia6]─[15:26:03]─[~] cat /boot/grub2/install.sh
grub2-install /dev/sdd
[doktor5000@Mageia6]─[15:27:31]─[~]
After removal of /dev/sdd from /boot/grub2/install.sh bootloader-config only returns: "Cannot find a boot loader installed" :/
(In reply to Florian Hubold from comment #1) > After removal of /dev/sdd from /boot/grub2/install.sh bootloader-config only > returns: "Cannot find a boot loader installed" :/ Re-ran drakboot to reinstall grub2, now everythings working fine. /boot/grub2/install.sh now contains the device selected in drakboot "grub2-install /dev/sdc". So it seems I changed bootloader location some time in the past and can't really remember, closing this one. Resolution:
(none) =>
WORKSFORME |