wip
This commit is contained in:
		
							parent
							
								
									547b8aba1a
								
							
						
					
					
						commit
						cdae9002c1
					
				
					 1 changed files with 6 additions and 2 deletions
				
			
		
							
								
								
									
										8
									
								
								entry.sh
									
										
									
									
									
								
							
							
						
						
									
										8
									
								
								entry.sh
									
										
									
									
									
								
							| 
						 | 
				
			
			@ -11,14 +11,18 @@ function first_stage(){
 | 
			
		|||
	echo -n luks_password: 
 | 
			
		||||
	read -s luks_password
 | 
			
		||||
	
 | 
			
		||||
	if [ -b /dev/mapper/cryptlvm ]; then
 | 
			
		||||
		cryptsetup luksClose cryptlvm
 | 
			
		||||
	close
 | 
			
		||||
	
 | 
			
		||||
	wipefs -a ${DEVICE}
 | 
			
		||||
	
 | 
			
		||||
	lsblk -ftpo NAME,FSTYPE,LABEL,UUID,FSAVAIL,MOUNTPOINT
 | 
			
		||||
	select DEVICE in $(lsblk -frpno NAME); do
 | 
			
		||||
	echo using $DEVICE
 | 
			
		||||
	break
 | 
			
		||||
	done
 | 
			
		||||
	
 | 
			
		||||
	wipefs -a ${DEVICE}
 | 
			
		||||
	
 | 
			
		||||
	(
 | 
			
		||||
	echo o
 | 
			
		||||
	echo n
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue