fix rootfs propagation mode

Signed-off-by: Yusuke Sakurai <yusuke.sakurai@3-shake.com>
This commit is contained in:
Yusuke Sakurai
2025-04-13 09:59:05 +09:00
parent 8d90e3dba6
commit 04be81b6a3
2 changed files with 34 additions and 0 deletions
+22
View File
@@ -0,0 +1,22 @@
#!/usr/bin/env bats
load helpers
function setup() {
requires root
setup_debian
}
function teardown() {
teardown_bundle
}
@test "runc run [rootfsPropagation shared]" {
update_config ' .linux.rootfsPropagation = "shared" '
update_config ' .process.args = ["findmnt", "--noheadings", "-o", "PROPAGATION", "/"] '
runc run test_shared_rootfs
[ "$status" -eq 0 ]
[ "$output" = "shared" ]
}