File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -730,8 +730,9 @@ make_boot() {
730730# Add other aditional/extra files to ${install_dir}/boot/
731731make_boot_extra () {
732732 if [[ -e " ${airootfs_dir} /boot/memtest86+/memtest.bin" ]]; then
733- cp " ${airootfs_dir} /boot/memtest86+/memtest.bin" " ${isofs_dir} /${install_dir} /boot/memtest"
734- cp " ${airootfs_dir} /usr/share/licenses/common/GPL2/license.txt" " ${isofs_dir} /${install_dir} /boot/memtest.COPYING"
733+ install -m 0644 -- " ${airootfs_dir} /boot/memtest86+/memtest.bin" " ${isofs_dir} /${install_dir} /boot/memtest"
734+ install -d -m 0755 -- " ${isofs_dir} /${install_dir} /boot/licenses/memtest86+/"
735+ install -m 0644 -- " ${airootfs_dir} /usr/share/licenses/common/GPL2/license.txt" " ${isofs_dir} /${install_dir} /boot/licenses/memtest86+/"
735736 fi
736737
737738 local _ucode_image
@@ -807,9 +808,13 @@ make_syslinux() {
807808 cp " ${airootfs_dir} /usr/lib/syslinux/bios/memdisk" " ${isofs_dir} /syslinux"
808809
809810
810- mkdir -p " ${isofs_dir} /syslinux/hdt"
811- gzip -c -9 " ${airootfs_dir} /usr/share/hwdata/pci.ids" > " ${isofs_dir} /syslinux/hdt/pciids.gz"
812- gzip -c -9 " ${airootfs_dir} /usr/lib/modules/${_uname_r} /modules.alias" > " ${isofs_dir} /syslinux/hdt/modalias.gz"
811+ if [[ -e " ${isofs_dir} /syslinux/hdt.c32" ]]; then
812+ install -d -m 0755 -- " ${isofs_dir} /syslinux/hdt"
813+ if [[ -e " ${airootfs_dir} /usr/share/hwdata/pci.ids" ]]; then
814+ gzip -c -9 " ${airootfs_dir} /usr/share/hwdata/pci.ids" > " ${isofs_dir} /syslinux/hdt/pciids.gz"
815+ fi
816+ find " ${airootfs_dir} /usr/lib/modules" -name ' modules.alias' -print -exec gzip -c -9 ' {}' ' ;' -quit > " ${isofs_dir} /syslinux/hdt/modalias.gz"
817+ fi
813818}
814819
815820# Prepare /isolinux
You can’t perform that action at this time.
0 commit comments