From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mark H Weaver Subject: bug#27069: LUKS partition ruined by guix init Date: Mon, 29 May 2017 19:12:14 -0400 Message-ID: <87tw43z29d.fsf@netris.org> References: <8737bsx51d.fsf@fastmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:48154) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dFTrR-0005E4-C7 for bug-guix@gnu.org; Mon, 29 May 2017 19:14:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dFTrO-0007R1-7Q for bug-guix@gnu.org; Mon, 29 May 2017 19:14:05 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:41235) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dFTrO-0007Qr-43 for bug-guix@gnu.org; Mon, 29 May 2017 19:14:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dFTrN-0005pn-PT for bug-guix@gnu.org; Mon, 29 May 2017 19:14:01 -0400 Sender: "Debbugs-submit" Resent-Message-ID: In-Reply-To: <8737bsx51d.fsf@fastmail.com> (Marius Bakke's message of "Thu, 25 May 2017 18:41:34 +0200") List-Id: Bug reports for GNU Guix 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: Marius Bakke Cc: 27069@debbugs.gnu.org Marius Bakke writes: > someone@selfhosted.xyz writes: > >> Hi, >> >> I have several times over tried to install to a LUKS-partition with >> btrfs and failed but last time I almost had success. guix init command >> complained that the bios_grub flag wasn't set after many hours of >> compiling packages and therefore didn't install grub at first. I >> checked the partition with "cryptsetup luksUUID /dev/sda1" before >> rerunning guix init and it gives me the luksUUID so the partition >> seemed intact up to that point. However, after setting the bios_grub >> flag and rerunning guix init, the installation is successful but >> afterwards the cryptsetup luksUUID command says that the partition is >> not a valid luks device, so it seems like the GRUB installation part >> is what ruins the partition. > > What is your partition layout? The "bios_grub" partition must be a > separate (typically tiny) partition with no other data on it. FWIW, my current development system is GuixSD running with a LUKS-encrypted Btrfs root partition with GUID partition table. I don't remember encountering any difficulties during the install. Mark