mirror of
				https://github.com/brain-hackers/brain-config.git
				synced 2025-11-04 06:28:39 +09:00 
			
		
		
		
	init_resize.sh: Fix for distributor images
This commit is contained in:
		
							
								
								
									
										1
									
								
								debian/changelog
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										1
									
								
								debian/changelog
									
									
									
									
										vendored
									
									
								
							@@ -1,6 +1,7 @@
 | 
			
		||||
raspi-config (20220201) UNRELEASED; urgency=medium
 | 
			
		||||
 | 
			
		||||
  * pass -f flag to rm
 | 
			
		||||
  * Fix init_resize.sh on Bullseye NOOBS images
 | 
			
		||||
 | 
			
		||||
 -- Serge Schneider <serge@raspberrypi.com>  Tue, 01 Feb 2022 16:02:27 +0000
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -161,7 +161,7 @@ main () {
 | 
			
		||||
  fi
 | 
			
		||||
 | 
			
		||||
  if [ "$NOOBS" = "1" ]; then
 | 
			
		||||
    if ! parted -m "$ROOT_DEV" u s resizepart "$EXT_PART_NUM" yes "$TARGET_END"; then
 | 
			
		||||
    if ! printf "resizepart %s\nyes\n%ss\n" "$EXT_PART_NUM" "$TARGET_END" | parted "$ROOT_DEV" ---pretend-input-tty; then
 | 
			
		||||
      FAIL_REASON="Extended partition resize failed"
 | 
			
		||||
      return 1
 | 
			
		||||
    fi
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user