mirror of
				https://gitlab.com/alemaire/image-specs.git
				synced 2025-01-17 17:48:20 +00:00 
			
		
		
		
	Merge branch 'rootfs' into 'master'
rootfs subdirectory See merge request raspi-team/image-specs!12
This commit is contained in:
		
							
								
								
									
										22
									
								
								rootfs/usr/sbin/rpi-resizerootfs
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										22
									
								
								rootfs/usr/sbin/rpi-resizerootfs
									
									
									
									
									
										Executable file
									
								
							| @@ -0,0 +1,22 @@ | ||||
| #!/bin/sh | ||||
|  | ||||
| rootpart="$(findmnt -n -o SOURCE /)" | ||||
| rootdev="/dev/$(lsblk -no pkname "$rootpart")" | ||||
|  | ||||
| flock $rootdev sfdisk -f $rootdev -N 2 <<EOF | ||||
| ,+ | ||||
| EOF | ||||
|  | ||||
| sleep 5 | ||||
|  | ||||
| udevadm settle | ||||
|  | ||||
| sleep 5 | ||||
|  | ||||
| flock $rootdev partprobe $rootdev | ||||
|  | ||||
| mount -o remount,rw $rootpart | ||||
|  | ||||
| resize2fs $rootpart | ||||
|  | ||||
| exit 0 | ||||
		Reference in New Issue
	
	Block a user
	 Gunnar Wolf
					Gunnar Wolf