From 19c43a6ca70f330ea1d8d0f73f489851fb760968 Mon Sep 17 00:00:00 2001 From: oxmc7769 Date: Mon, 28 Apr 2025 12:08:37 -0700 Subject: [PATCH] Fix boot issue --- export-image/04-set-partuuid/00-run.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/export-image/04-set-partuuid/00-run.sh b/export-image/04-set-partuuid/00-run.sh index 15eb3fd..7acbe79 100755 --- a/export-image/04-set-partuuid/00-run.sh +++ b/export-image/04-set-partuuid/00-run.sh @@ -5,8 +5,8 @@ IMG_FILE="${STAGE_WORK_DIR}/${IMG_FILENAME}${IMG_SUFFIX}.img" IMGID="$(dd if="${IMG_FILE}" skip=440 bs=1 count=4 2>/dev/null | xxd -e | cut -f 2 -d' ')" BOOT_PARTUUID="${IMGID}-01" -RECOVERY_PARTUUID="${IMGID}-02" -ROOT_PARTUUID="${IMGID}-03" +ROOT_PARTUUID="${IMGID}-02" +RECOVERY_PARTUUID="${IMGID}-03" sed -i "s/BOOTDEV/PARTUUID=${BOOT_PARTUUID}/" "${ROOTFS_DIR}/etc/fstab" sed -i "s/ROOTDEV/PARTUUID=${ROOT_PARTUUID}/" "${ROOTFS_DIR}/etc/fstab"