Trying to get correct disk formats
This commit is contained in:
		
							
								
								
									
										10
									
								
								install.sh
									
									
									
									
									
								
							
							
						
						
									
										10
									
								
								install.sh
									
									
									
									
									
								
							| @@ -20,19 +20,17 @@ parted $DISK -- set 3 esp on | |||||||
| cryptsetup luksFormat ${DISK}1 | cryptsetup luksFormat ${DISK}1 | ||||||
| cryptsetup open ${DISK}1 root | cryptsetup open ${DISK}1 root | ||||||
|  |  | ||||||
| # # Now format the encrypted partition | # Now format the encrypted partition | ||||||
| # mkfs.ext4 /dev/mapper/root | mkfs.ext4 /dev/mapper/root | ||||||
|  |  | ||||||
| # # Mount the partitions | # Mount the partitions | ||||||
| # mount /dev/mapper/root /mnt | mount /dev/mapper/root /mnt | ||||||
|  |  | ||||||
| # Format  | # Format  | ||||||
| mkfs.ext4 -L nixos ${DISK}1 |  | ||||||
| mkswap -L swap ${DISK}2 | mkswap -L swap ${DISK}2 | ||||||
| mkfs.fat -F 32 -n boot ${DISK}3 | mkfs.fat -F 32 -n boot ${DISK}3 | ||||||
|  |  | ||||||
| # Mount the partitions | # Mount the partitions | ||||||
| mount /dev/disk/by-label/nixos /mnt |  | ||||||
| mkdir -p /mnt/boot | mkdir -p /mnt/boot | ||||||
| mount -o umask=077 /dev/disk/by-label/boot /mnt/boot | mount -o umask=077 /dev/disk/by-label/boot /mnt/boot | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user