Bug 24518

Summary: Live install (from desktop) if cancelled after partition info is written to disk, will fail to format partitions if rerun
Product: Mageia Reporter: Ben McMonagle <westel>
Component: InstallerAssignee: Martin Whitaker <mageia>
Status: RESOLVED WORKSFORME QA Contact:
Severity: normal    
Priority: Normal CC: mageia, marja11
Version: CauldronKeywords: 7beta2, NEEDINFO
Target Milestone: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Source RPM: CVE:
Status comment:

Description Ben McMonagle 2019-03-16 00:27:50 CET
Description of problem: if the Live installer (from Live Desktop) is cancelled after partitions are created (via custom disk partitioning) and then the Installer is restarted, the install will fail if the installer is required to now format the partitions after mount points are added (again using custom disk partitioning) as is unable to complete the formatting.

if desktop is logged out . and back in, the installer "resets" and if un-interrupted, will complete install without issue.


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


How reproducible: always


Steps to Reproduce:
1.boot to a live desktop and start the installer
2.choose "custom disk partitioning"
3.create /, /swap, /home partitions and set mount points and press "done"
4.wait for this partition info to be written to disk.
5.cancel the installation.
6.restart the installer and repeat steps 2-4 by deleting and recreating the partitions.
7. check boxes to format partitions and 'ok'
8. formatting will fail.
Ben McMonagle 2019-03-16 00:28:13 CET

Keywords: (none) => 7beta2

Comment 1 Martin Whitaker 2019-03-16 17:24:42 CET
At step 5, did the installer automatically restart or did you restart it manually?

Which DE were you using?

CC: (none) => mageia
Keywords: (none) => NEEDINFO

Comment 2 Ben McMonagle 2019-03-16 20:34:59 CET
(In reply to Martin Whitaker from comment #1)
> At step 5, did the installer automatically restart or did you restart it
> manually?

manually

> 
> Which DE were you using?

xfce and also noted for plasma
Comment 3 Martin Whitaker 2019-03-17 00:32:54 CET
(In reply to ben mcmonagle from comment #2)
> (In reply to Martin Whitaker from comment #1)
> > At step 5, did the installer automatically restart or did you restart it
> > manually?
> 
> manually

Drat, I could have explained it if it was after the installer automatically restarted :-(

I assume you are starting the installer as a normal user, not as root.
Comment 4 Ben McMonagle 2019-03-17 01:12:37 CET
"Live" technically is root (maybe)
Comment 5 Ben McMonagle 2019-03-17 01:21:21 CET
given that restarting the desktop overcomes the issue, i am guessing a config file needs to be reset/ cleared / deleted if the installer is cancelled and restarted by the user.
Comment 6 Martin Whitaker 2019-03-17 10:27:08 CET
(In reply to ben mcmonagle from comment #4)
> "Live" technically is root (maybe)

No, the "live" user has normal privileges. The reason you can run MCC, etc. without being asked for a password is that "root" does not have a password on the live system.

(In reply to ben mcmonagle from comment #5)
> given that restarting the desktop overcomes the issue, i am guessing a
> config file needs to be reset/ cleared / deleted if the installer is
> cancelled and restarted by the user.

My suspicion is that the new partitions are getting auto-mounted by Thunar (or the Plasma equivalent). That is what happens when the installer automatically restarts. Mind you, you should see that because Thunar would start opening file browser windows.
Comment 7 Marja Van Waes 2019-03-19 13:57:43 CET
(In reply to Martin Whitaker from comment #6)

> 
> My suspicion is that the new partitions are getting auto-mounted by Thunar
> (or the Plasma equivalent). That is what happens when the installer
> automatically restarts. Mind you, you should see that because Thunar would
> start opening file browser windows.

Ben, can you confirm that that's what's happening?

Assigning to Martin, for a decision (after Ben's feedback) on what to do with this report :-)

CC: (none) => marja11
Assignee: bugsquad => mageia

Comment 8 Martin Whitaker 2019-03-19 21:54:22 CET
I can't reproduce the bug by following the steps in the initial description - if I delete and recreate the partitions, the installer automatically formats them without stopping to ask.

Ben, could you reproduce the fault whilst running the installer from a terminal window (as the normal "live" user), started by

  draklive-install |& tee install.log

then, as root, run

  journalctl -b > journal.log
  mount > mount.log

and attach the resulting log files
Comment 9 Ben McMonagle 2019-07-07 02:33:10 CEST
cannot re-create for m7 final

Status: NEW => RESOLVED
Resolution: (none) => WORKSFORME