-
Notifications
You must be signed in to change notification settings - Fork 28
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
Handle ro /boot #118
Handle ro /boot #118
Conversation
9eaedb6
to
c10225e
Compare
The /boot and /boot/efi mount points may be read-only, so remount them as read-write if necessary when writing.
In the future, FCOS' /boot and /boot/efi may be read-only. Remount them as read-write before attempting to write to those locations.
c10225e
to
79d8563
Compare
@@ -115,6 +117,9 @@ bootupctl update | tee out.txt | |||
assert_file_has_content_literal out.txt 'No update available for any component' | |||
assert_not_file_has_content_literal out.txt 'Updated EFI' | |||
|
|||
# Ensure /boot and /boot/efi can be written to | |||
mount -o remount,rw ${bootmount} | |||
mount -o remount,rw ${bootefimount} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is OK for now, but in the future we can clean this up by having the test do something like re-exec itself in a new mount namespace so we're not affecting the main one.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
/lgtm
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: cgwalters, kelvinfan001 The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Minor changes from #116
Tested on FCOS with /boot and /boot/efi mounted ro.