Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Sign upSet timezone in template (firstboot) #150
Comments
marmarek
assigned
rootkovska
Mar 8, 2015
marmarek
added this to the Release 1 Beta 1 milestone
Mar 8, 2015
marmarek
added
bug
C: templates
P: major
labels
Mar 8, 2015
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
marmarek
Mar 8, 2015
Member
Comment by joanna on 30 Mar 2011 08:24 UTC
There is, however, a problem with running dispvm setup from within template's %post. Namely, it is expected that the very first thing that the user will do with a newly installed template is... setting the timezone. This requires doing qvm-run -a system-config-date. Potentially also setting up a printer (that's why the recent template 1.2.4-f13 has appmenus for those actions).
So, it makes little sense to run savefile creation if it's expected that the user will launch the template just a moment afterwards.
Perhaps a better solution would be to move this all into firstboot:
- qvm-run -a system-config-date -uroot
- savefile creation
?
|
Comment by joanna on 30 Mar 2011 08:24 UTC So, it makes little sense to run savefile creation if it's expected that the user will launch the template just a moment afterwards. Perhaps a better solution would be to move this all into firstboot:
? |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
marmarek
Mar 8, 2015
Member
Comment by joanna on 30 Mar 2011 13:55 UTC
I'm assigning this to Tomek, as this would be part of the installer's firstboot.
|
Comment by joanna on 30 Mar 2011 13:55 UTC |
marmarek
added
C: installer
and removed
C: templates
labels
Mar 8, 2015
marmarek
unassigned
rootkovska
Mar 8, 2015
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
|
Modified by joanna on 1 Apr 2011 10:17 UTC |
marmarek
changed the title from
Run qubes-setup-dvm in template %post
to
Run qubes-setup-dvm in firstboot?
Mar 8, 2015
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
|
Modified by smoku on 4 Apr 2011 13:56 UTC |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
marmarek
Mar 8, 2015
Member
Comment by smoku on 4 Apr 2011 19:39 UTC
I think we should just copy /etc/localtime from dom0 to template. It's pointless to ask user the same question two times during firstboot.
|
Comment by smoku on 4 Apr 2011 19:39 UTC |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
marmarek
Mar 8, 2015
Member
Comment by smoku on 4 Apr 2011 20:22 UTC
Implemented in http://git.qubes-os.org/?p=smoku/installer;a=commit;h=c8463fe4016f6fefe00677c787708e6e82acbfb7 and http://git.qubes-os.org/?p=smoku/core;a=commit;h=8ddb8593cbaf63f3bc596fee7640a6dab0c0a17a
|
Comment by smoku on 4 Apr 2011 20:22 UTC |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
|
Modified by joanna on 5 Apr 2011 10:31 UTC |
marmarek
assigned
rootkovska
Mar 8, 2015
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
|
Modified by joanna on 5 Apr 2011 10:31 UTC |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
|
Modified by joanna on 5 Apr 2011 12:51 UTC |
marmarek
changed the title from
Run qubes-setup-dvm in firstboot?
to
Set timezone in template (firstboot)
Mar 8, 2015
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
marmarek
Mar 8, 2015
Member
Comment by joanna on 5 Apr 2011 21:18 UTC
Done:
We copy /etc/local from Dom0 to template root.img mounted via loop. This is done in firstboot qubes_setup script. We don't need to start template for this, which is nice.
|
Comment by joanna on 5 Apr 2011 21:18 UTC We copy /etc/local from Dom0 to template root.img mounted via loop. This is done in firstboot qubes_setup script. We don't need to start template for this, which is nice. |
marmarek commentedMar 8, 2015
Reported by joanna on 28 Mar 2011 12:27 UTC
...and remove it from /etc/init.d scripts.
Migrated-From: https://wiki.qubes-os.org/ticket/150