-
Notifications
You must be signed in to change notification settings - Fork 158
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
s390x: ensure chreipl is called before unmounting /target #1799
Conversation
For ZFS, we recently introduced a call to $(umount --recursive /target) slighly before shutting down or rebooting. Unfortunately, on s390x, we also had a very late call to chreipl to make the firmware boot from the installed system. The call to chreipl reads data from /target/boot, and it fails if the filesystem is no longer mounted. Fixed by calling chreipl earlier in the installation, during the postinst phase rather than after the user clicks "reboot". Signed-off-by: Olivier Gayot <olivier.gayot@canonical.com>
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.
Very nice work.
Tested on z/VM, After reboot, the system booted the newly installed system. Furthermore, the logs on the target system show the successful call to
|
@@ -666,6 +667,17 @@ async def install(self, *, context): | |||
) | |||
raise | |||
|
|||
async def platform_postinstall(self): | |||
"""Run architecture specific commands/quirks""" |
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.
genuine question do we want to use a context here to inform the user this is happening?
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.
I think that would be a good idea. At least for platforms that don't just noop.
Merging - Olivier, please consider the context change for a follow-on. |
For ZFS, we recently introduced a call to
umount --recursive /target
slighly before shutting down or rebooting. Unfortunately, on s390x, we also had a very late call tochreipl
to make the firmware boot from the installed system.The call to
chreipl
reads data from/target/boot
, and it fails if the filesystem is no longer mounted.Fixed by calling
chreipl
earlier in the installation, during the postinst phase rather than after the user clicks "reboot".LP: #2029479