Add minimal netboot module to build kexec image
This commit is contained in:
		
							parent
							
								
									a211e9ebee
								
							
						
					
					
						commit
						f12ba9f8b0
					
				| @ -2,7 +2,7 @@ | |||||||
| 
 | 
 | ||||||
| { | { | ||||||
|   # Use the GRUB 2 boot loader. |   # Use the GRUB 2 boot loader. | ||||||
|   boot.loader.grub.enable = true; |   boot.loader.grub.enable = lib.mkForce true; | ||||||
|   boot.loader.grub.version = 2; |   boot.loader.grub.version = 2; | ||||||
| 
 | 
 | ||||||
|   # Enable GRUB2 serial console |   # Enable GRUB2 serial console | ||||||
|  | |||||||
| @ -1,10 +1,12 @@ | |||||||
| { config, pkgs, ... }: | { config, pkgs, modulesPath, lib, ... }: | ||||||
| 
 | 
 | ||||||
| { | { | ||||||
|   imports = [ ../common/main.nix ]; |   imports = [ ../common/main.nix (modulesPath + "/installer/netboot/netboot-minimal.nix") ]; | ||||||
| 
 | 
 | ||||||
|   # Select the this using the ID to avoid mismatches |   # Select the this using the ID to avoid mismatches | ||||||
|   boot.loader.grub.device = "/dev/disk/by-id/wwn-0x55cd2e414d535629"; |   boot.loader.grub.device = "/dev/disk/by-id/wwn-0x55cd2e414d535629"; | ||||||
|  |   #programs.ssh.forwardX11 = false; | ||||||
|  |   programs.ssh.setXAuthLocation = lib.mkForce true; | ||||||
| 
 | 
 | ||||||
|   networking = { |   networking = { | ||||||
|     hostName = "xeon02"; |     hostName = "xeon02"; | ||||||
|  | |||||||
		Reference in New Issue
	
	Block a user