I think the easiest way is to create a partition just after flashing and just before the first reboot. This partition only needs to have characteristics that cause the resizing command to fail (excerpt):The resizing command tries to allocate the entire disk to the "/" partition based on the disk size.
Deleting the "init" command from the cmdline.txt file seems to me to be an error because the script that is launched does not only resize the "/" partition
Code:
... ROOT_DEV_SIZE=$(cat "/sys/block/$ROOT_DEV_NAME/size") TARGET_END="$((ROOT_DEV_SIZE - 1))" if [ "$TARGET_END" -gt 4294967295 ]; then TARGET_END=4294967295 fi}do_resize () { if ! parted -m "$ROOT_DEV" u s resizepart "$ROOT_PART_NUM" "$TARGET_END"; then FAIL_REASON="Partition table resize of the root partition ($DEV) failed\n$FAIL_REASON" return 1 fi...
Deleting the "init" command from the cmdline.txt file seems to me to be an error because the script that is launched does not only resize the "/" partition
Statistics: Posted by PhL91 — Sun Feb 04, 2024 9:18 am