mirror of
				https://github.com/iiab/iiab.git
				synced 2025-03-09 15:40:17 +00:00 
			
		
		
		
	Merge pull request #2465 from tim-moody/7.1-resize
change resize service to use growpart, which must be installed for raspios
This commit is contained in:
		
						commit
						01124ba465
					
				
					 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 $root_part_no
 | 
			
		||||
  resize2fs /dev/$root_part
 | 
			
		||||
  rm /.resize-rootfs
 | 
			
		||||
fi
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue