Hyperv Debian + UEFI

This commit is contained in:
Greg Hellings
2023-12-30 05:37:32 +00:00
parent 76abdb9132
commit b11669345e
112 changed files with 468 additions and 850 deletions
+2 -11
View File
@@ -14,18 +14,9 @@ services --enabled=vmtoolsd
# The biosdevname and ifnames options ensure we get "eth0" as our interface
# even in environments like virtualbox that emulate a real NW card
bootloader --timeout=1 --append="no_timer_check console=tty0 console=ttyS0,115200n8 net.ifnames=0 biosdevname=0 elevator=noop"
clearpart --all
autopart --type=plain
zerombr
%include /tmp/disks.ks
%pre --interpreter /bin/bash --log /tmp/greg
if [ -e /dev/vda ]; then
disk="vda"
else
disk="sda"
fi
echo "clearpart --all --drives=$disk" > /tmp/disks.ks
echo "part / --fstype=ext4 --asprimary --size=1024 --grow --ondisk=$disk" >> /tmp/disks.ks
%end
user --name=vagrant --plaintext --password=vagrant