Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is there a way to specify UUID and LABEL? #261

Open
goldyfruit opened this issue Jan 23, 2023 · 1 comment
Open

Is there a way to specify UUID and LABEL? #261

goldyfruit opened this issue Jan 23, 2023 · 1 comment

Comments

@goldyfruit
Copy link

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 👍

@alteriks
Copy link

@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 = "/"
  }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants