unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
* bug#27069: LUKS partition ruined by guix init
@ 2017-05-25 15:53 someone
  2017-05-25 16:41 ` Marius Bakke
  0 siblings, 1 reply; 4+ messages in thread
From: someone @ 2017-05-25 15:53 UTC (permalink / raw)
  To: 27069

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.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#27069: LUKS partition ruined by guix init
  2017-05-25 15:53 bug#27069: LUKS partition ruined by guix init someone
@ 2017-05-25 16:41 ` Marius Bakke
  2017-05-29 23:12   ` Mark H Weaver
  0 siblings, 1 reply; 4+ messages in thread
From: Marius Bakke @ 2017-05-25 16:41 UTC (permalink / raw)
  To: someone, 27069

[-- Attachment #1: Type: text/plain, Size: 896 bytes --]

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.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 487 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#27069: LUKS partition ruined by guix init
  2017-05-25 16:41 ` Marius Bakke
@ 2017-05-29 23:12   ` Mark H Weaver
  2017-05-30 15:22     ` Marius Bakke
  0 siblings, 1 reply; 4+ messages in thread
From: Mark H Weaver @ 2017-05-29 23:12 UTC (permalink / raw)
  To: Marius Bakke; +Cc: 27069

Marius Bakke <mbakke@fastmail.com> 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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#27069: LUKS partition ruined by guix init
  2017-05-29 23:12   ` Mark H Weaver
@ 2017-05-30 15:22     ` Marius Bakke
  0 siblings, 0 replies; 4+ messages in thread
From: Marius Bakke @ 2017-05-30 15:22 UTC (permalink / raw)
  To: Mark H Weaver; +Cc: 27069-done

[-- Attachment #1: Type: text/plain, Size: 1402 bytes --]

Mark H Weaver <mhw@netris.org> writes:

> Marius Bakke <mbakke@fastmail.com> 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?

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 487 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2017-05-30 15:23 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-05-25 15:53 bug#27069: LUKS partition ruined by guix init someone
2017-05-25 16:41 ` Marius Bakke
2017-05-29 23:12   ` Mark H Weaver
2017-05-30 15:22     ` Marius Bakke

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).