[Bug 838859] New: perl-Bootloader does not check if packages are installed
![](https://seccdn.libravatar.org/avatar/3035b38ff33cf86f480bb169b8500b80.jpg?s=120&d=mm&r=g)
https://bugzilla.novell.com/show_bug.cgi?id=838859 https://bugzilla.novell.com/show_bug.cgi?id=838859#c0 Summary: perl-Bootloader does not check if packages are installed Classification: openSUSE Product: openSUSE Factory Version: 13.1 Milestone 4 Platform: Other OS/Version: Other Status: NEW Severity: Critical Priority: P5 - None Component: Bootloader AssignedTo: snwint@suse.com ReportedBy: kukuk@suse.com QAContact: jsrain@suse.com CC: stefan.fent@suse.com, mchang@suse.com Found By: --- Blocker: --- If you install a fresh system, there are a lot of error messages from Perl-Bootloader in the installation window and log files. This doesn't look very professional and can even lead to problems. And this is not installation only, this can happen in the running system, too. perl-Bootloader should either PreReq all required binaries and files, or check that they exist before using them. # Additional rpm output: # Perl-Bootloader: 2013-09-04 23:40:07 <3> pbl-4091.2 FileIO::ReadFile.85: Error: Failed to open /etc/fstab: No such file or directory # Can't use an undefined value as an ARRAY reference at /usr/lib/perl5/vendor_perl/5.18.0/Bootloader/Tools.pm line 137. # Additional rpm output: # Perl-Bootloader: 2013-09-06 08:39:18 <3> pbl-2453.2 Tools::DMRaidAvailable.445: Error: The command "dmsetup" is not available. # Perl-Bootloader: 2013-09-06 08:39:18 <3> pbl-2453.2 Tools::DMRaidAvailable.446: Error: Is the package "device-mapper" installed? # info: invalid option -- 'c' # Try --help for more information. # Perl-Bootloader: 2013-09-06 08:39:18 <3> pbl-2453.2 Core::GRUB2::GrubDev2UnixDev.215: Error: did not find a match for hd0 in the device map # Perl-Bootloader: 2013-09-06 08:39:18 <3> pbl-2453.2 Core::RunCommand.1642: Error: Command '/usr/sbin/grub2-mkconfig -o /boot/grub2/grub.cfg
/var/log/YaST2/y2log_bootloader 2>&1' failed with code 32512 and o utput: sh: /usr/sbin/grub2-mkconfig: No such file or directory
# Additional rpm output: # Free diskspace below /boot: 11752968 blocks # # Kernel image: /boot/vmlinuz-3.11.0-rc7-1.g99e1318-desktop # Initrd image: /boot/initrd-3.11.0-rc7-1.g99e1318-desktop # KMS drivers: cirrus # Root device: UUID=3fa1db93-109a-48db-9259-2cd4547f2fbe (/dev/vda2) (mounted on / as btrfs) # Kernel Modules: thermal_sys thermal processor fan scsi_dh scsi_dh_alua scsi_dh_emc scsi_dh_hp_sw scsi_dh_rdac libcrc32c xor zlib_deflate raid6_pq btrfs syscopyarea sysfillrect sysimgblt drm drm_kms_hel per ttm cirrus virtio_ring virtio virtio_blk xhci-hcd hid-logitech-dj hid-holtek-kbd hid-lenovo-tpkbd hid-ortek hid-roccat hid-roccat-common hid-roccat-arvo hid-roccat-isku hid-samsung crc32c-intel virtio_pci # Features: acpi kms block usb btrfs # Perl-Bootloader: 2013-09-06 08:40:37 <3> pbl-7487.2 Core::GRUB2::GrubDev2UnixDev.215: Error: did not find a match for hd0 in the device map # Perl-Bootloader: 2013-09-06 08:40:37 <3> pbl-7487.2 Core::RunCommand.1642: Error: Command '/usr/sbin/grub2-mkconfig -o /boot/grub2/grub.cfg
/var/log/YaST2/y2log_bootloader 2>&1' failed with code 32512 and o utput: sh: /usr/sbin/grub2-mkconfig: No such file or directory # # There was an error generating the initrd (1) #
-- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
![](https://seccdn.libravatar.org/avatar/3035b38ff33cf86f480bb169b8500b80.jpg?s=120&d=mm&r=g)
https://bugzilla.novell.com/show_bug.cgi?id=838859
https://bugzilla.novell.com/show_bug.cgi?id=838859#c
Alberto Planas Dominguez
![](https://seccdn.libravatar.org/avatar/3035b38ff33cf86f480bb169b8500b80.jpg?s=120&d=mm&r=g)
https://bugzilla.novell.com/show_bug.cgi?id=838859
https://bugzilla.novell.com/show_bug.cgi?id=838859#c1
Josef Reidinger
If you install a fresh system, there are a lot of error messages from Perl-Bootloader in the installation window and log files. This doesn't look very professional and can even lead to problems. And this is not installation only, this can happen in the running system, too.
perl-Bootloader should either PreReq all required binaries and files, or check that they exist before using them.
It is not true that it doesn't check. It just complain that it is not there, so p-bl cannot read configuration. It is important when user set up e.g. raid and then uninstall tools for it and just use it. In such case p-bl doesn't recognize such raid. Another mixture that is here, is that you use grub2 and it should not have device map or try to read it. It looks like bug in adding grub2 support. So there is two bugs actually. 1) Not print about missing tools if we can say that having raid without proper tool 2) Really simplify call for grub2 as grub2 do almost everything itself ( so no reading device.map or converting grub hd0 to anything ) -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
![](https://seccdn.libravatar.org/avatar/3035b38ff33cf86f480bb169b8500b80.jpg?s=120&d=mm&r=g)
https://bugzilla.novell.com/show_bug.cgi?id=838859
https://bugzilla.novell.com/show_bug.cgi?id=838859#c2
Steffen Winterfeldt
participants (1)
-
bugzilla_noreply@novell.com