commit:     30230600e89cceb64fc4815cbc8304b64602f036
Author:     Andreas K. Hüttel <dilfridge <AT> gentoo <DOT> org>
AuthorDate: Wed Jul  2 19:36:30 2025 +0000
Commit:     Andreas K. Hüttel <dilfridge <AT> gentoo <DOT> org>
CommitDate: Wed Jul  2 19:36:30 2025 +0000
URL:        https://gitweb.gentoo.org/proj/catalyst.git/commit/?id=30230600

Try to force parted to make the qcow2 root partition

Signed-off-by: Andreas K. Hüttel <dilfridge <AT> gentoo.org>

 targets/support/create-qcow2.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/targets/support/create-qcow2.sh b/targets/support/create-qcow2.sh
index 96c15345..9a2ff1fc 100755
--- a/targets/support/create-qcow2.sh
+++ b/targets/support/create-qcow2.sh
@@ -168,7 +168,7 @@ if [[ "${clst_qcow2_enable_efi}" == "1" ]] ; then
 fi
 
 echo "Creating the root partition, number ${mynextpart}, start ${mynextsector}"
-parted -s ${mydevice} -- mkpart gentooroot ${clst_qcow2_roottype} 
${mynextsector}s -1s || qcow2die "Cannot create root partition"
+parted -s -f ${mydevice} -- mkpart gentooroot ${clst_qcow2_roottype} 
${mynextsector}s -1MiB || qcow2die "Cannot create root partition"
 # mark it as generic linux filesystem partition
 parted -s ${mydevice} -- type ${mynextpart} 
0FC63DAF-8483-4772-8E79-3D69D8477DE4 || qcow2die "Cannot set root partition 
UUID"
 # note down name

Reply via email to