From 88df71196fb4ad7a9d1ca44a30ed62c8266d2c35 Mon Sep 17 00:00:00 2001 From: simono41 Date: Thu, 21 Jun 2018 08:11:52 +0200 Subject: [PATCH] only-root --- snapshot.sh | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/snapshot.sh b/snapshot.sh index 57cc310..6b05a0d 100755 --- a/snapshot.sh +++ b/snapshot.sh @@ -38,13 +38,10 @@ if [ "make" == "$1" ]; then done - #reset-fstab - if [ "${rootsnapshot}" == "y" ]; then - cp /etc/fstab.example /etc/fstab - fi - #stable-snapshot-boot - if [ -f "/boot/arch-uefi.conf.example" ]; then + if [ -f "/boot/arch-uefi.conf.example" ] && [ "${rootsnapshot}" == "y" ]; then + #reset-fstab + cp /etc/fstab.example /etc/fstab cp "$(echo $(find /boot/ -name "initramfs*.img") | cut -d" " -f2)" /boot/initramfs-linux-stable.img cp "$(echo $(find /boot/ -name "vmlinuz*") | cut -d" " -f1)" /boot/vmlinuz-stable