mirror of
https://github.com/iiab/iiab.git
synced 2025-03-09 15:40:17 +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
|
- iw
|
||||||
- rfkill
|
- rfkill
|
||||||
- wireless-tools
|
- wireless-tools
|
||||||
|
- cloud-guest-utils
|
||||||
state: present
|
state: present
|
||||||
|
|
||||||
- name: Increase swap file size (to CONF_SWAPSIZE={{ pi_swap_file_size }} in /etc/dphys-swapfile) as kalite pip download fails
|
- 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)}
|
root_part_no=${root_part: (-1)}
|
||||||
|
|
||||||
# Resize partition
|
# Resize partition
|
||||||
parted -s /dev/$root_dev resizepart $root_part_no 100%
|
growpart /dev/$root_dev resizepart $root_part_no
|
||||||
resize2fs /dev/$root_part
|
resize2fs /dev/$root_part
|
||||||
rm /.resize-rootfs
|
rm /.resize-rootfs
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue