diff --git a/scripts-systemd-fix-machines-btrfs-subvol.sh b/scripts-systemd-fix-machines-btrfs-subvol.sh index a1b0832e..6ff4f688 100644 --- a/scripts-systemd-fix-machines-btrfs-subvol.sh +++ b/scripts-systemd-fix-machines-btrfs-subvol.sh @@ -74,6 +74,18 @@ if mount --fake /var/lib/machines 2>/dev/null; then exit fi +# +# If there is already an entry in fstab for /var, it means that: +# +# - the system has a seperate /var subvolume (default from Feb 2018) +# - the system has a seperate /var partition +# +# In any case we should exit +# +if mount --fake /var 2>/dev/null; then + exit +fi + # # If something is already mounted don't try to fix anything, it's been # done manually by the sysadmin. diff --git a/systemd.changes b/systemd.changes index e8400dc3..556fbd6d 100644 --- a/systemd.changes +++ b/systemd.changes @@ -1,3 +1,12 @@ +------------------------------------------------------------------- +Fri Jan 12 12:27:52 UTC 2018 - rbrown@suse.com + +- Edit scripts-systemd-fix-machines-btrfs-subvol.sh + + We shouldn't be creating a /var/lib/machines subvolume if /var is + already a seperate partition or subvolume. /var/lib/machines will + already be excluded from snapper & similar tooling in this case. + ------------------------------------------------------------------- Wed Jan 10 11:04:21 UTC 2018 - fbui@suse.com