Hyperv Debian + UEFI
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
#!/usr/bin/env bash
|
||||
set -ex
|
||||
|
||||
disk="${1}"
|
||||
#disk="${1}"
|
||||
|
||||
# Set locale info to reasonable defaults
|
||||
ln -sf /usr/share/zoneinfo/UTC /etc/localtime
|
||||
@@ -27,10 +27,10 @@ systemctl enable NetworkManager
|
||||
|
||||
# Configure and install grub
|
||||
sed -i -E -e 's/GRUB_CMDLINE_LINUX="(.*)"/GRUB_CMDLINE_LINUX="\1 net.ifnames=0 biosdevnames=0"/' /etc/default/grub
|
||||
grub-install --target=i386-pc "${disk}"
|
||||
grub-install --target=x86_64-efi --efi-directory /boot
|
||||
grub-install --target=x86_64-efi --efi-directory /boot --removable
|
||||
grub-mkconfig -o /boot/grub/grub.cfg
|
||||
|
||||
|
||||
# Create and configure the vagrant user
|
||||
groupadd vagrant
|
||||
useradd vagrant -g vagrant -G wheel -m
|
||||
@@ -48,4 +48,4 @@ if [ "${virt}" == "microsoft" ]; then
|
||||
systemctl enable hv_fcopy_daemon
|
||||
systemctl enable hv_kvp_daemon
|
||||
systemctl enable hv_vss_daemon
|
||||
fi
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user