[Bug 586303] New: Upgrade using NET install hangs when updating boot loader
http://bugzilla.novell.com/show_bug.cgi?id=586303 http://bugzilla.novell.com/show_bug.cgi?id=586303#c0 Summary: Upgrade using NET install hangs when updating boot loader Classification: openSUSE Product: openSUSE 11.3 Version: Milestone 3 Platform: x86-64 OS/Version: openSUSE 11.3 Status: NEW Severity: Major Priority: P5 - None Component: Installation AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: Larry.Finger@lwfinger.net QAContact: jsrain@novell.com Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.0) Gecko/20100115 SUSE/3.6.0-1.8 Firefox/3.6 An upgrade from 11.3 M2 to 11.3 M3 proceeded normally until the bootloader upgrade phase. This step was allowed to run overnight, but never finished. After power off and a reboot was attempted, the reboot failed as the kernel and initrd file names had not been updated. After a manual edit of /boot/grub/menu.lst, the system runs fine. Reproducible: Always Steps to Reproduce: 1.Boot 11.3 M3 NET install CD 2.Upgrade the system 3. Actual Results: It failed to finish the bootloader 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=586303
http://bugzilla.novell.com/show_bug.cgi?id=586303#c
yang xiaoyu
http://bugzilla.novell.com/show_bug.cgi?id=586303
http://bugzilla.novell.com/show_bug.cgi?id=586303#c1
Jiri Srain
http://bugzilla.novell.com/show_bug.cgi?id=586303
http://bugzilla.novell.com/show_bug.cgi?id=586303#c2
Larry Finger
http://bugzilla.novell.com/show_bug.cgi?id=586303
http://bugzilla.novell.com/show_bug.cgi?id=586303#c3
Jiri Srain
http://bugzilla.novell.com/show_bug.cgi?id=586303
http://bugzilla.novell.com/show_bug.cgi?id=586303#c4
--- Comment #4 from Larry Finger
http://bugzilla.novell.com/show_bug.cgi?id=586303
http://bugzilla.novell.com/show_bug.cgi?id=586303#c5
Larry Finger
http://bugzilla.novell.com/show_bug.cgi?id=586303
http://bugzilla.novell.com/show_bug.cgi?id=586303#c6
Jiri Srain
http://bugzilla.novell.com/show_bug.cgi?id=586303
http://bugzilla.novell.com/show_bug.cgi?id=586303#c7
--- Comment #7 from Larry Finger
http://bugzilla.novell.com/show_bug.cgi?id=586303
http://bugzilla.novell.com/show_bug.cgi?id=586303#c8
--- Comment #8 from Larry Finger
http://bugzilla.novell.com/show_bug.cgi?id=586303
http://bugzilla.novell.com/show_bug.cgi?id=586303#c9
Larry Finger
http://bugzilla.novell.com/show_bug.cgi?id=586303
http://bugzilla.novell.com/show_bug.cgi?id=586303#c10
Jiri Srain
http://bugzilla.novell.com/show_bug.cgi?id=586303
http://bugzilla.novell.com/show_bug.cgi?id=586303#c11
Larry Finger
http://bugzilla.novell.com/show_bug.cgi?id=586303
http://bugzilla.novell.com/show_bug.cgi?id=586303#c
Jiri Srain
http://bugzilla.novell.com/show_bug.cgi?id=586303
http://bugzilla.novell.com/show_bug.cgi?id=586303#c12
Josef Reidinger
http://bugzilla.novell.com/show_bug.cgi?id=586303
http://bugzilla.novell.com/show_bug.cgi?id=586303#c13
Michael Andres
http://bugzilla.novell.com/show_bug.cgi?id=586303
http://bugzilla.novell.com/show_bug.cgi?id=586303#c14
--- Comment #14 from Josef Reidinger
http://bugzilla.novell.com/show_bug.cgi?id=586303
http://bugzilla.novell.com/show_bug.cgi?id=586303#c15
--- Comment #15 from Michael Andres
Then depend on type of bootloader I choose to use summary or shortname (limitations of some bootloaders). So single command which return string is not sufficient for me.
We could offer
Parsing of /etc/products.d/basesystem sounds easy for perl as it doesn't depend on any tool which can break bootloader update process (but can have problems when you change these informations). Question is if it breaks also SLE11SP1 as same solution is also implemented there - see bug 583034 for reasons
-- 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=586303
http://bugzilla.novell.com/show_bug.cgi?id=586303#c16
--- Comment #16 from Josef Reidinger
(In reply to comment #14)
Then depend on type of bootloader I choose to use summary or shortname (limitations of some bootloaders). So single command which return string is not sufficient for me.
We could offer
If zypper could return both shortname and summary it could be perfect. Is it possible to do it for 11.3 and also for SLE11SP1? -- 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=586303
http://bugzilla.novell.com/show_bug.cgi?id=586303#c17
--- Comment #17 from Michael Andres
http://bugzilla.novell.com/show_bug.cgi?id=586303
http://bugzilla.novell.com/show_bug.cgi?id=586303#c
Josef Reidinger
http://bugzilla.novell.com/show_bug.cgi?id=586303
http://bugzilla.novell.com/show_bug.cgi?id=586303#c21
Josef Reidinger
http://bugzilla.novell.com/show_bug.cgi?id=586303
http://bugzilla.novell.com/show_bug.cgi?id=586303#c22
Ján Kupec
- Libzypp already provides some methods to retrieve certain baseproduct values without explicitly initializing the target. zypper uses them e.g. for 'zypper tos'.
Heh, i already forgot we have this command! But the command does initialize the target: case ZypperCommand::TARGET_OS_e: { // needed to be able to retrieve the target distribution init_target(*this); out().info(God->target()->targetDistribution()); break; } But it does not load repos, and does not need the global lock, which is the most important thing here, right?
We can offer something similar for the bootloader, if you ask for it. Could be called 'zypper bootlabel' or so.
OK, i'll think of something.
Just ask Jano to implement the CLI and tell me which value(s) from the product are needed. Then your code does not need to know anything about the products.d entries, and you probably get the ready to use string out of zypper.
Bootloader needs the values returned by Product::shortName() and Product::summary(). -- 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=586303
http://bugzilla.novell.com/show_bug.cgi?id=586303#c23
--- Comment #23 from Michael Andres
But it does not load repos, and does not need the global lock, which is the most important thing here, right?
Important is that it does not launch the repos, nor loads the target resolvables. If 'God' in your example is ZYpp, then your code crates a lock and initializes the target (rpm database and gpg keys). Target also contains static versions for all baseproduct related methods. They don't init anything, just parse the baseproduct file. Target::targetDistribution( const Pathname & root_r )
Bootloader needs the values returned by Product::shortName() and Product::summary().
I could offer a
std::pairstd::string,std::string Target::distributionLabel( root_r );
This would fit to distributionVersion and distributionFlavor which already
exist.
The std::pair would return
http://bugzilla.novell.com/show_bug.cgi?id=586303
http://bugzilla.novell.com/show_bug.cgi?id=586303#c24
--- Comment #24 from Ján Kupec
http://bugzilla.novell.com/show_bug.cgi?id=586303
http://bugzilla.novell.com/show_bug.cgi?id=586303#c25
Michael Andres
http://bugzilla.novell.com/show_bug.cgi?id=586303
http://bugzilla.novell.com/show_bug.cgi?id=586303#c
Michael Andres
http://bugzilla.novell.com/show_bug.cgi?id=586303
http://bugzilla.novell.com/show_bug.cgi?id=586303#c26
Josef Reidinger
@Josef: Do you actually need both values
, or would it be sufficient to return just the shortName, and fall back to the label if shortName, is empty?
No I need both, as grub allows long names and it is preffered to have there long names, but elilo, plilo, zipl or lilo doesn't allow so long names with spaces. So I look which one user currently use and create name. If anything is empty and I handle it in some fallback, so it is not problem, if you return empty value for some value. -- 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=586303
http://bugzilla.novell.com/show_bug.cgi?id=586303#c27
--- Comment #27 from Michael Andres
http://bugzilla.novell.com/show_bug.cgi?id=586303
http://bugzilla.novell.com/show_bug.cgi?id=586303#c28
--- Comment #28 from Ján Kupec
http://bugzilla.novell.com/show_bug.cgi?id=586303
http://bugzilla.novell.com/show_bug.cgi?id=586303#c29
--- Comment #29 from Ján Kupec
http://bugzilla.novell.com/show_bug.cgi?id=586303
http://bugzilla.novell.com/show_bug.cgi?id=586303#c30
--- Comment #30 from Josef Reidinger
Or even better (in the spirit of normal output, --xmlout, and --terse):
$ zypper tos --label Distribution label: Beautiful Name Short Version: BN (for humans, translated)
$ zypper --terse tos --label long=Beautiful Name short=BN (for machines)
$ zypper --xmlout tos --label <distribution id="beautifulDistro-3-x86_64" label="Beautiful Name" short_label="BN"/> (for xml-loving machines)
sounds good for me. -- 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=586303
http://bugzilla.novell.com/show_bug.cgi?id=586303#c31
--- Comment #31 from Larry Finger
http://bugzilla.novell.com/show_bug.cgi?id=586303
http://bugzilla.novell.com/show_bug.cgi?id=586303#c32
Ján Kupec
http://bugzilla.novell.com/show_bug.cgi?id=586303
http://bugzilla.novell.com/show_bug.cgi?id=586303#c33
--- Comment #33 from Ján Kupec
http://bugzilla.novell.com/show_bug.cgi?id=586303
http://bugzilla.novell.com/show_bug.cgi?id=586303#c34
--- Comment #34 from Josef Reidinger
http://bugzilla.novell.com/show_bug.cgi?id=586303
http://bugzilla.novell.com/show_bug.cgi?id=586303#c
Josef Reidinger
http://bugzilla.novell.com/show_bug.cgi?id=586303
http://bugzilla.novell.com/show_bug.cgi?id=586303#c35
Josef Reidinger
http://bugzilla.novell.com/show_bug.cgi?id=586303
http://bugzilla.novell.com/show_bug.cgi?id=586303#c36
Swamp Workflow Management
https://bugzilla.novell.com/show_bug.cgi?id=586303
https://bugzilla.novell.com/show_bug.cgi?id=586303#c37
Swamp Workflow Management
https://bugzilla.novell.com/show_bug.cgi?id=586303
https://bugzilla.novell.com/show_bug.cgi?id=586303#c
Swamp Workflow Management
participants (1)
-
bugzilla_noreply@novell.com