diff --git a/cloudinit/distros/freebsd.py b/cloudinit/distros/freebsd.py index 89880578fde..53b4ac4eb3b 100644 --- a/cloudinit/distros/freebsd.py +++ b/cloudinit/distros/freebsd.py @@ -226,3 +226,7 @@ def build_dhclient_cmd( return [path, "-l", lease_file, "-p", pid_file] + ( ["-c", config_file, interface] if config_file else [interface] ) + + @staticmethod + def eject_media(device: str) -> None: + subp.subp(["camcontrol", "eject", device])