From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alex Sassmannshausen Subject: Re: Using the Hetzner Cloud Date: Fri, 21 Feb 2020 19:20:35 +0100 Message-ID: <87zhdbls3w.fsf@gmail.com> References: <57dc667e-5a69-45f7-e076-914d4691020c@web.de> <31fbafeb5a408e361b65861dda17bd0c65cd5118.camel@wine-logistix.de> <87mu9hnniw.fsf@gmail.com> <87blpw85uf.fsf@roquette.mug.biscuolo.net> <87pnean0wa.fsf@gmail.com> <87r1yn6csq.fsf@roquette.mug.biscuolo.net> Reply-To: alex.sassmannshausen@gmail.com Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:48431) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j5Cuo-00012p-3F for guix-devel@gnu.org; Fri, 21 Feb 2020 13:20:43 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1j5Cul-0002ou-Sk for guix-devel@gnu.org; Fri, 21 Feb 2020 13:20:41 -0500 Received: from mail-wr1-x430.google.com ([2a00:1450:4864:20::430]:39488) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1j5Cul-0002lg-Ms for guix-devel@gnu.org; Fri, 21 Feb 2020 13:20:39 -0500 Received: by mail-wr1-x430.google.com with SMTP id y11so3080879wrt.6 for ; Fri, 21 Feb 2020 10:20:39 -0800 (PST) In-reply-to: <87r1yn6csq.fsf@roquette.mug.biscuolo.net> List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane-mx.org@gnu.org Sender: "Guix-devel" To: Giovanni Biscuolo Cc: guix-devel@gnu.org Heya, Giovanni Biscuolo writes: > Hello Alex, > > Alex Sassmannshausen writes: > >> Giovanni Biscuolo writes: > > [...] > >>> could you please share that "guix-infect" script? >> >> Sure, please see attached. This one here is a bash script that works >> with a system config that is specified as part of a here-doc in the bash >> script. > > Cool, thanks! > > [...] > >> =E2=80=94 primarily to encourage myself to keep automating further by >> integrating this in Guix deploy. Where does all the time go!!! > > I'd like to help but still need to enhance my guile-foo > >> Happy to help if you run into problems or have questions. > > maybe when guix will be in Debian [1] your script could be simpified in > the first steps... but I hope we'll have a proper guix-deploy way for > many many providers before :-) > > just one more question: > > [...] > >> #!/bin/bash >> >> e2label /dev/sda1 root > > [...] > >> guix system build /etc/bootstrap-config.scm >> guix system reconfigure /etc/bootstrap-config.scm >> mv /etc /old-etc >> mkdir /etc >> cp -r /old-etc/{passwd,group,shadow,gshadow,mtab,guix,bootstrap-config.s= cm} /etc/ >> guix system reconfigure /etc/bootstrap-config.scm > > why two "guix system reconfigure"? Tbh, not 100% sure. This script is heavily copypasta. It looks like there is an element of transferring debian files away over the course of the 2, so perhaps it's to fully transition. But, tbh, not really investigated it, as the second reconfigure is dirt cheap, and the script just works (tm). Feel free to experiment! If you find it's unnecessary, I'd be happy to hear about it! Cheers, Alex