From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mark H Weaver Subject: bug#36855: guix system switch-generation doesn't Date: Tue, 27 Aug 2019 20:34:10 -0400 Message-ID: <87tva2m8ki.fsf@netris.org> References: <7BE8190F-A8E9-454E-8F37-FBFE42FBDE10@vllmrt.net> <87zhkkojfv.fsf@dustycloud.org> <877e7on3zd.fsf@sdf.lonestar.org> <87h86ry5j5.fsf@gmail.com> <874l241bq6.fsf__35802.4716888153$1566814098$gmane$org@gnu.org> <87woezoj3p.fsf__10757.9769611888$1566845612$gmane$org@netris.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Sender: "Debbugs-submit" Resent-Message-ID: In-Reply-To: <87woezoj3p.fsf__10757.9769611888$1566845612$gmane$org@netris.org> (Mark H. Weaver's message of "Mon, 26 Aug 2019 14:51:27 -0400") List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: "bug-Guix" To: Ludovic =?UTF-8?Q?Court=C3=A8s?= Cc: guix-devel@gnu.org, 36855@debbugs.gnu.org List-Id: guix-devel.gnu.org Hello again, Mark H Weaver writes: > Ludovic Court=C3=A8s writes: > >> Jakob, now that we generate scripts for the effectful bits of system >> reconfiguration (one of these bits being service upgrades), couldn=E2=80= =99t we >> take it one step further and store those scripts in the =E2=80=9Csystem= =E2=80=9D >> derivation so we can run them eventually, notably upon >> =E2=80=98switch-generation=E2=80=99? > > As a bonus, this approach might solve another issue I've observed: on my > Guix system, where I build everything locally, several derivations are > built *during* activation. Based on the terminal output, I get the > impression that the system is compiling things while the system in an > intermediate state, when some of the activation steps have been done, > but not all of them. > > As I recall, the derivations built during activation are limited to > compiled modules for Guile, but it still sometimes takes on the order of > a minute or two on my laptop to complete the "activating system" steps. > This seems suboptimal. > > The next time I update my system, I'll try to remember to keep a > transcript of this, so that I can be more specific. Here's a transcript: --8<---------------cut here---------------start------------->8--- activating system... building /gnu/store/fbp6bbxw9cf617fmk57sddrz7zfsfw5p-module-import-compiled= .drv... building /gnu/store/wfi6hnr9ggal0s1d32xx5wbl5k5wqlvx-switch-to-system.scm.d= rv... making '/gnu/store/mjzk53ia3bajn08lscpyzz5apcw3r70g-system' the current sys= tem... setting up setuid programs in '/run/setuid-programs'... populating /etc from /gnu/store/l7r1has973n26hfqrs6vxbi94xzgh360-etc... building /gnu/store/h2fqcxv3xx14lkdhyphm3lawkayw7sdl-module-import-compiled= .drv... building /gnu/store/dar9smjyxmri6v6cchnmp5mpyiimyx64-install-bootloader.scm= .drv... guix system: bootloader successfully installed on '/dev/sda' building /gnu/store/vkk3h5p799lfpmf6msdhrzlq0wqvk3zq-module-import-compiled= .drv... building /gnu/store/hn8sr8p13gg2mf379xawscabckp03fkb-upgrade-shepherd-servi= ces.scm.drv... shepherd: Evaluating user expression (let* ((services (map primitive-load (= ?))) # ?) ?). guix system: warning: only 3.9% of free space available on /gnu/store hint: Consider deleting old profile generations and collecting garbage, alo= ng these lines: guix gc --delete-generations=3D1m --8<---------------cut here---------------end--------------->8--- Mark