mirror of
				https://gitlab.com/alemaire/image-specs.git
				synced 2025-01-17 17:48:20 +00:00 
			
		
		
		
	Fix resizerootfs string manipulation
Works with several usb devices plugged in on first boot.
This commit is contained in:
		| @@ -1,8 +1,9 @@ | |||||||
| #!/bin/sh | #!/bin/sh | ||||||
|  |  | ||||||
| roottmp=$(lsblk -l -o MAJ:MIN,MOUNTPOINT | grep '/$') | roottmp=$(lsblk -l -o NAME,MOUNTPOINT | grep '/$') | ||||||
| rootpart=/dev/block/${roottmp% /} | rootpart=/dev/${roottmp%% */} | ||||||
| rootdev=${rootpart%:*}:0 | rootdev=${rootpart%2} | ||||||
|  | rootdev=${rootdev%p} | ||||||
|  |  | ||||||
| flock $rootdev sfdisk -f $rootdev -N 2 <<EOF | flock $rootdev sfdisk -f $rootdev -N 2 <<EOF | ||||||
| ,+ | ,+ | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Christian Schlüter
					Christian Schlüter