On 06/14/2016 02:01 PM, Chris Laprise wrote:


On 06/14/2016 06:20 AM, Ivan wrote:
Hi,

On 06/14/2016 12:34 PM, Jasper Weiss wrote:
There's some new documentation added to the website on reinstalling
templates here <https://www.qubes-os.org/doc/reinstall-template/>


I guess many qubes users have a shared template they use for both
sys-* vms and app vms (usually fedora23), so maybe there should be
some notes about reinstalling the template sys-* vms (or other vms
needed for network access) are based on. For instance:

- obviously there will be no network once you shutdown the sys-* vms,
so how to download the template rpm and perform an offline installation ?

- Or, do vms really need to be stopped when updating the template's
root.img ? IIRC in linux one can open() a file, delete it, create
another file with the same name, but continue to read/write from the
deleted file until a close(). A subsequent open() would then open the
new file/inode. Maybe that'd work too with XEN or are there some
caveats ?

Comments in previous posts also suggest using the --downloadonly
option (currently only in fedora templates) in order to be able to use
--action=reinstall in dom0. Would that allow skipping the "dummy
template" steps ?. If yes, maybe make a note about that too ?

I have a patch for that in progress. Currently it checks for
--action=reinstall and includes the template package in that case. Your
guess is half right about file deletion: The setup scripts cause
root.img to be updated seamlessly even when dependent vms are running,
but they leave private.img untouched--that needs to change.

Great.

May I suggest having an option to keep private.img untouched then ? I'm thinking of some cases where I'll want to only update the root image, and keep custom configurations I have in private.img (default options for various apps like firefox, gnome-terminal, ...) Alternatively, a warning message warning the user that private.img will be replaced would be enough to hint people to do a backup before replacing the template.


https://github.com/QubesOS/qubes-core-admin-linux/compare/master...ttasket:patch-1


Chris


cheers
Ivan



--
You received this message because you are subscribed to the Google Groups 
"qubes-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/qubes-devel/81d3fca8-9042-e429-47fe-af60375c1739%40c3i.bg.
For more options, visit https://groups.google.com/d/optout.

Reply via email to