After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 664766 - Correctly handle pure live media
Correctly handle pure live media
Status: RESOLVED FIXED
Product: gnome-boxes
Classification: Applications
Component: installer
unspecified
Other All
: Normal normal
: --
Assigned To: GNOME Boxes maintainer(s)
GNOME Boxes maintainer(s)
Depends on:
Blocks:
 
 
Reported: 2011-11-24 21:37 UTC by Zeeshan Ali
Modified: 2016-03-31 14:02 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Throw error from correct place (1.50 KB, patch)
2011-11-24 21:37 UTC, Zeeshan Ali
committed Details | Review
Improved detection for HW install media (5.84 KB, patch)
2011-11-24 21:37 UTC, Zeeshan Ali
committed Details | Review
Get OS info from purely live real media (878 bytes, patch)
2011-11-24 21:37 UTC, Zeeshan Ali
committed Details | Review
Drop redundant params of FedoraInstaller.extract_boot_files (2.05 KB, patch)
2011-11-24 21:37 UTC, Zeeshan Ali
committed Details | Review
Create transient domains for pure live media (5.21 KB, patch)
2011-11-24 21:37 UTC, Zeeshan Ali
committed Details | Review
wizard: Skip 'Setup' for w/ pure live media (1.17 KB, patch)
2011-11-24 21:37 UTC, Zeeshan Ali
committed Details | Review

Description Zeeshan Ali 2011-11-24 21:37:08 UTC
For pure (no installer) live media:

1. Create transient domain w/o any storage allocation
2. Skip 'Setup'

Unfortunately there is no pure live media now a days that I know of so to
test this I had to falsely mark fedora media in osinfo db as pure. Next
step on live media front would to give a choice to users about what  king
of box they want to launch.
Comment 1 Zeeshan Ali 2011-11-24 21:37:10 UTC
Created attachment 202092 [details] [review]
Throw error from correct place
Comment 2 Zeeshan Ali 2011-11-24 21:37:15 UTC
Created attachment 202093 [details] [review]
Improved detection for HW install media

Now that we get the ID of the osinfo's media instance that was matched
against the HW media, we can use that to get that instance to get more
reliable information about media we are dealing with.
Comment 3 Zeeshan Ali 2011-11-24 21:37:18 UTC
Created attachment 202094 [details] [review]
Get OS info from purely live real media
Comment 4 Zeeshan Ali 2011-11-24 21:37:20 UTC
Created attachment 202095 [details] [review]
Drop redundant params of FedoraInstaller.extract_boot_files
Comment 5 Zeeshan Ali 2011-11-24 21:37:23 UTC
Created attachment 202096 [details] [review]
Create transient domains for pure live media

For medias that do not provide an installer, we now create and launch a
transient domain w/o any storage media.
Comment 6 Zeeshan Ali 2011-11-24 21:37:26 UTC
Created attachment 202097 [details] [review]
wizard: Skip 'Setup' for w/ pure live media
Comment 7 Marc-Andre Lureau 2011-11-25 00:51:18 UTC
Review of attachment 202092 [details] [review]:

ack
Comment 8 Marc-Andre Lureau 2011-11-25 00:52:53 UTC
Review of attachment 202093 [details] [review]:

ack
Comment 9 Marc-Andre Lureau 2011-11-25 00:52:54 UTC
Review of attachment 202093 [details] [review]:

ack
Comment 10 Marc-Andre Lureau 2011-11-25 00:55:04 UTC
Review of attachment 202094 [details] [review]:

::: src/installer-media.vala
@@ +99,3 @@
+        if (os_id == null)
+            os_id = device.get_property ("OSINFO_LIVE");
+

I guess you could also use:

var os_id = device.get_property ("OSINFO_INSTALLER") ?? 
            device.get_property ("OSINFO_LIVE");

I like the second better, but up to you
Comment 11 Marc-Andre Lureau 2011-11-25 00:58:52 UTC
Review of attachment 202095 [details] [review]:

ack
Comment 12 Marc-Andre Lureau 2011-11-25 00:58:52 UTC
Review of attachment 202095 [details] [review]:

ack
Comment 13 Marc-Andre Lureau 2011-11-25 01:00:14 UTC
Review of attachment 202097 [details] [review]:

::: src/wizard.vala
@@ +247,3 @@
+            // No setup required for pure (no installer) live medias
+            Idle.add (() => {
+                page = page + 1;

is the idle justified here?
Comment 14 Marc-Andre Lureau 2011-11-25 01:00:24 UTC
Review of attachment 202095 [details] [review]:

ack
Comment 15 Marc-Andre Lureau 2011-11-25 01:01:21 UTC
Review of attachment 202096 [details] [review]:

ack
Comment 16 Zeeshan Ali 2011-11-25 02:13:25 UTC
(In reply to comment #13)
> Review of attachment 202097 [details] [review]:
> 
> ::: src/wizard.vala
> @@ +247,3 @@
> +            // No setup required for pure (no installer) live medias
> +            Idle.add (() => {
> +                page = page + 1;
> 
> is the idle justified here?

Perhaps its not really needed at the moment but I'm a bit scared of getting into issues in future for not letting the current page change end first. Anyways, no strong feelings so i can remove it if you like
Comment 17 Zeeshan Ali 2011-11-25 02:14:38 UTC
(In reply to comment #10)
> Review of attachment 202094 [details] [review]:
> 
> ::: src/installer-media.vala
> @@ +99,3 @@
> +        if (os_id == null)
> +            os_id = device.get_property ("OSINFO_LIVE");
> +
> 
> I guess you could also use:
> 
> var os_id = device.get_property ("OSINFO_INSTALLER") ?? 
>             device.get_property ("OSINFO_LIVE");
> 
> I like the second better, but up to you

Sure!
Comment 18 Zeeshan Ali 2011-11-25 23:04:31 UTC
Attachment 202092 [details] pushed as 76c4627 - Throw error from correct place
Attachment 202093 [details] pushed as eed02f2 - Improved detection for HW install media
Attachment 202094 [details] pushed as 51a2bcf - Get OS info from purely live real media
Attachment 202095 [details] pushed as a6f184c - Drop redundant params of FedoraInstaller.extract_boot_files
Attachment 202096 [details] pushed as b6aa23b - Create transient domains for pure live media
Attachment 202097 [details] pushed as 24fe4f3 - wizard: Skip 'Setup' for w/ pure live media