New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set timezone in template (firstboot) #150

Closed
marmarek opened this Issue Mar 8, 2015 · 10 comments

Comments

Projects
None yet
2 participants
@marmarek
Member

marmarek commented Mar 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

@marmarek

This comment has been minimized.

Show comment
Hide comment
@marmarek

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:

  1. qvm-run -a system-config-date -uroot
  2. savefile creation
  3. ?

Member

marmarek commented Mar 8, 2015

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:

  1. qvm-run -a system-config-date -uroot
  2. savefile creation
  3. ?

@marmarek

This comment has been minimized.

Show comment
Hide comment
@marmarek

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.

Member

marmarek commented Mar 8, 2015

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.

@marmarek

This comment has been minimized.

Show comment
Hide comment
@marmarek

marmarek Mar 8, 2015

Member

Modified by joanna on 1 Apr 2011 10:17 UTC

Member

marmarek commented Mar 8, 2015

Modified by joanna on 1 Apr 2011 10:17 UTC

@marmarek marmarek changed the title from Run qubes-setup-dvm in template %post to Run qubes-setup-dvm in firstboot? Mar 8, 2015

@marmarek

This comment has been minimized.

Show comment
Hide comment
@marmarek

marmarek Mar 8, 2015

Member

Modified by smoku on 4 Apr 2011 13:56 UTC

Member

marmarek commented Mar 8, 2015

Modified by smoku on 4 Apr 2011 13:56 UTC

@marmarek

This comment has been minimized.

Show comment
Hide comment
@marmarek

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.

Member

marmarek commented Mar 8, 2015

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.

@marmarek

This comment has been minimized.

Show comment
Hide comment
@marmarek

marmarek Mar 8, 2015

Member

Modified by joanna on 5 Apr 2011 10:31 UTC

Member

marmarek commented Mar 8, 2015

Modified by joanna on 5 Apr 2011 10:31 UTC

@marmarek

This comment has been minimized.

Show comment
Hide comment
@marmarek

marmarek Mar 8, 2015

Member

Modified by joanna on 5 Apr 2011 10:31 UTC

Member

marmarek commented Mar 8, 2015

Modified by joanna on 5 Apr 2011 10:31 UTC

@marmarek

This comment has been minimized.

Show comment
Hide comment
@marmarek

marmarek Mar 8, 2015

Member

Modified by joanna on 5 Apr 2011 12:51 UTC

Member

marmarek commented Mar 8, 2015

Modified by joanna on 5 Apr 2011 12:51 UTC

@marmarek marmarek changed the title from Run qubes-setup-dvm in firstboot? to Set timezone in template (firstboot) Mar 8, 2015

@marmarek

This comment has been minimized.

Show comment
Hide comment
@marmarek

marmarek Mar 8, 2015

Member

Comment by joanna on 5 Apr 2011 21:18 UTC
Done:

http://git.qubes-os.org/?p=joanna/installer.git;a=commitdiff;h=61d25f0872033111623bff2722f308e4131e90f8

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.

Member

marmarek commented Mar 8, 2015

Comment by joanna on 5 Apr 2011 21:18 UTC
Done:

http://git.qubes-os.org/?p=joanna/installer.git;a=commitdiff;h=61d25f0872033111623bff2722f308e4131e90f8

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 marmarek closed this Mar 8, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment