Is there a way to specify UUID and LABEL?
goldyfruit opened this issue · comments
I saw #251 and I was wondering if there is a way to set LABEL
and a UUID
on the created partition.
For example, if I build two images based on the Raspberry Pi OS, my two builds will have the PARTUUID
, UUID
and LABEL
which could lead to some unexpected behaviours.
Thanks for your help 👍
@goldyfruit you could use LABEL with following hcl code:
image_partitions {
name = "boot"
type = "c"
start_sector = "2048"
filesystem = "fat"
filesystem_make_options = ["-n", "BOOT"]
size = "256M"
mountpoint = "/boot"
}
image_partitions {
name = "root"
type = "83"
start_sector = "526336"
filesystem = "ext4"
filesystem_make_options = ["-L", "ROOT"]
size = "0" # means up to image size??
mountpoint = "/"
}