Skip to content
Snippets Groups Projects
Unverified Commit e2c5b452 authored by nl6720's avatar nl6720
Browse files

archiso/mkarchiso: reduce duplication and add more info messages

Fixes to issues introduced in archlinux/archiso!59 :
- _make_boot_on_fat(): copy initramfs from "${airootfs_dir}/boot/" not "${isofs_dir}/". Otherwise UEFI-only ISOs cannot be built.

Some general fixes:
- Replace mkdir with install. Unlike mkdir, install does 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.ext4 instead of truncate.
- Do not rely on user and group names for chown commands. Use numeric UID and GID instead.
- Minimize the times stderr is redirected to /dev/null.
- Add missing '?' to getopts.
- Standardize function definitions by removing spaces between the function name and () .
parent 13b8c7d0
No related branches found
No related tags found
1 merge request!68archiso/mkarchiso: various fixes
Pipeline #1226 passed