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

distro: add eject FreeBSD code path #1

Closed
wants to merge 3 commits into from

Conversation

igalic
Copy link

@igalic igalic commented Jan 30, 2024

OpenBSD, NetBSD, and Dragonfly all have an eject(1), so they should be covered in the default code path.

FreeBSD however, does not have eject in base. It's an (unmaintained) port. In base, we do however, have camcontrol(8) and cdcontrol(1), both of which have an eject subcommand.

Let's use camcontrol(8) here.

Sponsored by: The FreeBSD Foundation

catmsred and others added 3 commits January 30, 2024 13:58
Azure currently relies on eject for some use cases.  In noble
minimal images eject is not installed by default.  This change
prefers a udev command that performs the same action before
trying eject.

A integration test has been created but is not functional.  Code
changes have not been tested.

[1] canonical#4732

Co-authored-by: James Falcon <[email protected]>
In response to Brett's suggestion that we explicitly try eject
options rather than making assumptions about systemd.  Keeping
this as a separate commit so we can see the options.
OpenBSD, NetBSD, and Dragonfly all have an eject(1), so they should be
covered in the default code path.

FreeBSD however, does not have eject in base. It's an (unmaintained)
port. In base, we do however, have camcontrol(8) and cdcontrol(1), both
of which have an eject subcommand.

Let's use camcontrol(8) here.

Sponsored by: The FreeBSD Foundation
@TheRealFalcon
Copy link

Hey @igalic, I'd rather merge the other one first and then rebase this one against main, just to keep reviews small and less complicated. Does that work for you?

@igalic igalic closed this Jan 31, 2024
@TheRealFalcon
Copy link

@igalic , feel free to re-open this one against cloud-init main now!

@igalic
Copy link
Author

igalic commented Feb 1, 2024

here it is canonical#4838

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.

3 participants