@@ -752,7 +752,7 @@ make_boot_extra() {
752752# Prepare /${install_dir}/boot/syslinux
753753make_syslinux () {
754754 _uname_r=" $( file -b ${airootfs_dir} /boot/${kernel_filename} | awk ' f{print;f=0} /version/{f=1}' RS=' ' ) "
755- mkdir -p " ${isofs_dir} /${install_dir} /boot/ syslinux"
755+ mkdir -p " ${isofs_dir} /syslinux"
756756
757757 # 一時ディレクトリに設定ファイルをコピー
758758 mkdir -p " ${work_dir} /${arch} /syslinux/"
@@ -767,7 +767,7 @@ make_syslinux() {
767767 s|%OS_NAME%|${os_name} |g;
768768 s|%KERNEL_FILENAME%|${kernel_filename} |g;
769769 s|%ARCH%|${arch} |g;
770- s|%INSTALL_DIR%|${install_dir} |g" " ${_cfg} " > " ${isofs_dir} /${install_dir} /boot/ syslinux/${_cfg##*/ } "
770+ s|%INSTALL_DIR%|${install_dir} |g" " ${_cfg} " > " ${isofs_dir} /syslinux/${_cfg##*/ } "
771771 done
772772
773773 # Replace the SYSLINUX configuration file with or without boot splash.
@@ -780,39 +780,36 @@ make_syslinux() {
780780 _no_use_config_name=splash
781781 fi
782782 for _pxe_or_sys in " sys" " pxe" ; do
783- remove " ${isofs_dir} /${install_dir} /boot/ syslinux/archiso_${_pxe_or_sys} _${_no_use_config_name} .cfg"
784- mv " ${isofs_dir} /${install_dir} /boot/ syslinux/archiso_${_pxe_or_sys} _${_use_config_name} .cfg" " ${isofs_dir} / ${install_dir} /boot /syslinux/archiso_${_pxe_or_sys} .cfg"
783+ remove " ${isofs_dir} /syslinux/archiso_${_pxe_or_sys} _${_no_use_config_name} .cfg"
784+ mv " ${isofs_dir} /syslinux/archiso_${_pxe_or_sys} _${_use_config_name} .cfg" " ${isofs_dir} /syslinux/archiso_${_pxe_or_sys} .cfg"
785785 done
786786
787787 # Set syslinux wallpaper
788788 if [[ -f " ${channel_dir} /splash.png" ]]; then
789- cp " ${channel_dir} /splash.png" " ${isofs_dir} /${install_dir} /boot/ syslinux"
789+ cp " ${channel_dir} /splash.png" " ${isofs_dir} /syslinux"
790790 else
791- cp " ${script_path} /syslinux/splash.png" " ${isofs_dir} /${install_dir} /boot/ syslinux"
791+ cp " ${script_path} /syslinux/splash.png" " ${isofs_dir} /syslinux"
792792 fi
793793
794794 # remove config
795795 local _remove_config
796796 function _remove_config() {
797- remove " ${isofs_dir} /${install_dir} /boot/ syslinux/${1} "
798- sed -i " s|$( cat " ${isofs_dir} /${install_dir} /boot/ syslinux/archiso_sys_load.cfg" | grep " ${1} " ) ||g" " ${isofs_dir} / ${install_dir} /boot /syslinux/archiso_sys_load.cfg"
797+ remove " ${isofs_dir} /syslinux/${1} "
798+ sed -i " s|$( cat " ${isofs_dir} /syslinux/archiso_sys_load.cfg" | grep " ${1} " ) ||g" " ${isofs_dir} /syslinux/archiso_sys_load.cfg"
799799 }
800800
801- if [[ " ${norescue_entry} " = true ]]; then
802- _remove_config archiso_sys_rescue.cfg
803- fi
804-
805- if [[ " ${memtest86} " = false ]]; then
806- _remove_config memtest86.cfg
807- fi
801+ if [[ " ${norescue_entry} " = true ]]; then _remove_config archiso_sys_rescue.cfg; fi
802+ if [[ " ${memtest86} " = false ]]; then _remove_config memtest86.cfg; fi
808803
809804 # copy files
810- cp " ${work_dir} " /${arch} /airootfs/usr/lib/syslinux/bios/* .c32 " ${isofs_dir} /${install_dir} /boot/syslinux"
811- cp " ${airootfs_dir} /usr/lib/syslinux/bios/lpxelinux.0" " ${isofs_dir} /${install_dir} /boot/syslinux"
812- cp " ${airootfs_dir} /usr/lib/syslinux/bios/memdisk" " ${isofs_dir} /${install_dir} /boot/syslinux"
813- mkdir -p " ${isofs_dir} /${install_dir} /boot/syslinux/hdt"
814- gzip -c -9 " ${airootfs_dir} /usr/share/hwdata/pci.ids" > " ${isofs_dir} /${install_dir} /boot/syslinux/hdt/pciids.gz"
815- gzip -c -9 " ${airootfs_dir} /usr/lib/modules/${_uname_r} /modules.alias" > " ${isofs_dir} /${install_dir} /boot/syslinux/hdt/modalias.gz"
805+ cp " ${work_dir} " /${arch} /airootfs/usr/lib/syslinux/bios/* .c32 " ${isofs_dir} /syslinux"
806+ cp " ${airootfs_dir} /usr/lib/syslinux/bios/lpxelinux.0" " ${isofs_dir} /syslinux"
807+ cp " ${airootfs_dir} /usr/lib/syslinux/bios/memdisk" " ${isofs_dir} /syslinux"
808+
809+
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"
816813}
817814
818815# Prepare /isolinux
0 commit comments