Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/archiso
diff options
context:
space:
mode:
authornl6720 <nl6720@gmail.com>2020-08-12 15:05:56 +0300
committernl6720 <nl6720@gmail.com>2020-08-18 21:27:52 +0300
commite6455b885b2ae46e285cd81080d980cf876d6ea7 (patch)
treeaf55afb75e68d1665a56994036c54056e9181144 /archiso
parentba3e8345ad335120af6de680766436640f9c3bd3 (diff)
archiso/mkarchiso: create an empty /etc/machine-id
Fixes https://gitlab.archlinux.org/archlinux/archiso/-/issues/42 .
Diffstat (limited to 'archiso')
-rwxr-xr-xarchiso/mkarchiso2
1 files changed, 2 insertions, 0 deletions
diff --git a/archiso/mkarchiso b/archiso/mkarchiso
index 7602e62..e5bd9cb 100755
--- a/archiso/mkarchiso
+++ b/archiso/mkarchiso
@@ -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.