diff --git a/snapshot.sh b/snapshot.sh index c7fb5a6..32751b6 100755 --- a/snapshot.sh +++ b/snapshot.sh @@ -51,8 +51,8 @@ if [ "make" == "$1" ] || [ "makeboot" == "y" ]; then #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" " -f2)" /boot/vmlinuz-stable + cp "$(echo $(find /boot/ -name "initramfs*$(uname -m).img") | cut -d" " -f2)" /boot/initramfs-linux-stable.img + cp "$(echo $(find /boot/ -name "vmlinuz*$(uname -m)") | cut -d" " -f2)" /boot/vmlinuz-stable kernel1="$(echo $(find /boot/ -name "initramfs*-stable.img") | cut -d" " -f2)" linuz1="$(find /boot/ -name "vmlinuz*-stable")" diff --git a/update-bootloader b/update-bootloader index 84d31c9..2010a63 100755 --- a/update-bootloader +++ b/update-bootloader @@ -3,8 +3,8 @@ set -ex -kernel1="$(echo $(find /boot/ -name "initramfs*.img") | cut -d" " -f2)" -linuz1="$(echo $(find /boot/ -name "vmlinuz*") | cut -d" " -f2)" +kernel1="$(echo $(find /boot/ -name "initramfs*$(uname -m).img") | cut -d" " -f2)" +linuz1="$(echo $(find /boot/ -name "vmlinuz*$(uname -m)") | cut -d" " -f2)" kernel="${kernel1#/*/}" linuz="${linuz1#/*/}"