Skip to content

Commit

Permalink
ignition: mount /opt subvolume
Browse files Browse the repository at this point in the history
This is not mounted by default, therefore we cannot write the
/opt/rke2-cis-script.sh script.

So add configuration to mount the subvolume, as described in
https://en.opensuse.org/Portal:MicroOS/Ignition#Mounts
  • Loading branch information
hardys committed Aug 22, 2024
1 parent a470ec6 commit 73b2211
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions bootstrap/internal/ignition/butane/butane.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,13 @@ systemd:
enabled: true
{{- end }}
storage:
filesystems:
- path: /opt
device: "/dev/disk/by-partlabel/p.lxroot"
format: btrfs
wipe_filesystem: false
mount_options:
- "subvol=/@/opt"
files:
- path: /etc/ssh/sshd_config
mode: 0600
Expand Down

0 comments on commit 73b2211

Please sign in to comment.