Skip to content
This repository has been archived by the owner on May 28, 2024. It is now read-only.

Commit

Permalink
test: fix btrfs subvolume issue
Browse files Browse the repository at this point in the history
Signed-off-by: Xiaofeng Wang <[email protected]>
  • Loading branch information
henrywang committed May 9, 2024
1 parent 6a5b603 commit ff7ec3c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions playbooks/check-system.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -177,11 +177,12 @@
when: fstype != "btrfs"

# btrfs defines subvolume /root in fedora
# but for bootc install to-disk will set btrfs subvolume /
- name: /var mount point checking - btrfs
block:
- assert:
that:
- result_var_mount_point.stdout == var_mount_path
- (result_var_mount_point.stdout == var_mount_path_1) or (result_var_mount_point.stdout == var_mount_path_2))
fail_msg: "/var does not mount on {{ var_mount_path }}"
success_msg: "/var mounts on {{ var_mount_path }}"
always:
Expand All @@ -192,7 +193,8 @@
set_fact:
failed_counter: "{{ failed_counter | int + 1 }}"
vars:
var_mount_path: "{{ device_name }}[/root/ostree/deploy/{{ osname }}/var]"
var_mount_path_1: "{{ device_name }}[/root/ostree/deploy/{{ osname }}/var]"
var_mount_path_2: "{{ device_name }}[/ostree/deploy/{{ osname }}/var]"
when: fstype == "btrfs"

# case: check /var mount status
Expand Down

0 comments on commit ff7ec3c

Please sign in to comment.