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

Handle ro /boot #118

Merged
merged 2 commits into from
Dec 1, 2020
Merged

Conversation

kelvinfan001
Copy link
Member

Minor changes from #116
Tested on FCOS with /boot and /boot/efi mounted ro.

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.
@@ -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}
Copy link
Member

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.

Copy link
Member

@cgwalters cgwalters left a comment

Choose a reason for hiding this comment

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

Thanks!
/lgtm

@openshift-ci-robot
Copy link
Collaborator

[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:
  • OWNERS [cgwalters,kelvinfan001]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

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

Successfully merging this pull request may close these issues.

4 participants