[Bug 337492] New: grub update disables network boot
https://bugzilla.novell.com/show_bug.cgi?id=337492 Summary: grub update disables network boot Product: openSUSE 10.3 Version: Final Platform: Other OS/Version: Other Status: NEW Severity: Normal Priority: P5 - None Component: Basesystem AssignedTo: duwe@novell.com ReportedBy: ak@novell.com QAContact: qa@suse.de Found By: --- I have a system where i load the kernel from a server using grub (PXE doesn't work). For that I replaced stage2 with stage2.netboot Unfortunately an distribution update overwrites stage2 and then the network boot doesn't work anymore. The update should handle this somehow. -- 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=337492#c1 Torsten Duwe <duwe@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |NEEDINFO Info Provider| |ak@novell.com --- Comment #1 from Torsten Duwe <duwe@novell.com> 2007-10-30 08:10:13 MST --- For "grub bugs" please have a look at http://en.opensuse.org/Bugs/grub first. Experienced users (like you ;-) may at their own risk skip to the last section and supply relevant information right away. In this case I'd be particularily interested in your /etc/grub.conf -- 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=337492#c2 Andi Kleen <ak@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |NEW Info Provider|ak@novell.com | --- Comment #2 from Andi Kleen <ak@novell.com> 2007-10-30 09:06:54 MST --- The /etc/grub.conf is completely unchanged. Are you sure you need it? All I did was to copy over stage2 with stage2.netboot and then added an entry to menu.lst that booted over tftp. -- 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=337492#c3 Torsten Duwe <duwe@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |INVALID --- Comment #3 from Torsten Duwe <duwe@novell.com> 2007-10-30 10:15:35 MST --- /etc/grub.conf unchanged means your boot path is unchanged, means boot from some disk, I suppose. A grub update will install the new version into your configured boot path, discarding any undocumented one-time changes -> works as expected. hint: "info -f grub -n install" and then "vi /etc/grub.conf" -- 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=337492#c4 Andi Kleen <ak@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED Resolution|INVALID | --- Comment #4 from Andi Kleen <ak@novell.com> 2007-10-30 13:31:01 MST --- Doesn't work I edited /etc/grub.conf to setup --stage2=/usr/lib/grub/stage2.netboot (hd0) (hd0,6) quit and then grub-install elmo:~ # grub-install GNU GRUB version 0.97 (640K lower / 3072K upper memory) [ Minimal BASH-like line editing is supported. For the first word, TAB lists possible command completions. Anywhere else TAB lists the possible completions of a device/filename. ] grub> setup --stage2=/usr/lib/grub/stage2.netboot (hd0) (hd0,6) Checking if "/boot/grub/stage1" exists... yes Checking if "/boot/grub/stage2" exists... yes Checking if "/boot/grub/e2fs_stage1_5" exists... yes Running "embed /boot/grub/e2fs_stage1_5 (hd0)"... 15 sectors are embedded. succeeded Running "install --stage2=/usr/lib/grub/stage2.netboot /boot/grub/stage1 (hd0) (hd0)1+15 p (hd0,6)/boot/grub/stage2 /boot/grub/menu.lst"... succeeded Done. grub> quit Note it still writes /boot/grub/stage2 again which is the wrong one: elmo:~ # ls -l /boot/grub/stage2 /usr/lib/grub/stage2.netboot -rw-r--r-- 1 root root 103138 2007-12-22 06:22 /boot/grub/stage2 -rw-r--r-- 1 root root 176844 2007-12-22 06:56 /usr/lib/grub/stage2.netboot Result doesn't boot over the network. It works when I do cp /usr/lib/grub/stage2.netboot /boot/grub/stage2 but then I have the update problem again. -- 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=337492#c5 Torsten Duwe <duwe@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|REOPENED |RESOLVED Resolution| |INVALID --- Comment #5 from Torsten Duwe <duwe@novell.com> 2007-10-30 15:41:49 MST --- That's why I pointed you at the advanced "install" command, not the simplified "setup". -- 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=337492#c6 Andi Kleen <ak@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED Resolution|INVALID | --- Comment #6 from Andi Kleen <ak@novell.com> 2007-10-30 15:54:45 MST --- How would that solve the update problem? Sure I can do all kind of things by hand (with the easiest being just copying stage2 over) but I'm trying to find a set up that is update safe My understanding is that a grub update will rerun grub-install and the network boot should still work after that. -- 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=337492 User duwe@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=337492#c7 Torsten Duwe <duwe@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|REOPENED |RESOLVED Resolution| |INVALID --- Comment #7 from Torsten Duwe <duwe@novell.com> 2008-01-02 07:16:08 MST --- Yes, and an adequately crafted grub.conf will do this for you. The help text for "install" will tell you how. You're welcome to contact me via private Mail if you need more help. -- 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