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

Only execute zpool export -a if zpool is available #2080

Merged
merged 1 commit into from
Sep 11, 2024

Conversation

ogayot
Copy link
Member

@ogayot ogayot commented Sep 11, 2024

We recently made the call to zpool export -a unconditional to account for "advanced" autoinstall scenarios. However, the zpool command is not always present in the live installer environment ; and it results in a Subiquity crash if the command fails to execute. Today, zpool (provided by zfsutils-linux) is dynamically installed in the live environment by curtin when it handles a ZFS installation.

Let's make sure we don't crash if zpool is not available when shutting down. It just means we're not using ZFS.

We recently made the call to `zpool export -a` unconditional to account
for "advanced" autoinstall scenarios. However, the zpool command is not
always present in the live installer environment ; and it results in a
Subiquity crash if the command fails to execute. Today, zpool (provided
by zfsutils-linux) is dynamically installed in the live environment by
curtin when it handles a ZFS installation.

Let's make sure we don't crash if zpool is not available when shutting
down. It just means we're not using ZFS.

Signed-off-by: Olivier Gayot <[email protected]>
Copy link
Collaborator

@dbungert dbungert left a comment

Choose a reason for hiding this comment

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

Thanks!

@ogayot ogayot merged commit 6157b35 into canonical:main Sep 11, 2024
12 checks passed
@ogayot ogayot deleted the zfsutils-not-installed branch September 11, 2024 15:58
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