From 41dc23040e6892063c012b499e337a63303746f0 Mon Sep 17 00:00:00 2001 From: Le0xFF <43521247+Le0xFF@users.noreply.github.com> Date: Tue, 1 Aug 2023 21:17:58 +0200 Subject: [PATCH] Add /var/log to FSTAB Some applications don't like to have /var/log as read-only, so add it to FSTAB for overlayfs. --- old_unused/chroot.sh | 4 ++++ vli.sh | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/old_unused/chroot.sh b/old_unused/chroot.sh index 91ae41f..89d2505 100644 --- a/old_unused/chroot.sh +++ b/old_unused/chroot.sh @@ -69,6 +69,10 @@ UUID=$ROOT_UUID /home btrfs $BTRFS_OPT,subvol=@home 0 2 # Snapshots subvolume, uncomment the following line after creating a config for root [/] in snapper #UUID=$ROOT_UUID /.snapshots btrfs $BTRFS_OPT,subvol=@snapshots 0 2 +# Some applications don't like to have /var/log folders as read only. +# Log folders, to allow booting snapshots with rd.live.overlay.overlayfs=1 +UUID=$ROOT_UUID /var/log btrfs $BTRFS_OPT,subvol=@/var/log 0 2 + # TMPfs tmpfs /tmp tmpfs defaults,noatime,mode=1777 0 0 EOF diff --git a/vli.sh b/vli.sh index e7895e8..1eb56f9 100755 --- a/vli.sh +++ b/vli.sh @@ -193,6 +193,10 @@ UUID=$ROOT_UUID /home btrfs $BTRFS_OPT,subvol=@home 0 2 # Snapshots subvolume, uncomment the following line after creating a config for root [/] in snapper #UUID=$ROOT_UUID /.snapshots btrfs $BTRFS_OPT,subvol=@snapshots 0 2 +# Some applications don't like to have /var/log folders as read only. +# Log folders, to allow booting snapshots with rd.live.overlay.overlayfs=1 +UUID=$ROOT_UUID /var/log btrfs $BTRFS_OPT,subvol=@/var/log 0 2 + # TMPfs tmpfs /tmp tmpfs defaults,noatime,mode=1777 0 0 EOF