mirror of
				https://gitlab.com/alemaire/image-specs.git
				synced 2025-01-17 17:48:20 +00:00 
			
		
		
		
	Screw parted, use sfdisk
This commit is contained in:
		| @@ -4,6 +4,10 @@ roottmp=$(lsblk -l -o MAJ:MIN,MOUNTPOINT | grep '/$') | ||||
| rootpart=/dev/block/${roottmp% /} | ||||
| rootdev=${rootpart%:*}:0 | ||||
|  | ||||
| printf "y\n-1s\n" | parted $rootdev resizepart 2 | ||||
| sfdisk -f $rootdev -N 2 <<EOF | ||||
| ,+ | ||||
| EOF | ||||
|  | ||||
| partprobe | ||||
|  | ||||
| resize2fs $rootpart | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Christian Schlüter
					Christian Schlüter