From b6c0e89c652628adef9b444f4efd078bfee8c18e Mon Sep 17 00:00:00 2001 From: Giuseppe Date: Mon, 2 Mar 2026 13:30:10 +0100 Subject: [PATCH] Fix CDROOT_TYPE should not be replaced in loop. when determine_fs don't found the fs type of device return the last input value ( last valid once ) and not the original parameter. So the mount can fail. mount command success exit code are: success 0 partial success 64 we need test the mount in any case. modified: defaults/initrd.scripts --- defaults/initrd.scripts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/defaults/initrd.scripts b/defaults/initrd.scripts index 506f8c6c..c9c2ae58 100644 --- a/defaults/initrd.scripts +++ b/defaults/initrd.scripts @@ -180,10 +180,10 @@ findmediamount() { then good_msg "Attempting to mount media: ${x}" ${CRYPT_SILENT} - CDROOT_TYPE=$(determine_fs "${x}" "${CDROOT_TYPE}") + CDROOT_TYPE_TMP=$(determine_fs "${x}" "${CDROOT_TYPE}") - run mount -t ${CDROOT_TYPE} ${x} ${mntcddir} >/dev/null 2>&1 - if [ $? -eq 0 ] + run mount -t ${CDROOT_TYPE_TMP} ${x} ${mntcddir} >/dev/null 2>&1 + if [ $? -eq 0 ] || [ $? -eq 64 ] then if [ -n "${ISOBOOT}" ] then