diff options
| author | nl6720 <nl6720@gmail.com> | 2024-08-21 09:08:08 +0300 |
|---|---|---|
| committer | nl6720 <nl6720@gmail.com> | 2024-08-21 09:08:08 +0300 |
| commit | 6cd79e65053105ba9fade0336de9a4081417eb1f (patch) | |
| tree | ceb65e8baf5cb98e0642f02f0e09c1bd903c9f81 | |
| parent | 654e834f8c0ef237393f6fd60383cb8a3a664dbc (diff) | |
| download | archiso-6cd79e65053105ba9fade0336de9a4081417eb1f.tar.gz archiso-6cd79e65053105ba9fade0336de9a4081417eb1f.tar.bz2 | |
mkarchiso: use an empty UUID for EROFS
The UUID is never used for anything, since the file system resides in a
file. Instead of generating a reproducible UUID for it, use
`00000000-0000-0000-0000-000000000000` instead.
| -rw-r--r-- | CHANGELOG.rst | 2 | ||||
| -rwxr-xr-x | archiso/mkarchiso | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/CHANGELOG.rst b/CHANGELOG.rst index ec1344b..375a92e 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -11,6 +11,8 @@ Added Changed ------- +- Use an empty UUID for the EROFS image file since the file system will never be referenced by it. + Deprecated ---------- diff --git a/archiso/mkarchiso b/archiso/mkarchiso index 92cc05a..2ba9732 100755 --- a/archiso/mkarchiso +++ b/archiso/mkarchiso @@ -223,16 +223,14 @@ _mkairootfs_squashfs() { # Create an EROFS image containing the root file system and saves it on the ISO 9660 file system. _mkairootfs_erofs() { - local fsuuid mkfs_erofs_options=() + local mkfs_erofs_options=() [[ -e "${pacstrap_dir}" ]] || _msg_error "The path '${pacstrap_dir}' does not exist" 1 install -d -m 0755 -- "${isofs_dir}/${install_dir}/${arch}" local image_path="${isofs_dir}/${install_dir}/${arch}/airootfs.erofs" rm -f -- "${image_path}" [[ ! "${quiet}" == "y" ]] || mkfs_erofs_options+=('--quiet') - # Generate reproducible file system UUID from SOURCE_DATE_EPOCH - fsuuid="$(uuidgen --sha1 --namespace 93a870ff-8565-4cf3-a67b-f47299271a96 --name "${SOURCE_DATE_EPOCH}")" - mkfs_erofs_options+=('-U' "${fsuuid}" "${airootfs_image_tool_options[@]}") + mkfs_erofs_options+=('-U' '00000000-0000-0000-0000-000000000000' "${airootfs_image_tool_options[@]}") _msg_info "Creating EROFS image, this may take some time..." mkfs.erofs "${mkfs_erofs_options[@]}" -- "${image_path}" "${pacstrap_dir}" _msg_info "Done!" |
