[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 2/2] Search for specific config file when it boots from tftp
From: |
Paulo Flabiano Smorigo/Brazil/IBM |
Subject: |
[PATCH 2/2] Search for specific config file when it boots from tftp |
Date: |
Tue, 14 Aug 2012 08:57:05 -0400 |
User-agent: |
Internet Messaging Program (IMP) H4 (5.0.22) |
Hi all,
This patch implements a search for a specific configuration (based on
MAC or IP) when the config file is on the tftp server. He uses the
following order:
1) By MAC address (in lower case hexadecimal with dash separators);
2) By IP (in upper case hexadecimal). It removes one hex digit
from the end and try again;
3) The original grub.cfg file.
For example, MAC address e4:1f:13:f4:ad:c2 and IP 192.168.1.100 (C0A80164):
(tftp,192.168.1.1)//boot/grub/grub.cfg-01-e4-1f-13-f4-ad-c2
(tftp,192.168.1.1)//boot/grub/grub.cfg-C0A80164
(tftp,192.168.1.1)//boot/grub/grub.cfg-C0A8016
(tftp,192.168.1.1)//boot/grub/grub.cfg-C0A801
(tftp,192.168.1.1)//boot/grub/grub.cfg-C0A80
(tftp,192.168.1.1)//boot/grub/grub.cfg-C0A8
(tftp,192.168.1.1)//boot/grub/grub.cfg-C0A
(tftp,192.168.1.1)//boot/grub/grub.cfg-C0
(tftp,192.168.1.1)//boot/grub/grub.cfg-C
(tftp,192.168.1.1)//boot/grub/grub.cfg
This procedure is similar to what is used by pxelinux and yaboot:
http://www.syslinux.org/wiki/index.php/PXELINUX#config
--
Paulo Flabiano Smorigo
Software Engineer
Linux Technology Center - IBM Systems & Technology Group
freenode/bluenet: pfsmorigo or smow
search_configfile.patch
Description: Text Data
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [PATCH 2/2] Search for specific config file when it boots from tftp,
Paulo Flabiano Smorigo/Brazil/IBM <=