tests/installed: Add var-mount.yml destructive test

Closes: #1668
Approved by: cgwalters
This commit is contained in:
Colin Walters 2018-07-04 11:57:50 -04:00 committed by Atomic Bot
parent a13ea6497e
commit 61ba4e7e5a
3 changed files with 17 additions and 0 deletions

View File

@ -13,3 +13,4 @@
when: use_git_build
- import_tasks: tasks/query-host.yml
- import_tasks: destructive/staged-deploy.yml
- import_tasks: destructive/var-mount.yml

View File

@ -0,0 +1,13 @@
# https://github.com/ostreedev/ostree/issues/1667
- name: Set up /var as a mountpoint
shell: |
set -xeuo pipefail
cp -a /var /sysroot/myvar
touch /sysroot/myvar/somenewfile
echo '/sysroot/myvar /var none bind 0 0' >> /etc/fstab
- include_tasks: ../tasks/reboot.yml
- name: Check that /var mountpoint worked
shell: |
set -xeuo pipefail
systemctl status var.mount
test -f /var/somenewfile

View File

@ -8,6 +8,9 @@
synchronize: src=build/x86_64/ dest=/root/x86_64/ archive=yes
- name: Install RPMs
shell: rpm-ostree override replace /root/x86_64/*.rpm
# Regenerate to make sure new ostree binaries also make it to the initrd
- name: Regenerate initramfs
shell: rpm-ostree initramfs --enable
- import_tasks: ../tasks/reboot.yml
- import_tasks: ../tasks/query-host.yml
- command: ostree --version