Bug 533601

Summary: Live-Installation on Blank Hard Drive Fails
Product: [openSUSE] openSUSE 11.2 Reporter: Stephan Binner <binner>
Component: YaST2Assignee: Jiri Srain <jsrain>
Status: RESOLVED FIXED QA Contact: Jiri Srain <jsrain>
Severity: Normal    
Priority: P3 - Medium CC: jsuchome, locilka, novellbmw
Version: Final   
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: Screenshot of error dialog
/var/log/YaST2/

Description Stephan Binner 2009-08-23 22:00:06 UTC
User-Agent:       Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.2) Gecko/20090730 SUSE/3.5.2-2.1 Firefox/3.5.2

Testing Milestone 6 KDE Live-CD Installation within Virtualbox on a fresh/empty disk drive fails with a "Switching to the Installed System Failed" popup.

Reproducible: Always
Comment 1 Stephan Binner 2009-08-23 22:00:53 UTC
Created attachment 314670 [details]
Screenshot of error dialog
Comment 2 Stephan Binner 2009-08-23 22:01:39 UTC
Created attachment 314671 [details]
/var/log/YaST2/
Comment 3 Stephan Binner 2009-08-31 13:53:59 UTC
This could be related on too small free disk space/drive (iirc it was a 2GB media). Had several successful install later on bigger drives.
Comment 4 Jiri Srain 2009-09-09 11:39:10 UTC
Yes, according to the log, copying the image failed. I will add better error handling.
Comment 5 Stephan Binner 2009-09-14 07:03:45 UTC
Is this fixed with the latest yast2-live-installer and yast2-installation submissions to Factory?
Comment 6 Jiri Srain 2009-09-14 13:16:46 UTC
YaST reports an error when copying the image fails, sorry for forgetting to fix this bug.
Comment 7 Stephan Binner 2009-09-21 14:20:41 UTC
*** Bug 539872 has been marked as a duplicate of this bug. ***
Comment 8 Bernhard Wiedemann 2009-10-02 11:38:25 UTC
I did re-try this today with MS8 openSUSE-GNOME-LiveCD-Build0308-i686.iso and indeed there is a message that "copying the image failed" but this had no further details and it still leaves the user wondering about the cause of the failure and possible measures to take against it.



in my bug 539872 I gave

Expected Results:  
the disk space should be checked and either
a) the automatic selection of packages be reduced to fit the disk-size or
b) a warning (as pop-up or text in red letters) be issued and the user allowed
to change the package-selection accordingly or let continue on his own risk
c) if disk-space runs out during installation, the user should be notified of
this event so that he can take appropriate measures.


so c) would rather be something like "Installation failed because the target partition is full. Please choose a bigger partition (of at least 2xxx MB) for installation"

This is worth a lot for user-experience.
Comment 9 Bernhard Wiedemann 2009-11-16 16:01:32 UTC
There is still no proper "disk full"-message in 11.2-final.
Comment 10 Jiri Srain 2011-02-15 14:28:52 UTC
Updating the package selection is not possible, remember that you copy the image as it is.

A buffer could be added (e.g. that 20% of the disk must be left empty).

Another issue is that the target disk may be partitioned - unfortunately YaST does not have data about distribution of the disk space among directories in the live CD; of course those can be calculated, it just takes some time.

I will look into this with 11.4 live CD.
Comment 11 Jiri Srain 2011-08-04 11:25:49 UTC
I've looked into it right now. Basically, I see two possibilities to improve the behavior here:

1. Detecting "out of space" - can be done either via grepping the output (rather fragile) or post-installation checking whether the disk is 100% full

2. Improving the partitioning proposal to inform that the system may not fit. It can only be warning and will never be 100% successful - because the live image does not contain info about the distribution of used data in the directories (how much is e.g. /usr); it can be calculated, but that is too slow. Therefore, the check can only look like "if root is less than image size + 20% buffer, issue a warning". Default partitioning does not use separate partitions, therefore it should work.


I know that no of the solutions is perfect, but I cannot think of better one.
Comment 12 Jiri Srain 2011-08-08 11:19:44 UTC
I've decided for the first way only (because the later could also result in false positives). I suggest to implement the pre-installation check when the media contains the needed information and filed https://bugzilla.novell.com/show_bug.cgi?id=710930.

The check works that in case of failuer, if there is no disk space, it reports different error message explicitly mentioning disk space.
Comment 13 Bernhard Wiedemann 2016-04-15 09:49:03 UTC
This is an autogenerated message for OBS integration:
This bug (533601) was mentioned in
https://build.opensuse.org/request/show/78282 Factory / yast2-live-installer