Skip to content

Commit 02887ca

Browse files
committed
[pcp_metrics] Create a usroverlay instead of remounting /usr
Remounting the `/usr` directory on coreos nodes was failing on newer crc releases because `/usr` is read-only. This changes the remount to use the `rpm-ostree usroverlay` command to create a temporary writable layer instead. Data written to this overlay will not persist between boots. Signed-off-by: Michael Burke <michburk@redhat.com>
1 parent 7680a88 commit 02887ca

1 file changed

Lines changed: 3 additions & 5 deletions

File tree

roles/pcp_metrics/tasks/coreos.yaml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,10 @@
1111
- name: Setup repositories for PCP
1212
ansible.builtin.include_tasks: repo.yml
1313

14-
- name: Make /usr writable
14+
- name: Create an writable, ephemeral /usr overlay
1515
become: true
16-
ansible.posix.mount:
17-
path: /usr
18-
state: remounted
19-
opts: rw
16+
ansible.builtin.command:
17+
cmd: rpm-ostree usroverlay
2018

2119
- name: Create required directory
2220
become: true

0 commit comments

Comments
 (0)