mirror of
https://github.com/iiab/iiab.git
synced 2025-02-13 03:32:12 +00:00
change resize service to use growpart, which must be installed for raspios
This commit is contained in:
parent
5127771fdf
commit
4f177f1b65
2 changed files with 2 additions and 1 deletions
|
@ -39,6 +39,7 @@
|
|||
- iw
|
||||
- rfkill
|
||||
- wireless-tools
|
||||
- cloud-guest-utils
|
||||
state: present
|
||||
|
||||
- name: Increase swap file size (to CONF_SWAPSIZE={{ pi_swap_file_size }} in /etc/dphys-swapfile) as kalite pip download fails
|
||||
|
|
|
@ -14,7 +14,7 @@ if [ -f /.resize-rootfs ];then
|
|||
root_part_no=${root_part: (-1)}
|
||||
|
||||
# Resize partition
|
||||
parted -s /dev/$root_dev resizepart $root_part_no 100%
|
||||
growpart /dev/$root_dev resizepart $root_part_no
|
||||
resize2fs /dev/$root_part
|
||||
rm /.resize-rootfs
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue