Hi everyone,
I saw that the post was followed, but unfortunately without any suggestions from you.
Anyway, my question probably should have been shorter, like:
Because, if I'm not mistaken, since Bullseye, the cmdline.txt has been stripped of the init= parameter with the resize counterpart
At this point, I opted for the following workaround,...but without completing my search for a solution.
I can assure you that the search was arduous; I generated many different images using pi-gen, and many days were wasted.
But in the end, I got there.
In the official documentation, I found no information on how a parameter in config.txt is used.
I saw that the post was followed, but unfortunately without any suggestions from you.
Anyway, my question probably should have been shorter, like:
what mechanism on the Raspberry Pi in the Trixie distribution triggers the filesystem resize procedure?
Because, if I'm not mistaken, since Bullseye, the cmdline.txt has been stripped of the init= parameter with the resize counterpart
Code:
Bullseyecmdline = console=serial0,115200 console=tty1 root=ROOTDEV rootfstype=ext4 fsck.repair=yes rootwait init=/usr/lib/raspberrypi-sys-mods/firstbootCode:
Trixie (new)cmdline = console=serial0,115200 console=tty1 root=ROOTDEV rootfstype=ext4 fsck.repair=yes rootwait resizeAt this point, I opted for the following workaround,
Code:
# 1. Expand the partition to 100% of the disksudo parted /dev/mmcblk0 resizepart 2 100%# 2. Inform the kernel of the new sizesudo partprobe /dev/mmcblk0# 3. Grow the filesystem to fill the expanded partitionsudo resize2fs /dev/mmcblk0p2# 4. Remove 'resize' from cmdline (resize_early no longer does this)sudo sed -i 's/ resize//' /boot/firmware/cmdline.txt# 5. Verifydf -h /lsblkI can assure you that the search was arduous; I generated many different images using pi-gen, and many days were wasted.
But in the end, I got there.
In the official documentation, I found no information on how a parameter in config.txt is used.
What is the parameter?
Try to guess. I can only tell you that in my experiments, I started from my own consolidated config.txt file for Bullseye.
Statistics: Posted by skcasb — Tue Aug 04, 2026 1:41 pm







