Boot with prefixed UUID

With certain versions of udev/blkid on specific hosts, resolving
the rootfs livecd by label fails to the wrong partition (e.g. efi), preventing to boot.
Meanwhile workaround it by writing an hardcoded udf UUID, but this could be
also automatically generated to have also predictable builds.

Requires sys-fs/udftools.
This commit is contained in:
Ettore Di Giacinto
2019-01-18 22:57:47 +01:00
parent 33fd4af08e
commit e54fc67a01
6 changed files with 36 additions and 38 deletions

View File

@@ -30,5 +30,12 @@ isohybrid ${ih_args} "${ISO_PATH}" || exit 1
cd "$(dirname "${ISO_PATH}")" || exit 1
iso_name=$(basename "${ISO_PATH}")
md5sum "${iso_name}" > "${ISO_CHECKSUM_PATH}"
exit ${?}
# FIXME: With certain versions of udev/blkid on specific hosts, resolving
# the rootfs livecd by label fails to the wrong partition (e.g. efi), preventing to boot.
# Meanwhile workaround it by writing an hardcoded udf UUID, but this could be
# also automatically generated to have also predictable builds.
# Requires sys-fs/udftools
udflabel --force -u 5c403dad00049b51 "${ISO_PATH}" SABAYON
exit ${?}