archiso/mkarchiso: various fixes
Fixes to issues introduced in !59 (merged) :
-
_make_boot_on_fat(): copy initramfs from"${airootfs_dir}/boot/"not"${isofs_dir}/". Otherwise UEFI-only ISOs cannot be built.
Some general fixes:
- Replace
mkdirwithinstall. Unlikemkdir,installdoes not complain when the target exists. - Reduce excess newlines produced by messages.
- Ensure FAT image gets unmounted in case the script is interrupted.
- Create the ext4 image with
mkfs.ext4instead oftruncate. - Do not rely on user and group names for
chowncommands. Use numeric UID and GID instead. - Minimize the times
stderris redirected to/dev/null. - Add missing "
?" to getopts. - Standardize function definitions by removing spaces between the function name and
().
Edited by nl6720