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 676320 - User is not created during unattended installation of WinXP
User is not created during unattended installation of WinXP
Status: RESOLVED FIXED
Product: gnome-boxes
Classification: Applications
Component: installer
3.5.x (unsupported)
Other All
: Normal normal
: --
Assigned To: GNOME Boxes maintainer(s)
GNOME Boxes maintainer(s)
Depends on:
Blocks:
 
 
Reported: 2012-05-18 14:18 UTC by Zeeshan Ali
Modified: 2016-03-31 13:54 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Move exec* helpers to where they belong: Util module (4.21 KB, patch)
2012-05-22 03:08 UTC, Zeeshan Ali
committed Details | Review
express,winxp: Create user account & enable autologon (12.38 KB, patch)
2012-05-22 03:08 UTC, Zeeshan Ali
accepted-commit_now Details | Review
express,winxp: Create user account & enable autologon (12.40 KB, patch)
2012-05-22 15:49 UTC, Zeeshan Ali
none Details | Review
express,winxp,win2k3: Setup user account & autologon (12.99 KB, patch)
2012-05-22 17:53 UTC, Zeeshan Ali
committed Details | Review

Description Zeeshan Ali 2012-05-18 14:18:18 UTC
Cloning https://bugzilla.redhat.com/show_bug.cgi?id=822499 :

Description of problem:
I selected name and password for new user in setup phase, but this user is not
created. There is Administrator with right password (which I set), but no user.

Version-Release number of selected component (if applicable):
gnome-boxes-3.4.2-1.fc17.x86_64

How reproducible:
100%

Steps to Reproduce:
1. Create new vm
2. choose xp installation media
3. in Setup set: Express install - ON, user - foo, password - bar, product key
4. install

Actual results:
user is not created. Administrator user has setted password

Expected results:
There is no Name in setup or new user with given name is created.
Comment 1 Zeeshan Ali 2012-05-22 03:08:07 UTC
Created attachment 214628 [details] [review]
Move exec* helpers to where they belong: Util module
Comment 2 Zeeshan Ali 2012-05-22 03:08:11 UTC
Created attachment 214629 [details] [review]
express,winxp: Create user account & enable autologon

We weren't really creating a user account based on the information
provided. This patch fixes it. I tried very hard to find a less
intrusive way to accomplish this but I failed.
Comment 3 Marc-Andre Lureau 2012-05-22 10:59:03 UTC
Review of attachment 214628 [details] [review]:

ack
Comment 4 Marc-Andre Lureau 2012-05-22 10:59:31 UTC
Review of attachment 214629 [details] [review]:

patch looks good, ack
Comment 5 Zeeshan Ali 2012-05-22 15:49:19 UTC
Created attachment 214671 [details] [review]
express,winxp: Create user account & enable autologon

This version takes care of empty password case.
Comment 6 Christophe Fergeau 2012-05-22 16:02:07 UTC
Hmm not a big fan of UnattendedFile actually being an UnattendedTextFile since I'll need to use this with binary files ;)
Comment 7 Zeeshan Ali 2012-05-22 17:53:20 UTC
Created attachment 214681 [details] [review]
express,winxp,win2k3: Setup user account & autologon

Just a minor update: Don't forget to apply the changes to Windows 2003.
Comment 8 Zeeshan Ali 2012-05-23 15:11:07 UTC
(In reply to comment #6)
> Hmm not a big fan of UnattendedFile actually being an UnattendedTextFile since
> I'll need to use this with binary files ;)

Actually I'm already using this for a binary file myself: user logo and what I'm doing is that i make a subclass of UnattendedFile that does a different conversion. I'd suggest you do the same for your binaries.
Comment 9 Christophe Fergeau 2012-05-23 15:20:11 UTC
(In reply to comment #8)
> (In reply to comment #6)
> > Hmm not a big fan of UnattendedFile actually being an UnattendedTextFile since
> > I'll need to use this with binary files ;)
> 
> Actually I'm already using this for a binary file myself: user logo and what
> I'm doing is that i make a subclass of UnattendedFile that does a different
> conversion. I'd suggest you do the same for your binaries.

Subclassing to get a more generic behaviour sounds backwards to me.
Comment 10 Zeeshan Ali 2012-05-23 15:23:27 UTC
(In reply to comment #9)
> (In reply to comment #8)
> > (In reply to comment #6)
> > > Hmm not a big fan of UnattendedFile actually being an UnattendedTextFile since
> > > I'll need to use this with binary files ;)
> > 
> > Actually I'm already using this for a binary file myself: user logo and what
> > I'm doing is that i make a subclass of UnattendedFile that does a different
> > conversion. I'd suggest you do the same for your binaries.
> 
> Subclassing to get a more generic behaviour sounds backwards to me.

Its not more generic but rather one specific to another specific but yeah, i could create an interface and 2 implementations instead..
Comment 11 Zeeshan Ali 2012-05-23 18:40:23 UTC
Comment on attachment 214681 [details] [review]
express,winxp,win2k3: Setup user account & autologon

As I said on IRC, I'll create the generic interface and rename this class as part of the WIP patch that installs user's avatar.