Bug 10107

Summary: Rescue system Reinstall bootloader fails with Error 12: Invalid device requested
Product: Mageia Reporter: claire robinson <eeeemail>
Component: Release (media or process)Assignee: Mageia Bug Squad <bugsquad>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: release_blocker CC: ennael1, luigiwalser, mageia, sysadmin-bugs, thierry.vignaud, tmb
Version: Cauldron   
Target Milestone: ---   
Hardware: i586   
OS: Linux   
Whiteboard:
Source RPM: CVE:
Status comment:

Description claire robinson 2013-05-15 13:58:13 CEST
Testing rescue system on pre 3 final classic dvd 32

Reinstall bootloader fails with Error 12 : Invalid device requested.

See https://dl.dropboxusercontent.com/u/4147101/mga3final/2013-05-15_11-34-20.jpg

Reproducible: 

Steps to Reproduce:
claire robinson 2013-05-15 13:58:59 CEST

CC: (none) => ennael1, thierry.vignaud

Comment 1 David Walser 2013-05-15 17:37:33 CEST
I saw the same bootstrapping rescue through boot.iso.

https://bugs.mageia.org/show_bug.cgi?id=10098#c6

This really should be release critical as the rescue is part of the installer, which can't be fixed after the release, and this is important functionality.

CC: (none) => luigiwalser

David Walser 2013-05-16 22:33:36 CEST

Priority: Normal => release_blocker

Comment 2 David Walser 2013-05-17 00:19:55 CEST
Dave Hodgins figured out that if you bind mount /dev in the chroot, this works.

It's really hard to figure out what code is getting run for this and where it is in SVN.
Comment 3 David Walser 2013-05-17 00:52:14 CEST
This looks suspicous:
http://svnweb.mageia.org/soft/drakx/trunk/perl-install/devices.pm?r1=5618&r2=7908
David Walser 2013-05-17 00:55:16 CEST

CC: (none) => mageia

Comment 4 David Walser 2013-05-17 00:55:48 CEST
Colin, could revision 7908 be why /mnt/dev only has null in it in rescue?
Comment 5 Colin Guthrie 2013-05-17 10:35:50 CEST
We pretty much have to bind mount /dev in any chroot. If the reinstall bootloader routine here doesn't do that, we should likely make it do so.
Comment 6 David Walser 2013-05-17 14:11:36 CEST
It's hard to see what change broke this, but anyway we're really running out of time to fix this :o(
Comment 7 Colin Guthrie 2013-05-18 11:21:54 CEST
I've just committed a change in drakxtools svn that ensures /dev is bind mounted before reinstalling the boot loader. I tested this change in a rescue boot by copying the modified file to /tmp and running it directly and all seemed well. Rescue will still need released and pushed.
Comment 8 Thomas Backlund 2013-05-18 15:09:11 CEST
drakx-installer-rescue-1.44-1.mga3 submitted

Status: NEW => RESOLVED
CC: (none) => tmb
Resolution: (none) => FIXED