-
Notifications
You must be signed in to change notification settings - Fork 226
PXE & iPXE configs in :tftp_root/host_config directory #923
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PXE & iPXE configs in :tftp_root/host_config directory #923
Conversation
f9728a2 to
f32346f
Compare
|
With the current implementation, the config files are duplicated. Thinking about changing it into symlinks pointing to the default directories ( |
|
Test failures are related to changes; I will address them once the decision on unifying the approach is made. |
|
Also @goarsna |
|
Why are we doing this? So technically it's unnecessary to store them in the host specific locations. AFAIK GRUB2 is the only bootloader reading it's origin from EFI firmware in order to use it for fetching its configuration files. For iPXE I would need to have a look, PXE is legacy BIOS so it must be hardcoded. However, from the user's point of view and consistency may make sense to have all bootloader configurations together in one place for one specific host. But then it should be definitely symlinks so that there is only one source of truth. |
To centralize configs in one place for each host.
Yeah, I was thinking about it during the weekend, and I also think it should be done via symlinks. |
f32346f to
ebf7e71
Compare
|
Updated, now it creates symlinks (relative paths) to the configs. |
94b38f1 to
bc06df2
Compare
|
@evgeni the CI is 🍏
|
|
Maybe I am a bit late to the party, but creating symlinks that are not really used by the bootloaders feels a bit overwhelming. I would prefer leaving only "functional" files. The only links that make sense for me are those that link synonyms - for example if we want the same file to be served for |
This was the exact issue for me when I came back to the feature, but the opposite direction. I was "annoyed" that some configs are in the host_config directory, and some are not. |
Understood. But I agree with @stejskalleos and I also like the idea of having one place for all. Depending on how you work/debug there is also the minimal benefit of choosing the correct host by MAC once (cd into it) and then you can simply edit the loader configuration you are interested in. ATM you always need to provide/know the MAC address for every single file you want to edit. If a user wants to explicitly modify something he can do so and it will always be applied due to sym-linking - independently of the location (that's currently not true for GRUB2 and need to be fixed!). If a user is interested in the boot flow we maybe should explain in one two sentences how its actually working (=which paths are involved) and why we do this. |
Well, the general answer here is that we depend on the bootloader and configuration (e.g. DHCP bootfileurl option) here. If the bootloader expects a specific folder structure, we will have to have it in our TFTP folder.
Since this PR fixes the functional part of the requirement (as you have mentioned) I have no objections to merging it. Having an extra symling doesn't feel as too much, especially if it helps even a smalll group of sysadmins. |
|
@stejskalleos One question: why don't you also link the grub.cfg* files? |
Create symlinks to PXE & iPXE configs in the host_config directory, the same way as it is done for Grub2.
bc06df2 to
319b615
Compare
|
Updated, now every config is linked to the original one. |
|
Merged, thanks @stejskalleos ! |


Before
After