[Bug 431535] New: /usr/lib/bootloader/ bootloader_entry chokes on comments in fstab
https://bugzilla.novell.com/show_bug.cgi?id=431535 Summary: /usr/lib/bootloader/bootloader_entry chokes on comments in fstab Product: openSUSE 11.1 Version: Factory Platform: Other OS/Version: Other Status: NEW Severity: Critical Priority: P5 - None Component: Basesystem AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: seife@novell.com QAContact: qa@suse.de Found By: Development root@stoetzler:~# /usr/lib/bootloader/bootloader_entry remove default \ 2.6.27-rc7-HEAD_20080923144150-default \ vmlinuz-2.6.27-rc7-HEAD_20080923144150-default \ initrd-2.6.27-rc7-HEAD_20080923144150-default /boot directory is not mounted root@stoetzler:~# cat /etc/fstab #/dev/disk/by-id/scsi-SATA_TOSHIBA_MK1011G_Z7D6W0SBW-part2 /boot ext2 relatime,acl,user_xattr 1 2 #/dev/disk/by-id/scsi-SATA_TOSHIBA_MK1011G_Z7D6W0SBW-part6 / ext3 relatime,acl,user_xattr 1 1 #/dev/disk/by-id/scsi-SATA_TOSHIBA_MK1011G_Z7D6W0SBW-part8 /local ext3 relatime,acl,user_xattr 1 2 #/dev/disk/by-id/scsi-SATA_TOSHIBA_MK1011G_Z7D6W0SBW-part5 swap swap defaults 0 0 /dev/disk/by-label/boot /boot ext2 relatime,acl,user_xattr 1 2 /dev/disk/by-label/root / ext3 relatime,acl,user_xattr 1 1 /dev/disk/by-label/local /local ext3 relatime,acl,user_xattr 1 2 /dev/sda5 swap swap defaults 0 0 /dev/mapper/cr_sda7 /home ext3 relatime,acl,user_xattr,noauto 0 0 proc /proc proc defaults 0 0 sysfs /sys sysfs noauto 0 0 debugfs /sys/kernel/debug debugfs noauto 0 0 usbfs /proc/bus/usb usbfs noauto 0 0 devpts /dev/pts devpts mode=0620,gid=5 0 0 /local/news/varspoolnews /var/spool/news none rw,bind,noauto 0 0 the check in lines 304 to 307 is wrong. -- 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://bugzilla.novell.com/show_bug.cgi?id=431535 Andreas Jaeger <aj@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|bnc-team-screening@forge.provo.novell.com |yast2-maintainers@suse.de -- 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://bugzilla.novell.com/show_bug.cgi?id=431535 User seife@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=431535#c1 --- Comment #1 from Stefan Seyfried <seife@novell.com> 2008-10-02 05:39:39 MDT --- If this is fixed (by changing /boot to /booz in the comment), it still prevents uninstalling of the kernel: root@stoetzler:~# /usr/lib/bootloader/bootloader_entry remove vanilla 2.6.27-rc6-8-vanilla vmlinuz-2.6.27-rc6-8-vanilla initrd-2.6.27-rc6-8-vanilla ; echo $? 1 probably because there is no entry anymore for this kernel in /boot/grub/menu.lst, but I should still be able to uninstall it. -- 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://bugzilla.novell.com/show_bug.cgi?id=431535 Christoph Thiel <cthiel@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|yast2-maintainers@suse.de |jreidinger@novell.com -- 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://bugzilla.novell.com/show_bug.cgi?id=431535 User jreidinger@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=431535#c2 Josef Reidinger <jreidinger@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED --- Comment #2 from Josef Reidinger <jreidinger@novell.com> 2008-10-02 06:23:56 MDT --- thanks for report, comments in fstab is now handled (fix in svn). I look for failed uninstall (maybe error during uninstall can be quiet) -- 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://bugzilla.novell.com/show_bug.cgi?id=431535 User jreidinger@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=431535#c3 Josef Reidinger <jreidinger@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |NEEDINFO Info Provider| |seife@novell.com --- Comment #3 from Josef Reidinger <jreidinger@novell.com> 2008-10-02 06:45:14 MDT --- Could you please attach logs what failed? I don't want silent fail, because for some bootloader it is needed report it correctly (like elilo), because refresh doesn't run. -- 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://bugzilla.novell.com/show_bug.cgi?id=431535 User seife@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=431535#c4 Stefan Seyfried <seife@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |ASSIGNED Info Provider|seife@novell.com | --- Comment #4 from Stefan Seyfried <seife@novell.com> 2008-10-02 08:16:58 MDT --- What logs do you need. This is what I have done: - zypper dup (mostly from openSUSE:Factory and some other repositories) - received errors for every kernel package that was updated. Only way out was "ignore", which left the old kerenl installed (in RPM db, not on disk) and the new one was not in boot loader config. - then I ran bootloader_entry, similar to the command line shown above, to get rid of the old entries. Did not work. - I edited fstab. - again tried bootloader_entry as shown above, now the menu.lst was practically empty (only three entries, the "Floppy" entry, the "Windows" entry and the "Chainload the other installation entry. None of the two installed kernels was in menu.lst, probably because of the update problem. - I edited menu.lst (with the yast bootloader module) to make sure that the two installed kernels (kernel-default and kernel-vanilla) would boot. - I edited menu.lst by hand to correct the yast configuration, so that it really would boot. - I tried to uninstall the two old kernel versions, whcih againg failed, because their entry was no longer in menu.lst. - I uninstalled the old kernels with "rpm -e --noscripts". I doubt that there are still any useful logs around, but I will send you whatever you want ;-) -- 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://bugzilla.novell.com/show_bug.cgi?id=431535 User jreidinger@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=431535#c5 Josef Reidinger <jreidinger@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |NEEDINFO Info Provider| |seife@novell.com --- Comment #5 from Josef Reidinger <jreidinger@novell.com> 2008-10-02 08:26:10 MDT --- /var/log/Yast2/perl-BL-standalone-log is right place, as there is log related to kernel uninstall (so I find what fail and why it doesn't uninstall it). Thanks -- 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://bugzilla.novell.com/show_bug.cgi?id=431535 User seife@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=431535#c6 Stefan Seyfried <seife@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |ASSIGNED Info Provider|seife@novell.com | --- Comment #6 from Stefan Seyfried <seife@novell.com> 2008-10-02 09:40:24 MDT --- Created an attachment (id=243135) --> (https://bugzilla.novell.com/attachment.cgi?id=243135) perl-BL-standalone.log I know what happened: it said "/boot is not mounted" and exited with exit code 1 ;-) But here is the log. -- 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://bugzilla.novell.com/show_bug.cgi?id=431535 User jreidinger@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=431535#c7 --- Comment #7 from Josef Reidinger <jreidinger@novell.com> 2008-10-03 01:48:42 MDT --- I mean I need find why it fail if this entry is not in menu.lst. -- 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://bugzilla.novell.com/show_bug.cgi?id=431535 User jreidinger@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=431535#c8 --- Comment #8 from Josef Reidinger <jreidinger@novell.com> 2008-10-06 00:04:30 MDT --- Thanks, logs is quite usefull and now kernel update script doesn't fail if user remove old section manually. So if it doesn't find any obsolete section, then do nothing and don't die. Both fix is in svn and will be in perl-Bootloader 0.4.73. -- 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://bugzilla.novell.com/show_bug.cgi?id=431535 User jreidinger@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=431535#c9 Josef Reidinger <jreidinger@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution| |FIXED --- Comment #9 from Josef Reidinger <jreidinger@novell.com> 2008-10-07 23:35:29 MDT --- 0.4.73 released -- 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.
participants (1)
-
bugzilla_noreply@novell.com