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 666368 - Single-password setup
Single-password setup
Status: RESOLVED FIXED
Product: gnome-boxes
Classification: Applications
Component: installer
3.3.x (unsupported)
Other Linux
: Normal normal
: --
Assigned To: GNOME Boxes maintainer(s)
GNOME Boxes maintainer(s)
Depends on:
Blocks:
 
 
Reported: 2011-12-16 15:37 UTC by Zeeshan Ali
Modified: 2016-03-31 13:57 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Set SPICE password when doing express installation (1.67 KB, patch)
2011-12-28 17:25 UTC, Zeeshan Ali
accepted-commit_now Details | Review
express: Set SPICE password when doing (1.66 KB, patch)
2012-01-05 18:30 UTC, Zeeshan Ali
committed Details | Review
express,fedora: Enable autologin for Fedora (867 bytes, patch)
2012-01-05 18:31 UTC, Zeeshan Ali
committed Details | Review
fedora,express: Run postinst commands inside chroot (659 bytes, patch)
2012-01-05 18:31 UTC, Zeeshan Ali
committed Details | Review

Description Zeeshan Ali 2011-12-16 15:37:18 UTC
For unattended installation, we should create a setup where user have to only authenticate once (when connecting to the box). Following needs to be done for that to work:

* Use the provided password at wizard's setup screen to be the SPICE password.
* Enable autologin

We must ensure that if autologin can not be setup for an OS, we shouldn't set SPICE password either then as that will serve contrary to the intended purpose.
Comment 1 Zeeshan Ali 2011-12-28 17:25:17 UTC
Created attachment 204294 [details] [review]
Set SPICE password when doing express installation

Use the provided password for user authentication as SPICE connection
password as well.
Comment 2 Marc-Andre Lureau 2011-12-28 18:56:24 UTC
Review of attachment 204294 [details] [review]:

looks like it would work, ack
Comment 3 Zeeshan Ali 2011-12-28 19:10:33 UTC
(In reply to comment #2)
> Review of attachment 204294 [details] [review]:
> 
> looks like it would work, ack

It does :)
Comment 4 Marc-Andre Lureau 2011-12-28 22:09:28 UTC
Would be nice to add auto-login in the guest with the same patch set.
Comment 5 Zeeshan Ali 2011-12-29 03:16:40 UTC
(In reply to comment #4)
> Would be nice to add auto-login in the guest with the same patch set.

Same patch or patch set? Its already enabled for windows but can't seem to find any straight-forward way to enable it for Fedora. :(
Comment 6 Zeeshan Ali 2012-01-05 18:30:53 UTC
Created attachment 204701 [details] [review]
express: Set SPICE password when doing

Use the provided password for user authentication as SPICE connection
password as well.
Comment 7 Zeeshan Ali 2012-01-05 18:31:17 UTC
Created attachment 204702 [details] [review]
express,fedora: Enable autologin for Fedora

It was already enabled for windows express installations.
Comment 8 Zeeshan Ali 2012-01-05 18:31:28 UTC
Created attachment 204703 [details] [review]
fedora,express: Run postinst commands inside chroot
Comment 9 Marc-Andre Lureau 2012-01-05 18:41:50 UTC
Review of attachment 204701 [details] [review]:

ack

::: src/vm-configurator.vala
@@ +40,3 @@
+            var unattended = install_media as UnattendedInstaller;
+
+            if (unattended.express_install && unattended.password != "")

in general, I prefer using a nullable for an optionnal argument, but in this case, I guess it makes sense.
Comment 10 Marc-Andre Lureau 2012-01-05 18:43:39 UTC
Review of attachment 204703 [details] [review]:

I would merge the two "fedora,express" patches, otherwise it would be nice to have a motivation for each patch
Comment 11 Zeeshan Ali 2012-01-05 18:56:06 UTC
(In reply to comment #10)
> Review of attachment 204703 [details] [review]:
> 
> I would merge the two "fedora,express" patches, otherwise it would be nice to
> have a motivation for each patch

My motivation is the simple rule of 'separate change, separate commit'. I'm OK with following yours on this but I haven't yet figured how you make these decisions so I could do the same way.
Comment 12 Zeeshan Ali 2012-01-05 19:01:38 UTC
Attachment 204701 [details] pushed as 866c280 - express: Set SPICE password when doing
Attachment 204702 [details] pushed as 96d56dc - express,fedora: Enable autologin for Fedora
Attachment 204703 [details] pushed as 82030ef - fedora,express: Run postinst commands inside chroot
Comment 13 Zeeshan Ali 2012-01-05 19:04:41 UTC
(In reply to comment #11)
> (In reply to comment #10)
> > Review of attachment 204703 [details] [review] [details]:
> > 
> > I would merge the two "fedora,express" patches, otherwise it would be nice to
> > have a motivation for each patch
> 
> My motivation is the simple rule of 'separate change, separate commit'. I'm OK
> with following yours on this but I haven't yet figured how you make these
> decisions so I could do the same way.

Darn and now I screwed-up and pushed even the commit that wasn't set to 'commit_now'. :( But would be good to know for next time. :)
Comment 14 Marc-Andre Lureau 2012-01-05 19:26:23 UTC
For the records:

14:21 <elmarco> better when you understand the purpose of the patch, and it actually does something..
14:22 <elmarco> so I am not fond of rewrite etc..
14:24 <elmarco> if I go back to 96d56dc, I guess it still doesn't work (but that's because I suppose 82030ef fixed it)
14:25 <elmarco> but none of this is written done in the commit, and in the end, I don't really care
14:25 <elmarco> you add autologin, you need the patch after, so just put the together
14:25 <elmarco> it's like if you would commit seperate lines of code otherwise
14:25 <elmarco> it's easy to split and split etc.. but doesn it make sense??
Comment 15 Marc-Andre Lureau 2012-01-05 19:31:49 UTC
(In reply to comment #14)
> 14:22 <elmarco> so I am not fond of rewrite etc..

Unmotivated rewrite, such as adding namespace, moving things around, etc.. if there is no advantage. Simplification is always good, of course.