done
# Install packages on airootfs
- ${mkalteriso} ${mkalteriso_option} -w "${work_dir}/${arch}" -D "${install_dir}" -r "mkdir /ippan_temp"
- ${mkalteriso} ${mkalteriso_option} -w "${work_dir}/${arch}" -D "${install_dir}" -r "useradd -d /ippan_temp ippan"
-
+ ${mkalteriso} ${mkalteriso_option} -w "${work_dir}/${arch}" -D "${install_dir}" -r "mkdir /ippan_temp" run
+ ${mkalteriso} ${mkalteriso_option} -w "${work_dir}/${arch}" -D "${install_dir}" -r "chmod 777 /ippan_temp" run
+ ${mkalteriso} ${mkalteriso_option} -w "${work_dir}/${arch}" -D "${install_dir}" -r "useradd -d /ippan_temp ippan" run
+ echo "ippan ALL=(ALL) NOPASSWD:ALL" > ${work_dir}/${arch}/airootfs/etc/sudoers.d/ippan
+ for _pkg2 in ${pkglist_aur[@]}; do
+ echo "cd ~ ; git clone https://aur.archlinux.org/${_pkg2}.git ; cd ${_pkg2} ; makepkg -csi --noconfirm " > ${work_dir}/${arch}/airootfs/ippan_temp/test.sh
+ ${mkalteriso} ${mkalteriso_option} -w "${work_dir}/${arch}" -D "${install_dir}" -r "chmod 777 /ippan_temp/test.sh" run
+ ${mkalteriso} ${mkalteriso_option} -w "${work_dir}/${arch}" -D "${install_dir}" -r "sudo -u ippan /ippan_temp/test.sh" run
+
+ done
+
}
run_once make_pacman_conf
run_once make_basefs
run_once make_packages
+run_once make_packages_aur
run_once make_customize_airootfs
run_once make_setup_mkinitcpio
run_once make_boot