Hyperv Debian + UEFI
This commit is contained in:
@@ -36,11 +36,9 @@ libselinux-python
|
||||
|
||||
%pre
|
||||
# In Hyper-V this needs a re-do for some reason
|
||||
virt="$(systemd-detect-virt)"
|
||||
if [ "${virt}" == "microsoft" ]; then
|
||||
nmcli c down eth0
|
||||
nmcli c up eth0
|
||||
fi
|
||||
set -ex
|
||||
nmcli dev connect eth0
|
||||
nmcli c
|
||||
%end
|
||||
|
||||
%post --erroronfail
|
||||
|
||||
Reference in New Issue
Block a user