Signed-off-by: kokkiemouse <kokkiemouse@fascode.net>
# Compress tarball
make_tarball() {
- cp -a -l -f "${airootfs_dir}" "${work_dir}"
+
+ if [[ "${noaur}" == true ]]; then
+ cp -a -l -f "${airootfs_dir}" "${work_dir}"
+ else
+ umount -fl "${airootfs_dir}"
+ mkdir -p "${work_dir}/airootfs"
+ mount "${work_dir}/${arch}/airootfs.img" "${work_dir}/airootfs"
+ fi
if [[ -f "${airootfs_dir}/root/optimize_for_tarball.sh" ]]; then
chmod 755 "${airootfs_dir}/root/optimize_for_tarball.sh"
return -810;
}
_checksum_common(tar_filepath);
+ _umount_airootfs();
_msg_success("Done! " + tar_filepath);
return 0;
}