Closes: #1668
Approved by: cgwalters
when: use_git_build
- import_tasks: tasks/query-host.yml
- import_tasks: destructive/staged-deploy.yml
+ - import_tasks: destructive/var-mount.yml
--- /dev/null
+# 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
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