mirror of
https://github.com/ostreedev/ostree.git
synced 2025-01-03 05:18:24 +03:00
ostree-tmpfiles.conf: Drop var
entry
We are backing away from this semantic, and moving towards `/var` only being initialized at initial provisioning.
This commit is contained in:
parent
9350006011
commit
87dcc801a2
@ -17,7 +17,3 @@
|
||||
d /run/ostree 0755 root root -
|
||||
# https://github.com/ostreedev/ostree/issues/393
|
||||
R! /var/tmp/ostree-unlock-ovl.*
|
||||
# Automatically propagate all /var content from /usr/share/factory/var;
|
||||
# NOTE: This is now considered a mistake, and will likely be reverted.
|
||||
# As of OSTree 2024.3, content from the initial deployment is used.
|
||||
C+! /var - - - - -
|
||||
|
@ -1,29 +0,0 @@
|
||||
#!/bin/bash
|
||||
set -xeuo pipefail
|
||||
|
||||
. ${KOLA_EXT_DATA}/libinsttest.sh
|
||||
|
||||
require_writable_sysroot
|
||||
prepare_tmpdir
|
||||
|
||||
case "${AUTOPKGTEST_REBOOT_MARK:-}" in
|
||||
"")
|
||||
factory_var=rootfs/usr/share/factory/var
|
||||
mkdir -p ${factory_var}
|
||||
cd "${factory_var}"
|
||||
mkdir -p home/someuser
|
||||
echo bashrc > home/someuser/.bashrc
|
||||
chown -R 1000:1000 home/someuser
|
||||
mkdir -m 01777 -p tmp
|
||||
cd -
|
||||
ostree commit -b testlint --no-bindings --selinux-policy-from-base --tree=ref="${host_refspec}" --consume --tree=dir=rootfs
|
||||
ostree admin deploy testlint 2>err.txt
|
||||
assert_not_file_has_content err.txt 'contains content in /var'
|
||||
|
||||
/tmp/autopkgtest-reboot "2"
|
||||
;;
|
||||
2)
|
||||
assert_file_has_content /home/someuser/.bashrc bashrc
|
||||
;;
|
||||
*) fatal "Unexpected AUTOPKGTEST_REBOOT_MARK=${AUTOPKGTEST_REBOOT_MARK}" ;;
|
||||
esac
|
Loading…
Reference in New Issue
Block a user