Add minimal netboot module to build kexec image
This commit is contained in:
		
							parent
							
								
									2d204c5cc0
								
							
						
					
					
						commit
						5c9f5e845f
					
				| @ -2,7 +2,7 @@ | ||||
| 
 | ||||
| { | ||||
|   # Use the GRUB 2 boot loader. | ||||
|   boot.loader.grub.enable = true; | ||||
|   boot.loader.grub.enable = lib.mkForce true; | ||||
|   boot.loader.grub.version = 2; | ||||
| 
 | ||||
|   # 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 | ||||
|   boot.loader.grub.device = "/dev/disk/by-id/wwn-0x55cd2e414d535629"; | ||||
|   #programs.ssh.forwardX11 = false; | ||||
|   programs.ssh.setXAuthLocation = lib.mkForce true; | ||||
| 
 | ||||
|   networking = { | ||||
|     hostName = "xeon02"; | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user