Update install_pxe.sh script
Some checks reported errors
continuous-integration/drone/push Build was killed

This commit is contained in:
Adrien Reslinger 2021-09-01 09:56:25 +02:00
parent 7c88af5102
commit 8c9327860d
Signed by: adrien
GPG key ID: DA7B27055C66D6DE

View file

@ -72,9 +72,7 @@ else
fi
cd /boot
wget "$MIRROIR"/isolinux/{vmlinuz,initrd.img}
if [ $(ip link show | grep ^[0-9] | grep -v lo: | wc -l) -eq 1 ]; then
INST_OPTIONS="ks.device=link ${INST_OPTIONS}"
else
if [ $(ip link show | grep ^[0-9] | grep -v lo: | wc -l) -ne 1 ]; then
INST_OPTIONS="ks.device=$MAC ${INST_OPTIONS}"
fi
if [ ! -z "$STATIC" ]; then