aboutsummaryrefslogtreecommitdiffstats
path: root/export-image/03-set-partuuid/00-run.sh
diff options
context:
space:
mode:
Diffstat (limited to 'export-image/03-set-partuuid/00-run.sh')
-rwxr-xr-xexport-image/03-set-partuuid/00-run.sh18
1 files changed, 0 insertions, 18 deletions
diff --git a/export-image/03-set-partuuid/00-run.sh b/export-image/03-set-partuuid/00-run.sh
deleted file mode 100755
index 16e1b15..0000000
--- a/export-image/03-set-partuuid/00-run.sh
+++ /dev/null
@@ -1,18 +0,0 @@
-#!/bin/bash -e
-
-if [ "${NO_PRERUN_QCOW2}" = "0" ]; then
-
- 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"
- ROOT_PARTUUID="${IMGID}-02"
-
- sed -i "s/BOOTDEV/PARTUUID=${BOOT_PARTUUID}/" "${ROOTFS_DIR}/etc/fstab"
- sed -i "s/ROOTDEV/PARTUUID=${ROOT_PARTUUID}/" "${ROOTFS_DIR}/etc/fstab"
-
- sed -i "s/ROOTDEV/PARTUUID=${ROOT_PARTUUID}/" "${ROOTFS_DIR}/boot/cmdline.txt"
-
-fi
-