diff --git a/make_mksquashfs-auto.sh b/make_mksquashfs-auto.sh index 8be350e..cf75638 100755 --- a/make_mksquashfs-auto.sh +++ b/make_mksquashfs-auto.sh @@ -212,7 +212,7 @@ function BIOS() { if [ "${version}" == "manjaro" ]; then cp $(echo $(find ${work_dir}/${arch}/airootfs/boot/ -name "initramfs*$(uname -m).img") | cut -d" " -f2 ) ${work_dir}/iso/${install_dir}/boot/${arch}/archiso.img - cp $(echo $(find ${work_dir}/${arch}/airootfs/boot/ -name "vmlinuz*$(uname -m)") | cut -d" " -f1 ) ${work_dir}/iso/${install_dir}/boot/${arch}/vmlinuz + cp $(echo $(find ${work_dir}/${arch}/airootfs/boot/ -name "vmlinuz*$(uname -m)") | cut -d" " -f2 ) ${work_dir}/iso/${install_dir}/boot/${arch}/vmlinuz else cp ${work_dir}/${arch}/airootfs/boot/initramfs-linux${linuxparameter}.img ${work_dir}/iso/${install_dir}/boot/${arch}/archiso.img cp ${work_dir}/${arch}/airootfs/boot/vmlinuz-linux${linuxparameter} ${work_dir}/iso/${install_dir}/boot/${arch}/vmlinuz diff --git a/snapshot.sh b/snapshot.sh index c070530..c7fb5a6 100755 --- a/snapshot.sh +++ b/snapshot.sh @@ -52,7 +52,7 @@ if [ "make" == "$1" ] || [ "makeboot" == "y" ]; then 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 + cp "$(echo $(find /boot/ -name "vmlinuz*") | 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 62dd924..84d31c9 100755 --- a/update-bootloader +++ b/update-bootloader @@ -4,7 +4,7 @@ set -ex kernel1="$(echo $(find /boot/ -name "initramfs*.img") | cut -d" " -f2)" -linuz1="$(echo $(find /boot/ -name "vmlinuz*") | cut -d" " -f1)" +linuz1="$(echo $(find /boot/ -name "vmlinuz*") | cut -d" " -f2)" kernel="${kernel1#/*/}" linuz="${linuz1#/*/}"