Bug 30096

Summary: allow draklive-install to run and complete from internal boot device if only 1 internal boot device(via grub2 entry)
Product: Mageia Reporter: Ben McMonagle <westel>
Component: RPM PackagesAssignee: Mageia tools maintainers <mageiatools>
Status: NEW --- QA Contact:
Severity: enhancement    
Priority: Normal    
Version: 8   
Target Milestone: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Source RPM: draklive-install-2.30-1.mga8.noarch CVE:
Status comment:
Attachments: rdrakbug report from failed install

Description Ben McMonagle 2022-02-26 07:27:54 CET
Description of problem: Currently, if a Live-boot.iso is run from a HDD partition (via grub2 entry), draklive-install fails with response:
an error occurred.
Can't call method "first_usable_sector" on unblessed reference.

Allowing draklive-install to proceed would create an alternate method of completing an installation, as, currently, if a classical.iso is booted from a HDD partition (via grub2 entry), it will successfully complete.

see => https://wiki.mageia.org/en/Installing_Mageia_from_ISO_images_on_disk_using_grub2

As uses  of a Live system is not limited to just testing / system compatibility testing, and is sometimes used for file recovery and or failed system repair, and if booted from hdd (via grub2 entry), allowing the install to complete would improve these options, especially if no available bootable media is available. 

as an aside, currently, I have not found a Live-boot.iso from any ubiquity based installers that are able to complete the install.


Version-Release number of selected component (if applicable):


How reproducible:every time


Steps to Reproduce:
1.live boot from hdd (via grub2 entry)
2.attempt to install via  "Install on Hard Disk" icon or terminal entry draklive-install
3. note error message
Comment 1 Ben McMonagle 2022-02-26 07:36:29 CET
Pop!-OS does something similar, but they have a special "recovery image" for this
Comment 2 Lewis Smith 2022-02-26 09:26:06 CET
Thanks for the report.

Assigning it to our 'tools' group.

Assignee: bugsquad => mageiatools

Comment 3 Ben McMonagle 2022-03-04 08:58:56 CET
editing the grub kernel command line parameters to include "toram" or 'toram=filesystem.squashfs'  and then, after the desktop is presented, unmounting the partition,ie via diskdrake, should allow the installation to proceed, as the Live system is in theory disconnected from the HDD,  but it gives the same error.
Comment 4 Ben McMonagle 2022-03-10 09:43:58 CET
Created attachment 13168 [details]
rdrakbug report from failed install
Ben McMonagle 2022-03-11 23:00:05 CET

Summary: allow draklive-install to run and complete from HDD boot (via grub2 entry) => allow draklive-install to run and complete from internal boot device if only 1 internal boot device(via grub2 entry)

Comment 5 Ben McMonagle 2022-03-12 00:06:50 CET
it appears that if the Live-Boot partition is on a second internal storage device, then the install can complete.

install in quite fast from internal device.

test system is a dual hdd virtual box, and the Live-Boot partition is sdb1

Mageia-8-Live-Plasma-x86_64.
chose custom partitioning, and selected a single / system on sda7.
there was already 1 existing system so end result is dual boot.
at completion of install, I chose not update system.

install was started from konsole: 
$ time draklive-install

~

real  4m7.010s
user  0m40.880s
sys   1m12.738s

including removal of unwanted packages