@@ -675,8 +675,8 @@ make_setup_mkinitcpio() {
675675# Prepare kernel/initramfs ${install_dir}/boot/
676676make_boot () {
677677 mkdir -p " ${isofs_dir} /${install_dir} /boot/${arch} "
678- _cp " ${airootfs_dir} /boot/archiso.img" " ${isofs_dir} /${install_dir} /boot/${arch} /archiso.img"
679- _cp " ${airootfs_dir} /boot/${kernel_filename} " " ${isofs_dir} /${install_dir} /boot/${arch} /${kernel_filename} "
678+ install -m 0644 -- " ${airootfs_dir} /boot/archiso.img" " ${isofs_dir} /${install_dir} /boot/${arch} /archiso.img"
679+ install -m 0644 -- " ${airootfs_dir} /boot/${kernel_filename} " " ${isofs_dir} /${install_dir} /boot/${arch} /${kernel_filename} "
680680
681681 return 0
682682}
@@ -737,8 +737,8 @@ make_syslinux() {
737737 done
738738
739739 # Set syslinux wallpaper
740- _cp " ${script_path} /syslinux/splash.png" " ${isofs_dir} /syslinux"
741- [[ -f " ${channel_dir} /splash.png" ]] && _cp " ${channel_dir} /splash.png" " ${isofs_dir} /syslinux"
740+ install -m 0644 -- " ${script_path} /syslinux/splash.png" " ${isofs_dir} /syslinux/ "
741+ [[ -f " ${channel_dir} /splash.png" ]] && install -m 0644 -- " ${channel_dir} /splash.png" " ${isofs_dir} /syslinux"
742742
743743 # remove config
744744 local _remove_config
@@ -751,9 +751,9 @@ make_syslinux() {
751751 [[ " ${memtest86} " = false ]] && _remove_config memtest86.cfg
752752
753753 # copy files
754- _cp " ${airootfs_dir } /usr/lib/syslinux/bios/" * .c32 " ${isofs_dir} /syslinux"
755- _cp " ${airootfs_dir } /usr/lib/syslinux/bios/lpxelinux.0" " ${isofs_dir} /syslinux"
756- _cp " ${airootfs_dir } /usr/lib/syslinux/bios/memdisk" " ${isofs_dir} /syslinux"
754+ install -m 0644 -- " ${pacstrap_dir } /usr/lib/syslinux/bios/" * .c32 " ${isofs_dir} /syslinux/ "
755+ install -m 0644 -- " ${pacstrap_dir } /usr/lib/syslinux/bios/lpxelinux.0" " ${isofs_dir} /syslinux/ "
756+ install -m 0644 -- " ${pacstrap_dir } /usr/lib/syslinux/bios/memdisk" " ${isofs_dir} /syslinux/ "
757757
758758
759759 if [[ -e " ${isofs_dir} /syslinux/hdt.c32" ]]; then
0 commit comments