If you, like me, are trying to restrict a Ubuntu Raspberry Pi filesystem expansion upon first boot…

…this may be of use to you:

It’s init=/usr/lib/raspi-config/init_resize.sh in /boot/cmdline.txt that expands the partition size before /etc/init.d/resize2fs_once runs. If init=/usr/lib/raspi-config/init_resize.sh is removed, /etc/init.d/resize2fs_once still runs /usr/sbin/resize2fs which finds there’s nothing to do and immediately exits without anything being changed. /etc/init.d/resize2fs then removes itself and it’s end-of-story.

https://forums.raspberrypi.com/viewtopic.php?t=313003

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *