unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
* bug#60104: Hiccups installing GNU Guix 1.4.0rc2 system
@ 2022-12-15 21:24 J. Sims via Bug reports for GNU Guix
  2022-12-15 22:51 ` Ludovic Courtès
  0 siblings, 1 reply; 4+ messages in thread
From: J. Sims via Bug reports for GNU Guix @ 2022-12-15 21:24 UTC (permalink / raw)
  To: 60104

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

Hey there,

I managed to successfully install the GNU Guix 1.4.0rc2 system iso on an HP Dev One laptop (with help from USB stuff for networking). Everything mostly went as expected, except after the installation I got a screen saying crypttab couldn't find a specific partition. I assume this was something left over from a previous OS installation since wiping the partitions with cfdisk and then installing worked fine. Note that while my initial install attempts did use encryption, the final (successful) one did not; I don't think this has any effect one way or the other on the viability of installation since I ran into the same issue both with and without an encrypted Guix installation before wiping the partitions.

Hopefully it should be simple enough to just completely rewrite the partition table during installation and sidestep this issue.

Thanks,
Juli

[-- Attachment #2: Type: text/html, Size: 970 bytes --]

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

* bug#60104: Hiccups installing GNU Guix 1.4.0rc2 system
  2022-12-15 21:24 bug#60104: Hiccups installing GNU Guix 1.4.0rc2 system J. Sims via Bug reports for GNU Guix
@ 2022-12-15 22:51 ` Ludovic Courtès
  2022-12-16 19:15   ` J. Sims via Bug reports for GNU Guix
  0 siblings, 1 reply; 4+ messages in thread
From: Ludovic Courtès @ 2022-12-15 22:51 UTC (permalink / raw)
  To: J. Sims; +Cc: 60104

Hi,

"J. Sims" <jtsims@protonmail.com> skribis:

> I managed to successfully install the GNU Guix 1.4.0rc2 system iso on
> an HP Dev One laptop (with help from USB stuff for
> networking). Everything mostly went as expected, except after the
> installation I got a screen saying crypttab couldn't find a specific
> partition.

What’s crypttab?  At which point exactly does this screen appears:
before GRUB, after GRUB, once the Linux kernel has booted?

> I assume this was something left over from a previous OS installation
> since wiping the partitions with cfdisk and then installing worked
> fine. Note that while my initial install attempts did use encryption,
> the final (successful) one did not; I don't think this has any effect
> one way or the other on the viability of installation since I ran into
> the same issue both with and without an encrypted Guix installation
> before wiping the partitions.

OK.

> Hopefully it should be simple enough to just completely rewrite the partition table during installation and sidestep this issue.

Normally the installer will rewrite the partition table, unless (I
think) you choose to keep things unchanged.

Thanks,
Ludo’.




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

* bug#60104: Hiccups installing GNU Guix 1.4.0rc2 system
  2022-12-15 22:51 ` Ludovic Courtès
@ 2022-12-16 19:15   ` J. Sims via Bug reports for GNU Guix
  2022-12-17 12:01     ` Ludovic Courtès
  0 siblings, 1 reply; 4+ messages in thread
From: J. Sims via Bug reports for GNU Guix @ 2022-12-16 19:15 UTC (permalink / raw)
  To: Ludovic Courtès, 60104@debbugs.gnu.org

Hey,

Ludovic Courtès <ludo@gnu.org> wrote:

> What’s crypttab? At which point exactly does this screen appears:
> before GRUB, after GRUB, once the Linux kernel has booted?

crypttab is some part of the LUKS encryption stuff. This appears to be a manpage for it: https://www.man7.org/linux/man-pages/man5/crypttab.5.html

The screen appears before GRUB.

I forgot to mention that the UUID of the partition it was looking for did not exist on-disk after completing the Guix installation process. Given the above manpage, I assume this means the crypttab file used in the encryption process wasn't fully replaced. Perhaps the file in question is appended to with Guix data rather than overwritten? Or perhaps it's not used at all for the way Guix does encryption and just gets left behind?

> Normally the installer will rewrite the partition table, unless (I
> think) you choose to keep things unchanged.

Interesting... I did the full-disk guided installation method, so that should have done the trick, then.

This reminds me, I noticed that it didn't rewrite specifically the boot partition. When it showed the partition scheme at the end of the partitioning stage, it only showed it changing nvme0np2 (and nvme0np3 with encryption disabled - it only created swap with encryption disabled), while the boot was nvme0np1. After wiping the table, it showed all three.

Hopefully this helps.

Thanks,
Juli




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

* bug#60104: Hiccups installing GNU Guix 1.4.0rc2 system
  2022-12-16 19:15   ` J. Sims via Bug reports for GNU Guix
@ 2022-12-17 12:01     ` Ludovic Courtès
  0 siblings, 0 replies; 4+ messages in thread
From: Ludovic Courtès @ 2022-12-17 12:01 UTC (permalink / raw)
  To: J. Sims; +Cc: 60104@debbugs.gnu.org

Hi,

"J. Sims" <jtsims@protonmail.com> skribis:

> Ludovic Courtès <ludo@gnu.org> wrote:
>
>> What’s crypttab? At which point exactly does this screen appears:
>> before GRUB, after GRUB, once the Linux kernel has booted?
>
> crypttab is some part of the LUKS encryption stuff. This appears to be a manpage for it: https://www.man7.org/linux/man-pages/man5/crypttab.5.html

Oh OK; Guix system doesn’t use that file.

> The screen appears before GRUB.
>
> I forgot to mention that the UUID of the partition it was looking for did not exist on-disk after completing the Guix installation process. Given the above manpage, I assume this means the crypttab file used in the encryption process wasn't fully replaced. Perhaps the file in question is appended to with Guix data rather than overwritten? Or perhaps it's not used at all for the way Guix does encryption and just gets left behind?

‘guix system init’ and related commands error out if the config
specifies a file system UUID, a LUKS UUID, etc. that do not correspond
to an existing thing.  So it’s unlikely that you managed to install Guix
System with a wrong UUID; likewise, the graphical installer is unlikely
to generate a config file with an incorrect UUID.

So the problem may be elsewhere.

>> Normally the installer will rewrite the partition table, unless (I
>> think) you choose to keep things unchanged.
>
> Interesting... I did the full-disk guided installation method, so that should have done the trick, then.
>
> This reminds me, I noticed that it didn't rewrite specifically the boot partition. When it showed the partition scheme at the end of the partitioning stage, it only showed it changing nvme0np2 (and nvme0np3 with encryption disabled - it only created swap with encryption disabled), while the boot was nvme0np1. After wiping the table, it showed all three.

OK.

I’m afraid I’m not sure what happened.  :-/

If you grab more details from your investigations, please share them.

Thanks for reporting the issue!

Ludo’.




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

end of thread, other threads:[~2022-12-17 17:35 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-12-15 21:24 bug#60104: Hiccups installing GNU Guix 1.4.0rc2 system J. Sims via Bug reports for GNU Guix
2022-12-15 22:51 ` Ludovic Courtès
2022-12-16 19:15   ` J. Sims via Bug reports for GNU Guix
2022-12-17 12:01     ` Ludovic Courtès

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).