From de95ed9c6e7e33fc4eb36eb19a355b603751edd1 Mon Sep 17 00:00:00 2001 From: simono41 Date: Thu, 21 Jun 2018 14:37:45 +0200 Subject: [PATCH] fix --- snapshot.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/snapshot.sh b/snapshot.sh index 6b05a0d..d77a90f 100755 --- a/snapshot.sh +++ b/snapshot.sh @@ -38,10 +38,13 @@ if [ "make" == "$1" ]; then done - #stable-snapshot-boot - if [ -f "/boot/arch-uefi.conf.example" ] && [ "${rootsnapshot}" == "y" ]; then + if [ "${rootsnapshot}" == "y" ]; then #reset-fstab cp /etc/fstab.example /etc/fstab + fi + + #stable-snapshot-boot + if [ -f "/boot/arch-uefi.conf.example" ] && [ "${rootsnapshot}" == "y" ]; then 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