From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?UTF-8?B?QmrDtnJuIEjDtmZsaW5n?= Subject: Re: Prevent guix gc from removing *grub.cfg under /gnu/store/ Date: Wed, 20 Feb 2019 00:06:30 +0100 Message-ID: <20190220000630.20ba9be4@alma-ubu> References: Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; boundary="Sig_/uWttOe7Jz2Sed=.LBdyMJxW"; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([209.51.188.92]:52832) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gwETH-0002Fl-FZ for help-guix@gnu.org; Tue, 19 Feb 2019 18:06:40 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gwETG-00026y-EK for help-guix@gnu.org; Tue, 19 Feb 2019 18:06:39 -0500 Received: from m4s11.vlinux.de ([83.151.27.109]:60740 helo=bjoernhoefling.de) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gwETG-00026U-7E for help-guix@gnu.org; Tue, 19 Feb 2019 18:06:38 -0500 In-Reply-To: List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+gcggh-help-guix=m.gmane.org@gnu.org Sender: "Help-Guix" To: Raghav Gururajan Cc: help-guix@gnu.org --Sig_/uWttOe7Jz2Sed=.LBdyMJxW Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Tue, 19 Feb 2019 18:15:34 +0000 "Raghav Gururajan" wrote: > Hi Guix! >=20 > Since my BIOS comes with in-built grub payload, I did not want to > install bootloader on disk (but do want grub.cfg file > under /gnu/store/), so I passed --no-bootloader parameter during guix > system init. The guix system got successfully instantiated and there > was *grub.cfg file under /gnu/store/. The file stayed even after > multiple reboot, guix pull and guix package -u. But when I did guix > gc, it removed the *grub.cfg file under /gnu/store/. How can I > prevent this from happening? Since I am a novice user, please provide > me step-wise explanation. Hi, I'm not 100% sure that what you are doing is correct in the Guix-sense. Anyway, what's important is that you never delete from the /gnu/store manually, always use guix gc, as you did. To prevent things in the store from garbage collection, you can use the additional build parameter "--root=3Dfile", see here: https://www.gnu.org/software/guix/manual/en/guix.html#Additional-Build-Opti= ons i.e. guix build ... --root=3D/home/me/my-gc-root That would prevent the gc to remove that file, as long as that created link points to the store entry. Hope this helps, Bj=C3=B6rn --Sig_/uWttOe7Jz2Sed=.LBdyMJxW Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iF0EARECAB0WIQQiGUP0np8nb5SZM4K/KGy2WT5f/QUCXGyL9gAKCRC/KGy2WT5f /dnNAJ4y0jcomGKTC1OiGOehC1sIcIFVMwCdEcxYLJ8V0VwGvE7vqEaafV+Q25o= =mmnl -----END PGP SIGNATURE----- --Sig_/uWttOe7Jz2Sed=.LBdyMJxW--