mirror of
https://github.com/opencontainers/runc.git
synced 2026-07-11 06:03:57 +08:00
fix rootfs propagation mode
Signed-off-by: Yusuke Sakurai <yusuke.sakurai@3-shake.com>
This commit is contained in:
@@ -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" ]
|
||||
}
|
||||
Reference in New Issue
Block a user