Skip to content

esp: TempMount ESP if not already mounted#1126

Open
Johan-Liebert1 wants to merge 1 commit into
coreos:mainfrom
Johan-Liebert1:esp-tmpmnt
Open

esp: TempMount ESP if not already mounted#1126
Johan-Liebert1 wants to merge 1 commit into
coreos:mainfrom
Johan-Liebert1:esp-tmpmnt

Conversation

@Johan-Liebert1

Copy link
Copy Markdown
Member

In the composefs Grub case we have /sysroot/boot and config related to Grub is stored in the directory. We were masking /sysroot/boot with an ESP mount which caused bootupd to write incorrect UUID (the ESP's) in bootuuid.cfg file rendering the system unbootable.

Fix this by mounting the ESP at a temp location if we don't find it already mounted at predetermined locations

In the composefs Grub case we have `/sysroot/boot` and config related to
Grub is stored in the directory. We were masking `/sysroot/boot` with
an ESP mount which caused bootupd to write incorrect UUID (the ESP's) in
`bootuuid.cfg` file rendering the system unbootable.

Fix this by mounting the ESP at a temp location if we don't find it
already mounted at predetermined locations

Signed-off-by: Pragyan Poudyal <pragyanpoudyal41999@gmail.com>

@cgwalters cgwalters left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK, makes sense to me.

However, one clear thing here is we should still probably push for adding /efi into our base images, because then this stuff becomes clearer.

Also that said: can't we just open the mount as a fd using the new mount api? I'm not aware of a strong reason for us to attach it to the namespace at all - and that would entirely avoid these bugs.

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

Successfully merging this pull request may close these issues.

2 participants