diff options
author | bill-auger <mr.j.spam.me@gmail.com> | 2018-05-18 20:57:16 -0400 |
---|---|---|
committer | bill-auger <mr.j.spam.me@gmail.com> | 2019-05-07 09:23:27 -0400 |
commit | 7af85a14d514011b91075d32222519d8cce85eaa (patch) | |
tree | 6d8a1025edb05a0f9e6f3b061c5bf925d47a884b | |
parent | 6a55d4fa33711e2a8858573b1b7cb78c4c00f9f7 (diff) |
write package list and checksums artifacts beside ISO
-rwxr-xr-x | configs/profile/build.sh | 4 | ||||
-rwxr-xr-x | parabolaiso/mkparabolaiso | 12 |
2 files changed, 10 insertions, 6 deletions
diff --git a/configs/profile/build.sh b/configs/profile/build.sh index b87d86c..326af1e 100755 --- a/configs/profile/build.sh +++ b/configs/profile/build.sh @@ -335,8 +335,8 @@ make_prepare() { # Build ISO make_iso() { - mkparabolaiso ${verbose} -w ${work_dir} -D ${iso_dirname} checksum - mkparabolaiso ${verbose} -w ${work_dir} -D ${iso_dirname} -L ${iso_label} -o ${out_dir} iso ${iso_filename} + setarch ${arch} mkparabolaiso ${verbose} -w ${work_dir} -D ${iso_dirname} checksum + setarch ${arch} mkparabolaiso ${verbose} -w ${work_dir} -D ${iso_dirname} -L ${iso_label} -o ${out_dir} iso ${iso_filename} } diff --git a/parabolaiso/mkparabolaiso b/parabolaiso/mkparabolaiso index bd2db9f..1843594 100755 --- a/parabolaiso/mkparabolaiso +++ b/parabolaiso/mkparabolaiso @@ -494,7 +494,7 @@ command_iso () { _show_config iso if _is_directory_changed "${work_dir}/iso" "${out_dir}/${img_name}"; then - mkdir -p ${out_dir} + mkdir -p "${out_dir}" _msg_info "Creating ISO image..." local _qflag="" if [[ ${quiet} == "y" ]]; then @@ -514,7 +514,13 @@ command_iso () { ${_iso_efi_boot_args} \ -output "${out_dir}/${img_name}" \ "${work_dir}/iso/" - _msg_info "Done! | $(ls -sh ${out_dir}/${img_name})" + _msg_info "Done! | $(ls -sh "${out_dir}/${img_name}")" + + cp "${work_dir}/iso/${install_dir}/pkglist.${arch}.txt" ${out_dir}/ + pushd ${out_dir} > /dev/null + sha512sum "${img_name}" >> SHA512SUMS 2> /dev/null || true + rhash --whirlpool "${img_name}" >> WHIRLPOOLSUMS 2> /dev/null || true + popd > /dev/null fi } @@ -682,5 +688,3 @@ case "${command_name}" in _usage 1 ;; esac - -# vim:ts=4:sw=4:et: |