cobbler/huawei-repair-switch-condition-error.patch
2021-06-29 01:13:48 +08:00

32 lines
1.0 KiB
Diff

From 23087fd58b8f7b62c35dcaaae0e7db7713a8172e Mon Sep 17 00:00:00 2001
From: bitcoffee <liuxin264@huawei.com>
Date: Tue, 29 Jun 2021 00:44:49 +0800
Subject: [PATCH] repair switch condition error
---
templates/etc/dhcp.template | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/templates/etc/dhcp.template b/templates/etc/dhcp.template
index e8a2b91..cc3cfb1 100644
--- a/templates/etc/dhcp.template
+++ b/templates/etc/dhcp.template
@@ -36,12 +36,12 @@ subnet 192.168.1.0 netmask 255.255.255.0 {
filename "pxelinux.0";
}
# UEFI-32-1
- if option system-arch = 00:06 {
+ else if option system-arch = 00:06 {
# Not supported, no 32 bit UEFI grub executable
filename "unsupported";
}
# UEFI-32-2
- if option system-arch = 00:02 {
+ else if option system-arch = 00:02 {
# Not supported, no 32 bit UEFI grub executable
filename "unsupported";
}
--
2.30.0