@@ -216,11 +216,11 @@ umount_chroot_advance() {
216216# Helper function to run make_*() only one time.
217217run_once () {
218218 set -eu
219- if [[ ! -e " ${lockfile_dir} /build.${1} _ ${arch} " ]]; then
219+ if [[ ! -e " ${lockfile_dir} /build.${1} " ]]; then
220220 msg_debug " Running ${1} ..."
221221 mount_airootfs
222- " ${1 } "
223- mkdir -p " ${lockfile_dir} " ; touch " ${lockfile_dir} /build.${1} _ ${arch} "
222+ eval " ${@ } "
223+ mkdir -p " ${lockfile_dir} " ; touch " ${lockfile_dir} /build.${1} "
224224 umount_chroot_advance
225225 else
226226 msg_debug " Skipped because ${1} has already been executed."
@@ -268,14 +268,14 @@ for_module(){
268268# pacstrapを実行
269269_pacstrap (){
270270 msg_info " Installing packages to ${airootfs_dir} /'..."
271- pacstrap -C " ${build_dir} /pacman- ${arch} .conf" -c -G -M -- " ${airootfs_dir} " " ${@ } "
271+ pacstrap -C " ${build_dir} /pacman.conf" -c -G -M -- " ${airootfs_dir} " " ${@ } "
272272 msg_info " Packages installed successfully!"
273273}
274274
275275# chroot環境でpacmanコマンドを実行
276276# /etc/alteriso-pacman.confを準備してコマンドを実行します
277277_run_with_pacmanconf (){
278- sed " s|^CacheDir =|#CacheDir =|g" " ${build_dir} /pacman- ${arch} .conf" > " ${airootfs_dir} /etc/alteriso-pacman.conf"
278+ sed " s|^CacheDir =|#CacheDir =|g" " ${build_dir} /pacman.conf" > " ${airootfs_dir} /etc/alteriso-pacman.conf"
279279 " ${@ } "
280280 remove " ${airootfs_dir} /etc/alteriso-pacman.conf"
281281}
@@ -552,7 +552,7 @@ make_pacman_conf() {
552552 done
553553
554554 msg_debug " Use ${build_pacman_conf} "
555- sed -r " s|^#?\\ s*CacheDir.+|CacheDir = ${cache_dir} |g" " ${build_pacman_conf} " > " ${build_dir} /pacman- ${arch} .conf"
555+ sed -r " s|^#?\\ s*CacheDir.+|CacheDir = ${cache_dir} |g" " ${build_pacman_conf} " > " ${build_dir} /pacman.conf"
556556
557557 if [[ " ${nosigcheck} " = true ]]; then
558558 sed -ir " s|^s*SigLevel.+|SigLevel = Never|g" " ${build_pacman_conf} "
13021302
13031303# Set dirs
13041304work_dir=" $( realpath " ${work_dir} " ) "
1305- build_dir=" ${work_dir} /build"
1305+ build_dir=" ${work_dir} /build/ ${arch} "
13061306cache_dir=" ${work_dir} /cache/${arch} "
1307- airootfs_dir=" ${build_dir} /${arch} / airootfs"
1307+ airootfs_dir=" ${build_dir} /airootfs"
13081308isofs_dir=" ${build_dir} /iso"
13091309lockfile_dir=" ${build_dir} /lockfile"
13101310
0 commit comments