arm-rpi4: added resizing the root partition and FS to fill the SD card

This commit is contained in:
Dmitriy Terekhin 2020-06-09 18:07:20 +04:00 committed by Anton Midyukov
parent 604f814232
commit 72bf6c762a
2 changed files with 6 additions and 0 deletions

View File

@ -9,6 +9,7 @@ use/arm-rpi4: use/bootloader/uboot
@$(call add,THE_PACKAGES,rpi4-boot-uboot-filetrigger)
@$(call add,THE_PACKAGES,firmware-bcm4345)
@$(call add,THE_PACKAGES,brcm-patchram-plus)
@$(call add,THE_PACKAGES,rpi4-resize-rootpart)
@$(call add,DEFAULT_SERVICES_ENABLE,attach-bluetooth)
endif

View File

@ -0,0 +1,5 @@
#!/bin/sh -efu
# For resize rootfs with systemd-growfs@-.service
# set x-systemd.growfs option in /etc/fstab for rootfs
sed -i '/^LABEL=ROOT/s/defaults/defaults,x-systemd.growfs/' /etc/fstab