From 836acdca6bdf4c6cb4c88757bd46c270e6ef5e9f Mon Sep 17 00:00:00 2001 From: Michal Sojka Date: Mon, 28 Jun 2021 08:19:34 +0200 Subject: [PATCH] shell.nix: Add grub2 and dhcp This is to allow manual testing of --dhcp-tftp --grub2 functionality. Currently, I don't have time to fully automate the tests, but this is how I tested it manually: 1. Create testboot script with the following content: #!/usr/bin/env novaboot BOOT_METHOD=linux load kernel load ramdisk 2. Create a bridge interface: brctl addbr br0 ip link set dev br0 up 3. Run: ./testboot --dhcp-tftp --grub2 --remote-cmd="sleep inf" --netif=br0 4. Verify that the Qemu VM boots GRUB2: sudo qemu-system-x86_64 -boot n -nic bridge,br=br0 -nographic --- shell.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/shell.nix b/shell.nix index e1641fd..0cdacc4 100644 --- a/shell.nix +++ b/shell.nix @@ -10,5 +10,7 @@ mkShell { buildInputs = with pkgs; [ syslinux cdrkit + grub2 + dhcp ]; } -- 2.39.2