Merge pull request #2468 from lucab/ups/tests-var-mount

tests/var-mount: tweak test setup
This commit is contained in:
Luca Bruno 2021-10-19 09:03:19 +00:00 committed by GitHub
commit 9692437491
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 6 deletions

View File

@ -6,12 +6,9 @@ set -xeuo pipefail
case "${AUTOPKGTEST_REBOOT_MARK:-}" in case "${AUTOPKGTEST_REBOOT_MARK:-}" in
"") "")
require_writable_sysroot touch "/var/somenewfile"
# Hack this off for now stateroot=$(ostree admin status 2> /dev/null | grep '^\*' | cut -d ' ' -f2 || true)
chattr -i /sysroot echo "/sysroot/ostree/deploy/${stateroot}/var /var none bind 0 0" >> /etc/fstab
cp -a /var /sysroot/myvar
touch /sysroot/myvar/somenewfile
echo '/sysroot/myvar /var none bind 0 0' >> /etc/fstab
/tmp/autopkgtest-reboot "2" /tmp/autopkgtest-reboot "2"
;; ;;
"2") "2")