From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marius Bakke Subject: bug#27069: LUKS partition ruined by guix init Date: Tue, 30 May 2017 17:22:35 +0200 Message-ID: <87o9uae5dw.fsf@fastmail.com> References: <8737bsx51d.fsf@fastmail.com> <87tw43z29d.fsf@netris.org> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:41467) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dFizB-0003Jb-U9 for bug-guix@gnu.org; Tue, 30 May 2017 11:23:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dFiz8-0002R3-Pf for bug-guix@gnu.org; Tue, 30 May 2017 11:23:05 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:42771) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dFiz8-0002Qr-MH for bug-guix@gnu.org; Tue, 30 May 2017 11:23:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dFiz8-0000dH-Gc for bug-guix@gnu.org; Tue, 30 May 2017 11:23:02 -0400 Sender: "Debbugs-submit" Resent-To: bug-guix@gnu.org Resent-Message-ID: In-Reply-To: <87tw43z29d.fsf@netris.org> 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: Mark H Weaver Cc: 27069-done@debbugs.gnu.org --=-=-= Content-Type: text/plain Mark H Weaver writes: > 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. Interesting. Did you reserve some sectors before the first partition? Or do you have the root partition marked as "bios_grub", which is what seemingly wiped the LUKS headers here? --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCgAdFiEEu7At3yzq9qgNHeZDoqBt8qM6VPoFAlktjjsACgkQoqBt8qM6 VPpn/wf+OVgxGO6osFu+7C5WgeJZjw29V9qG7wibG7jHKAp//tHs5Tgfj1DA1ybW 4hngvPx44Hla/x60lktHUJb/7ityimFRA+DG0FXdIha/yAae+posQaffzdZVussc 1P2/l401oXOQZY9jnyqdMfgWtXdaqvIA9E5YgKi02u2jQK0y3XnNXqAgp+gJC/W+ mh0rNh/zmSzrModyx1SM9p7DFVxe6eBgFhJbfIMNRCkYmNzPslBY9asgqAllpVAS ZiSuB0R9qkTI9Mq7druMZNsvT0J9dqF2BitFF34tzCvTbe8xEKkpxxJqS6MOnaK8 LGWOWdV0Gc/9hSbJbCcbGYw3Fu4eGw== =XRj1 -----END PGP SIGNATURE----- --=-=-=--