osbuild: ensure /var/tmp is a real directory
This is a followup for https://github.com/osbuild/osbuild/pull/1649 Instead of symlinking /var/tmp to /tmp which may be on a tmpfs this commit puts it on a real filesystem. This should fix: https://github.com/osbuild/bootc-image-builder/issues/285
This commit is contained in:
parent
0528ccc3f0
commit
345516e867
2 changed files with 6 additions and 9 deletions
|
|
@ -50,10 +50,9 @@ def test_basic(tempdir, runner):
|
|||
assert r.returncode != 0
|
||||
|
||||
# Test that fs setup looks correct
|
||||
r = root.run(["readlink", "-f", "/var/tmp"], monitor)
|
||||
r = root.run(["test", "-d", "/var/tmp"], monitor)
|
||||
assert r.returncode == 0
|
||||
assert r.stdout.strip().split("\n")[-1] == "/tmp"
|
||||
r = root.run(["stat", "-L", "--format=%a", "/var/tmp"], monitor)
|
||||
r = root.run(["stat", "--format=%a", "/var/tmp"], monitor)
|
||||
assert r.returncode == 0
|
||||
assert r.stdout.strip().split("\n")[-1] == "1777"
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue