From 6d1f6a49358407cd281ec8f4e926766b11fc5d37 Mon Sep 17 00:00:00 2001 From: Magnus Andersson Date: Fri, 12 Jan 2024 15:56:07 +0100 Subject: [PATCH] Fix some typos for LVM config --- kube-user.tpl | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/kube-user.tpl b/kube-user.tpl index 2419b00..0d8eb28 100644 --- a/kube-user.tpl +++ b/kube-user.tpl @@ -17,10 +17,11 @@ write_files: runcmd: - [ systemctl, enable, chronyd ] - systemctl restart chronyd - - mkdir -p /usr/lib/snap + - mkdir -p /var/snap - vgcreate snapvg /dev/sdb - lvcreate -n lvol_snap -l 100%FREE snapvg - - mkfs -t xfs /dev/snapvg/lvol_snap -n ftype=1 + - mkfs -t xfs -n ftype=1 /dev/snapvg/lvol_snap - cp -a /etc/fstab /run/fstab.bak - - echo "UUID=$(blkid | grep lvol_snap | cut -d \" -f 2 ) /var/snap xfs defaults 0 0" >> /etc/fstab + - echo "/dev/snapvg/lvol_snap /var/snap xfs defaults 0 0" >> /etc/fstab + - systemctl daemon-reload - findmnt --verify || cp -a /run/fstab.bak /etc/fstab