[Bug 492895] New: kernel update incorrectly modifies Xen DomU's /boot/grub/menu.lst
http://bugzilla.novell.com/show_bug.cgi?id=492895 Summary: kernel update incorrectly modifies Xen DomU's /boot/grub/menu.lst Classification: openSUSE Product: openSUSE 11.1 Version: Final Platform: PowerPC-64 OS/Version: openSUSE 11.1 Status: NEW Severity: Major Priority: P5 - None Component: Bootloader AssignedTo: jsrain@novell.com ReportedBy: pgnet.trash@gmail.com QAContact: jsrain@novell.com Found By: --- User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9) Gecko/2008052906 Firefox/3.0 booted to an openSUSE DomU, uname -ri 2.6.27.21-12-xen x86_64 cat /boot/grub/menu.lst default 0 timeout 1 ##YaST - generic_mbr gfxmenu (hd0,0)/message hiddenmenu ##YaST - activate title Xen 3.3.1 DomU -- openSUSE 11.1 root (hd0,0) kernel /vmlinuz-xen resume=/dev/vg0/lv_swap selinux=0 splash=silent quiet showopts nofb headless kbdtype=us text noshell initrd /initrd-xen @ kernel-update, zypper dup Retrieving repository 'Kernel_SL111' metadata [done] Building repository 'Kernel_SL111' cache [done] Loading repository data... Reading installed packages... Computing distribution upgrade... The following packages are going to be upgraded: kernel-source kernel-xen kernel-xen-base kernel-xen-extra modifies "/boot/grub/menu.lst" as cat /boot/grub/menu.lst # Modified by YaST2. Last modification on Tue Apr 7 07:49:45 PDT 2009 default 0 timeout 1 ##YaST - generic_mbr gfxmenu (hd0,0)/message hiddenmenu ##YaST - activate ###Don't change this comment - YaST2 identifier: Original name: xen### title Xen -- openSUSE 11.1 - 2.6.27.21-15 root (hd0,0) kernel /xen.gz module /vmlinuz-2.6.27.21-15-xen resume=/dev/vg0/lv_swap kbdtype=us headless text quiet nofb selinux=0 edd=off splash=silent noshell showopts module /initrd-2.6.27.21-15-xen title Xen 3.3.1 DomU -- openSUSE 11.1 root (hd0,0) kernel /vmlinuz-xen resume=/dev/vg0/lv_swap selinux=0 splash=silent quiet showopts nofb headless kbdtype=us text noshell initrd /initrd-xen which incorrectly (1) creates a new Xen kernel stanza with kernel /xen.gz but, there _is_ no xen.gz, find /boot | grep -i xen.gz /boot/vmlinux-2.6.27.21-15-xen.gz /boot/symvers-2.6.27.21-15-xen.gz /boot/symtypes-2.6.27.21-15-xen.gz &, iiuc, that kernel /xen.gz line should not be used in the DomU's grub anyway ... (2) changes the default entry #. actually, it _fails_ to change it, but adds a new entry before the one i've defined, therefore "switching" the entry to the new/incorrect one. if not caught, the Xen DomU is rendered unbootable; of course, can be mod'd by mounting the DomU's img/drive in Dom0 & and correcting the grub entry Reproducible: Always Steps to Reproduce: 1. 2. 3. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=492895 User jreidinger@novell.com added comment http://bugzilla.novell.com/show_bug.cgi?id=492895#c2 Josef Reidinger <jreidinger@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P5 - None |P2 - High Status|NEW |ASSIGNED --- Comment #2 from Josef Reidinger <jreidinger@novell.com> 2009-04-08 23:58:38 MDT --- Thanks for report. Fixed in trunk, waiting for maintenance update. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=492895 Swamp Workflow Management <swamp@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status Whiteboard| |maint:planned:update -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=492895 Swamp Workflow Management <swamp@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status Whiteboard|maint:planned:update |maint:planned:update | |maint:planned:update -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=492895 User pgnet.dev@gmail.com added comment http://bugzilla.novell.com/show_bug.cgi?id=492895#c10 --- Comment #10 from pgnet Dev <pgnet.dev@gmail.com> 2009-05-01 08:43:19 MDT --- has this fix been promoted to, perl-Bootloader-0.5.0-1.1.x86_64.rpm as well? -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=492895 User jreidinger@novell.com added comment http://bugzilla.novell.com/show_bug.cgi?id=492895#c11 --- Comment #11 from Josef Reidinger <jreidinger@novell.com> 2009-05-05 01:44:26 MDT --- (In reply to comment #10)
has this fix been promoted to,
perl-Bootloader-0.5.0-1.1.x86_64.rpm
as well?
Yes. I check it today and it is presented. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=492895 User pgnet.dev@gmail.com added comment http://bugzilla.novell.com/show_bug.cgi?id=492895#c12 --- Comment #12 from pgnet Dev <pgnet.dev@gmail.com> 2009-06-07 09:32:31 MDT --- (In reply to comment #11)
(In reply to comment #10)
has this fix been promoted to,
perl-Bootloader-0.5.0-1.1.x86_64.rpm
as well?
Yes. I check it today and it is presented.
fyi, checking today, using perl-Bootloader-0.5.2-2.1 part (2) of this problem still exists; namely, "(2) changes the default entry #. actually, it _fails_ to change it, but adds a new entry before the one i've defined, therefore "switching" the entry to the new/incorrect one. if not caught, the Xen DomU is rendered unbootable; of course, can be mod'd by mounting the DomU's img/drive in Dom0 & and correcting the grub entry" -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=492895 User jreidinger@novell.com added comment http://bugzilla.novell.com/show_bug.cgi?id=492895#c13 Josef Reidinger <jreidinger@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |NEEDINFO Info Provider| |pgnet.dev@gmail.com --- Comment #13 from Josef Reidinger <jreidinger@novell.com> 2009-06-08 02:08:08 MDT --- (In reply to comment #12)
(In reply to comment #11)
(In reply to comment #10)
has this fix been promoted to,
perl-Bootloader-0.5.0-1.1.x86_64.rpm
as well?
Yes. I check it today and it is presented.
fyi, checking today, using
perl-Bootloader-0.5.2-2.1
part (2) of this problem still exists; namely,
"(2) changes the default entry #. actually, it _fails_ to change it, but adds a new entry before the one i've defined, therefore "switching" the entry to the new/incorrect one.
if not caught, the Xen DomU is rendered unbootable; of course, can be mod'd by mounting the DomU's img/drive in Dom0 & and correcting the grub entry"
Please provide actual logs, I look what I can do, thanks -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=492895 User pgnet.dev@gmail.com added comment http://bugzilla.novell.com/show_bug.cgi?id=492895#c14 pgnet Dev <pgnet.dev@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |ASSIGNED Info Provider|pgnet.dev@gmail.com | --- Comment #14 from pgnet Dev <pgnet.dev@gmail.com> 2009-06-08 08:46:43 MDT --- i'm not sure what you specifically want logged ... here's an example with a simple menu.lst, BEFORE: cat /boot/grub/menu.lst # Modified by YaST2. Last modification on Sun Jun 7 08:11:02 PDT 2009 default 0 timeout 1 gfxmenu (hd0,0)/message title Xen 3.3.1 DomU -- openSUSE 11.1 root (hd0,0) kernel /vmlinuz-xen resume=/dev/xvdb1 kbdtype=us headless text quiet nofb selinux=0 edd=off splash=silent noshell showopts initrd /initrd-xen AFTER: cat /boot/grub/menu.lst # Modified by YaST2. Last modification on Mon Jun 8 07:39:07 PDT 2009 default 0 timeout 1 gfxmenu (hd0,0)/message ###Don't change this comment - YaST2 identifier: Original name: linux### title Xen -- openSUSE 11.1 - 2.6.27.23-31 root (hd0,0) kernel /vmlinuz-2.6.27.23-31-xen root=/dev/xvdc1 resume=/dev/xvdb1 kbdtype=us headless text quiet nofb selinux=0 edd=off splash=silent noshell showopts initrd /initrd-2.6.27.23-31-xen title Xen 3.3.1 DomU -- openSUSE 11.1 root (hd0,0) kernel /vmlinuz-xen resume=/dev/xvdb1 kbdtype=us headless text quiet nofb selinux=0 edd=off splash=silent noshell showopts initrd /initrd-xen and the console output of, zypper -vvv dup Verbosity: 3 Initializing Target Checking whether to refresh metadata for Apache .. Checking whether to refresh metadata for ZyppHEAD Loading repository data... Reading installed packages... Computing distribution upgrade... Force resolution: No Computing upgrade... The following packages are going to be upgraded: dos2unix kernel-xen kernel-xen-base kernel-xen-extra 4 packages to upgrade. Overall download size: 24.9 MiB. No additional space will be used or freed after the operation. Continue? [y/n/?] (y): y committing Retrieving package dos2unix-3.1-437.37.1.x86_64 (1/4), 12.0 KiB (41.0 KiB unpacked) Retrieving: http://download.opensuse.org/update/11.1/rpm/x86_64/dos2unix-3.1-437.37.1.x8... [done] Installing: dos2unix-3.1-437.37.1 [done] Retrieving package kernel-xen-base-2.6.27.23-31.1.x86_64 (2/4), 7.2 MiB (14.5 MiB unpacked) Retrieving: ... kernel-xen-base-2.6.27.23-31.1.x86_64.rpm [done (0 B/s)] Installing: kernel-xen-base-2.6.27.23-31.1 [done] Additional rpm output: Setting up /lib/modules/2.6.27.23-31-xen Kernel image: /boot/vmlinuz-2.6.27.23-31-xen Initrd image: /boot/initrd-2.6.27.23-31-xen Root device: /dev/xvdc1 (mounted on / as ext3) FATAL: Module xfs not found. WARNING: no dependencies for kernel module 'xfs' found. FATAL: Module aes not found. WARNING: no dependencies for kernel module 'aes' found. FATAL: Module sha1 not found. WARNING: no dependencies for kernel module 'sha1' found. FATAL: Module sha256 not found. WARNING: no dependencies for kernel module 'sha256' found. FATAL: Module sha512 not found. WARNING: no dependencies for kernel module 'sha512' found. FATAL: Module dm_crypt not found. WARNING: no dependencies for kernel module 'dm-crypt' found. FATAL: Module dm_snapshot not found. WARNING: no dependencies for kernel module 'dm-snapshot' found. Kernel Modules: cdrom xenblk xennet mbcache jbd ext3 dm-mod Features: block resume.userspace resume.kernel Bootsplash: No bootsplash for kernel flavor xen 21692 blocks Retrieving package kernel-xen-2.6.27.23-31.1.x86_64 (3/4), 13.1 MiB (56.5 MiB unpacked) Retrieving: ... http://download.opensuse.org/repositories/Kernel:/SL111_BRANCH/openSUSE_11.1... [done (0 B/s)] Installing: kernel-xen-2.6.27.23-31.1 [done] Additional rpm output: Setting up /lib/modules/2.6.27.23-31-xen Kernel image: /boot/vmlinuz-2.6.27.23-31-xen Initrd image: /boot/initrd-2.6.27.23-31-xen Root device: /dev/xvdc1 (mounted on / as ext3) Kernel Modules: cdrom xenblk xennet mbcache jbd ext3 xfs aes_generic aes-x86_64 sha1_generic sha256_generic sha512_generic dm-mod crypto_blkcipher dm-crypt dm-snapshot Features: block resume.userspace resume.kernel Bootsplash: No bootsplash for kernel flavor xen 23584 blocks Retrieving package kernel-xen-extra-2.6.27.23-31.1.x86_64 (4/4), 4.6 MiB (18.9 MiB unpacked) Retrieving: ... http://download.opensuse.org/repositories/Kernel:/SL111_BRANCH/openSUSE_11.1... [done (0 B/s)] Installing: kernel-xen-extra-2.6.27.23-31.1 [done] Additional rpm output: Setting up /lib/modules/2.6.27.23-31-xen Kernel image: /boot/vmlinuz-2.6.27.23-31-xen Initrd image: /boot/initrd-2.6.27.23-31-xen Root device: /dev/xvdc1 (mounted on / as ext3) Kernel Modules: cdrom xenblk xennet mbcache jbd ext3 xfs aes_generic aes-x86_64 sha1_generic sha256_generic sha512_generic dm-mod crypto_blkcipher dm-crypt dm-snapshot Features: block resume.userspace resume.kernel Bootsplash: No bootsplash for kernel flavor xen 23584 blocks committingCommitResult 4 (errors 0, remaining 0, srcremaining 0) -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=492895 User jreidinger@novell.com added comment http://bugzilla.novell.com/show_bug.cgi?id=492895#c15 --- Comment #15 from Josef Reidinger <jreidinger@novell.com> 2009-06-08 08:59:35 MDT --- (In reply to comment #14) This is expected behavior, if you install new kernel with same flavor (xen) then it is automatic updated. If you want use symlinks, then I think most suitable for you is set bootloader_type in /etc/sysconfig/bootloader to none and that avoid adding any new entries. Usually if user install new kernel it want use it. If you want make this behavior configurable, then open feature for that. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=492895 User pgnet.dev@gmail.com added comment http://bugzilla.novell.com/show_bug.cgi?id=492895#c16 --- Comment #16 from pgnet Dev <pgnet.dev@gmail.com> 2009-06-08 09:09:33 MDT --- (In reply to comment #15)
(In reply to comment #14) This is expected behavior, if you install new kernel with same flavor (xen) then it is automatic updated. If you want use symlinks, then I think most suitable for you is set bootloader_type in /etc/sysconfig/bootloader to none and that avoid adding any new entries. Usually if user install new kernel it want use it. If you want make this behavior configurable, then open feature for that.
actually, i've no issue with having new entries added ... good to have the boot options, i suppose. the issue is to be able to NOT switch, or in other words KEEP, the same/current grub entry selection that's selected at the beginning of the process. i understand that _adding_ the entry is expected behavior. is switching the grub entry # expected behavior as well? if yes, then "configurable" feature request may be the right next step. thanks! -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=492895 User jreidinger@novell.com added comment http://bugzilla.novell.com/show_bug.cgi?id=492895#c17 --- Comment #17 from Josef Reidinger <jreidinger@novell.com> 2009-06-09 02:29:30 MDT --- Yes, switching from old to newer kernel with same flavor is expected behavior. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=492895 User swamp@suse.com added comment http://bugzilla.novell.com/show_bug.cgi?id=492895#c18 Swamp Workflow Management <swamp@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status Whiteboard|maint:planned:update |maint:running:27336 |maint:planned:update | --- Comment #18 from Swamp Workflow Management <swamp@suse.com> 2009-09-16 09:22:44 MDT --- The SWAMPID for this issue is 27336. Please submit the patch and patchinfo file using this ID. (https://swamp.suse.de/webswamp/wf/27336) -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=492895 User jreidinger@novell.com added comment http://bugzilla.novell.com/show_bug.cgi?id=492895#c20 Josef Reidinger <jreidinger@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution| |FIXED --- Comment #20 from Josef Reidinger <jreidinger@novell.com> 2009-09-21 10:02:09 MDT --- Released as pbl 0.4.81.2 for 11.1 (now in update test repo) and 0.4.89.1 for SLE11 -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=492895 http://bugzilla.novell.com/show_bug.cgi?id=492895#c21 Swamp Workflow Management <swamp@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status Whiteboard|maint:running:27336 |maint:running:27336 | |maint:released:11.1:27643 --- Comment #21 from Swamp Workflow Management <swamp@suse.com> 2009-11-30 10:31:51 UTC --- Update released for: perl-Bootloader Products: openSUSE 11.1 (i586, ppc, x86_64) -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=492895 http://bugzilla.novell.com/show_bug.cgi?id=492895#c Swamp Workflow Management <swamp@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status Whiteboard|maint:running:27336 |maint:released:11.1:27643 |maint:released:11.1:27643 | -- Configure bugmail: http://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