installer: Fix crash when deleting a free space partition.
Fixes: <https://issues.guix.gnu.org/49126>. * gnu/installer/newt/partition.scm (run-disk-page): Fix the return value when removing a free space partition.
This commit is contained in:
		
							parent
							
								
									5ef96ecaae
								
							
						
					
					
						commit
						e2ff126588
					
				
					 1 changed files with 4 additions and 2 deletions
				
			
		| 
						 | 
					@ -643,8 +643,10 @@ edit it."
 | 
				
			||||||
             default-result))))
 | 
					             default-result))))
 | 
				
			||||||
       ((partition? item)
 | 
					       ((partition? item)
 | 
				
			||||||
        (if (freespace-partition? item)
 | 
					        (if (freespace-partition? item)
 | 
				
			||||||
            (run-error-page (G_ "You cannot delete a free space area.")
 | 
					            (begin
 | 
				
			||||||
                            (G_ "Delete partition"))
 | 
					              (run-error-page (G_ "You cannot delete a free space area.")
 | 
				
			||||||
 | 
					                              (G_ "Delete partition"))
 | 
				
			||||||
 | 
					              default-result)
 | 
				
			||||||
            (let* ((disk (partition-disk item))
 | 
					            (let* ((disk (partition-disk item))
 | 
				
			||||||
                   (number-str (partition-print-number item))
 | 
					                   (number-str (partition-print-number item))
 | 
				
			||||||
                   (info-text
 | 
					                   (info-text
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Reference in a new issue