[Bug 349739] New: mkinitrd: wrong resume device
https://bugzilla.novell.com/show_bug.cgi?id=349739 Summary: mkinitrd: wrong resume device Product: openSUSE 10.3 Version: Final Platform: Other OS/Version: openSUSE 10.3 Status: NEW Severity: Normal Priority: P5 - None Component: Kernel AssignedTo: kernel-maintainers@forge.provo.novell.com ReportedBy: manfred99@gmx.ch QAContact: qa@suse.de Found By: --- Created an attachment (id=188205) --> (https://bugzilla.novell.com/attachment.cgi?id=188205) Patch for mkinitrd I managed, once again, to shoot myself in the foot. Scenario: - fstab with UUID= partitions - add an additional disk which shifts root disk from /dev/sda to /dev/sdb (additional disk to my jmicron controller, which is listed first in linux) - reboot - try to install a new kernel - mkinitrd fails, using wrong resume device: .. Resume device: /dev/sda6 Device sda not found in sysfs Script /lib/mkinitrd/setup/72-block.sh failed! Issue: As I did not change lilo.conf, boot parameter for resume is wrong now, is /dev/sda6, should be /dev/sdb6. Therefore /proc/cmdline has wrong resume device information. mkinitrd fails. And now you are completely screwed, there is no way to convince mkinitrd to take the right resume device. mkinitrd takes the resume device from /proc/cmdline, without any possibility to override. I will add diffs against opensuse10.3 for a possible mitigation. With added patch, I can do "mkinitrd -r /dev/sdb6", and everything is fine. Thanks, Manfred -- 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=349739
User manfred99@gmx.ch added comment
https://bugzilla.novell.com/show_bug.cgi?id=349739#c1
--- Comment #1 from Manfred Schwarb
https://bugzilla.novell.com/show_bug.cgi?id=349739
User manfred99@gmx.ch added comment
https://bugzilla.novell.com/show_bug.cgi?id=349739#c2
Manfred Schwarb
https://bugzilla.novell.com/show_bug.cgi?id=349739
Cristian Rodriguez
https://bugzilla.novell.com/show_bug.cgi?id=349739
Hannes Reinecke
https://bugzilla.novell.com/show_bug.cgi?id=349739
Hannes Reinecke
https://bugzilla.novell.com/show_bug.cgi?id=349739
User hare@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=349739#c3
Hannes Reinecke
participants (1)
-
bugzilla_noreply@novell.com