unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
* disk-image and partitions
@ 2019-04-14  9:16 rendaw
  2019-04-16 20:40 ` rendaw
  2019-05-05 18:48 ` Chris Marusich
  0 siblings, 2 replies; 6+ messages in thread
From: rendaw @ 2019-04-14  9:16 UTC (permalink / raw)
  To: help-guix

I think I'd like to use disk-image but a number of things were unclear
from the documentation:

1. What and how many partitions are created?

Reading the -t parameter I assume it's an image with just 1 root
partition. If I need UEFI will an efi partition be created?

2. How can I refer to the created partitions in the config?

Digging through the source it seems that in some modes of operation the
root partition is automatically created and there's a local uuid value
that's generated and shared between the partition + filesystem config,
but I didn't see that exposed anywhere.

I have various additional storage attached so I can't guarantee device
order (sda/sdb/sdc).

Thanks!

^ permalink raw reply	[flat|nested] 6+ messages in thread
* disk-image and partitions
@ 2019-04-15 11:22 rendaw
  0 siblings, 0 replies; 6+ messages in thread
From: rendaw @ 2019-04-15 11:22 UTC (permalink / raw)
  To: help-guix

So it looks like the root uuid might be generated, but from what I read
vfat uuids are translated from a partition serial number that isn't
manipulated in the guix source so getting uuids beforehand might be
impossible.

Both the root and efi partitions get a label, so I might be able to use
those to identify the partitions.  They're both hardcoded, but the
former is unstable (was changed earlier this month) and the definition
that exposes it (root-label) isn't exported...

I think my best choice here is to forcibly import "root-label" and
duplicate the hardcoded "GNU-ESP" in my config, but if the latter
changes I'll get an error at runtime rather than build time.

How would disk-image work in the first place?  It doesn't look like the
generated GNU-ESP or / are added to fstab automatically (checking the
output image).

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

end of thread, other threads:[~2019-05-07  2:20 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-04-14  9:16 disk-image and partitions rendaw
2019-04-16 20:40 ` rendaw
2019-04-21 13:38   ` rendaw
2019-05-05 18:48 ` Chris Marusich
2019-05-07  2:10   ` rendaw
  -- strict thread matches above, loose matches on Subject: below --
2019-04-15 11:22 rendaw

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