archiso/mkarchiso: create an empty /etc/machine-id

Fixes https://gitlab.archlinux.org/archlinux/archiso/-/issues/42 .
This commit is contained in:
nl6720 2020-08-12 15:05:56 +03:00
parent ba3e8345ad
commit e6455b885b
No known key found for this signature in database
GPG Key ID: 5CE88535E188D369
2 changed files with 2 additions and 0 deletions

View File

@ -204,6 +204,8 @@ _cleanup () {
# Delete package pacman related files.
find "${work_dir}" \( -name '*.pacnew' -o -name '*.pacsave' -o -name '*.pacorig' \) -delete
_msg_info "Done!"
# Create an empty /etc/machine-id
printf '' > "${work_dir}/airootfs/etc/machine-id"
}
# Makes a ext4 filesystem inside a SquashFS from a source directory.