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

How to ensure using the same UUID and PARTUUID on each build? #10359

Open
yockgen opened this issue Sep 5, 2024 · 1 comment
Open

How to ensure using the same UUID and PARTUUID on each build? #10359

yockgen opened this issue Sep 5, 2024 · 1 comment
Labels
question Further information is requested

Comments

@yockgen
Copy link

yockgen commented Sep 5, 2024

Ask your question or provide your feedback

My Mariner build is intended to have multiple partitions. How can I ensure that, on each build, those partitions use the same PARTUUID and UUID instead of being randomly assigned? I would to use the PARTUUID as identifier for some auotmation

  "Partitions": [
                {
                    "Name": "boot",
                    "ID": "boot",
                    "Flags": [
                        "boot"
                    ],
                    "Start": 1,
                    "End": 400,
                    "FsType": "fat32"
                },
                {
                    "Name": "rootfs",
                    "ID": "rootfs",
                    "Start": 400,
                    "End": 1000,
                    "FsType": "ext4"
                },
                {
                    "Name": "data",
                    "ID": "data",
                    "Start": 1000,
                    "End": 0,
                    "FsType": "ext4"
                }

Thanks!

@yockgen yockgen added the question Further information is requested label Sep 5, 2024
@dmcilvaney
Copy link
Contributor

I don't believe we support that in the standard build tools, but we have a tool that can customize images rather than build them from scratch, which can modify partitions (https://github.com/microsoft/azurelinux/blob/3.0/toolkit/tools/imagecustomizer/docs/configuration.md#resetpartitionsuuidstype-string) @cwize1

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

No branches or pull requests

2 participants