Re: Seeking guidance regarding system roll-back and switch-generation

2016-07-25 Thread Ludovic Courtès
Hi Chris, Chris Marusich skribis: >> The output of ‘guix system build’ contains the ‘parameters’ file, which >> is enough to generate grub.cfg (see ‘previous-grub-entries’ in (guix >> scripts system)). > > What if someone specifies extra "menu-entries" in their operating system > configuration f

Re: Seeking guidance regarding system roll-back and switch-generation

2016-07-24 Thread Chris Marusich
Hi Ludo, Thank you for the concrete suggestions. I've looked into using the parameters file. It contains almost all the info I need, but I think some is still missing. > The output of ‘guix system build’ contains the ‘parameters’ file, which > is enough to generate grub.cfg (see ‘previous-grub-

Re: Seeking guidance regarding system roll-back and switch-generation

2016-07-22 Thread Ludovic Courtès
Hi! Chris Marusich skribis: > Thank you very much for taking the time to respond! Now I have a better > idea of how to proceed. Sorry for the delay! That’s what you get for asking difficult questions. ;-) > l...@gnu.org (Ludovic Courtès) writes: > >> Chris Marusich skribis: >> >>> I've not

Re: Seeking guidance regarding system roll-back and switch-generation

2016-07-22 Thread Chris Marusich
Chris Marusich writes: > Specifically, to complete the first milestone (flip symlinks and > regenerate grub.cfg), I need to determine the paths to certain things > like the kernel and the initrd for an arbitrary system generation. So, > I'm not sure if I should simply parse that information from

Re: Seeking guidance regarding system roll-back and switch-generation

2016-07-19 Thread Chris Marusich
Hi Ludo, Thank you very much for taking the time to respond! Now I have a better idea of how to proceed. l...@gnu.org (Ludovic Courtès) writes: > Chris Marusich skribis: > >> I've noticed that the GuixSD mechanism is different from the NixOS >> mechanism. In particular, NixOS uses an "install

Re: Seeking guidance regarding system roll-back and switch-generation

2016-07-18 Thread Ludovic Courtès
Hi Chris, Chris Marusich skribis: > I've noticed that the GuixSD mechanism is different from the NixOS > mechanism. In particular, NixOS uses an "install-grub" script (which is > specific to each system generation) to install grub, but GuixSD does > not. Is this difference intentional? Lookin

Re: Seeking guidance regarding system roll-back and switch-generation

2016-07-18 Thread Ludovic Courtès
Hello! Tobias Geerinckx-Rice skribis: > On 2016-07-17 11:22, Chris Marusich wrote: >> However, it may not be necessary to generate a >> "switch-to-configuration" >> script at all. Instead, what if we just stored the operating system >> configuration file in a well known location within each sys

Re: Seeking guidance regarding system roll-back and switch-generation

2016-07-17 Thread Tobias Geerinckx-Rice
Ahoy Chris, Just one aside, for context: (And to softly nudge people into the right™ direction of activation scripts, of course. ;-) On 2016-07-17 11:22, Chris Marusich wrote: However, it may not be necessary to generate a "switch-to-configuration" script at all. Instead, what if we just sto

Seeking guidance regarding system roll-back and switch-generation

2016-07-17 Thread Chris Marusich
Hi Ludo, I have questions about the design of the mechanism by which GuixSD switches from one operating system configuration to another. I'm emailing you directly because you have the most commits in this area of the project, so I think you might be in the best position to answer. I've noticed t