2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2026-09-25 01:04:05 +00:00
Files
xcat-core/xCAT-server/lib/xcat/plugins
Vinícius Ferrão cb6a139286 fix(grub2): anchor the netboot protocol validation regex
noderes.netboot is parsed as grub2-<protocol> and validated with
/^http|tftp$/, which reads as (^http)|(tftp$) and so also accepts values
such as https, httpx and xtftp.

A value that passes but is not exactly "http" then falls through to
set root=$grub2protocol,$serverip, which drops site.httpport, so the mistake
surfaces as a confusing grub2 failure at boot instead of the "Invalid netboot
method" error this check exists to give. grub2-https cannot work in any case,
since only "insmod http" is emitted.

Supported values are unchanged: grub2, grub2-http and grub2-tftp.
2026-07-25 17:28:27 -03:00
..
2018-01-24 03:16:41 -05:00
2017-09-07 15:50:11 -04:00
…
2024-05-07 16:19:25 +02:00
…
2023-01-18 11:00:59 -05:00
…
2026-07-15 00:29:26 -03:00
2024-05-07 16:19:25 +02:00
2024-05-07 16:19:25 +02:00
2024-05-07 16:19:25 +02:00
…
…
2019-10-28 14:33:54 -04:00
2024-05-07 16:19:25 +02:00
…
…
2022-11-29 11:50:18 -05:00
2023-01-18 11:00:59 -05:00
2020-02-02 14:40:24 -05:00
…
2024-04-13 12:36:08 +05:30
…
…
2022-08-15 10:16:22 -04:00
2018-08-21 15:18:12 -04:00
2018-08-21 15:18:12 -04:00