aboutsummaryrefslogtreecommitdiffstats
path: root/export-image
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2021-06-28 02:19:49 +0200
committerSven Gothel <[email protected]>2021-06-28 02:19:49 +0200
commit0616b70be7424890a7cb9bb8c9bb7fbec2939e34 (patch)
tree6e2876e288fd002a3ed8624dedb9eed782ab6d44 /export-image
parent1d77a8426fa38329c59f8d852495a2be27fe4739 (diff)
ro: Use sdcard layout 'Image-B' 1 boot (250MB), 2 data (1GB), 3 rootfs1 (4GB), 4 rootfs2 (4GB); Keep full sized sdcard image.
qcow2_handling: make_bootable_image() - Still resize rootfs, but keep the partition table intact for both 4GB rootfs. This keeps the scard image fully sized, but allows to mount and use all partitions. - Use `mount_rawimage` (qemu-nbd) for image mount instead of convoluted loop device
Diffstat (limited to 'export-image')
-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
-