mirror of
https://github.com/morgan9e/systemd
synced 2026-04-16 01:16:10 +09:00
machine: tests for io.systemd.Machine.OpenRootDirectory
This commit is contained in:
@@ -422,6 +422,10 @@ varlinkctl call /run/systemd/machine/io.systemd.Machine io.systemd.Machine.CopyF
|
||||
diff /var/lib/machines/long-running/foo /foo
|
||||
rm -f /var/lib/machines/long-running/root/foo /foo
|
||||
|
||||
# test io.systemd.Machine.OpenRootDirectory
|
||||
varlinkctl call /run/systemd/machine/io.systemd.Machine io.systemd.Machine.OpenRootDirectory '{"name": ".host"}'
|
||||
varlinkctl call /run/systemd/machine/io.systemd.Machine io.systemd.Machine.OpenRootDirectory '{"name": "long-running"}'
|
||||
|
||||
# Terminating machine, otherwise acquiring image metadata by io.systemd.MachineImage.List may fail in the below.
|
||||
machinectl terminate long-running
|
||||
# wait for the container being stopped, otherwise acquiring image metadata by io.systemd.MachineImage.List may fail in the below.
|
||||
|
||||
Reference in New Issue
Block a user