Scott Henson <[email protected]> wrote:

>On Fri, 04 Mar 2011 23:59:51 -0800, petermity <[email protected]> 
>wrote:
>> Scott Henson <[email protected]> wrote:
>> 
>> >On Fri, 04 Mar 2011 00:37:23 -0800, petermity <[email protected]> 
>> >wrote:
>> >> When $enable_menu is false for a profile, it would be nice for
>> >> "cobbler profile list" and "cobbler list" to indicate or filter
>> >> out hidden ones.
>> >> 
>> >> It could be indicated by " [hidden]" or an asterisk or something
>> >> following the profile name.
>> >> 
>> >> Or hidden ones could be filtered out, via a settings entry and/or
>> >> a command-line option to override the current setting to show or
>> >> not show them.
>> >
>> >I'm not sure I see the point in this. Could you explain why you want that?
>> 
>> I would like to know what will be listed on the PXE boot menu,
>> without having to actually go to the lab to boot a target, or
>> look at each profile's dumpvars or report to see if it is
>> menu-enabled or not.
>> 
>> Also, it just reduces clutter - you see what's pertinent.
>> 
>> I don't want to delete the default profiles created by import, or
>> some of my test profiles, because they are useful for reference
>> and occasional use.
>
>I see. I would normally suggest using 'cobbler profile find', but that
>doesn't seem to work for some reason. I'll track that down.
>
>As for what you are requesting, it sounds like a decent idea. I don't
>think it would be hard to do. Patches gladly accepted for this.

As an alternate solution, a simple way to view the active entries
in the menu could be implemented.  I did a crude one-line script
as a start:

grep "MENU LABEL" /var/lib/tftpboot/pxelinux.cfg/default  | sed 's/
MENU LABEL//'


Related to this, I've learned more about PXE boot menus.  An
option for each menu entry, at least with menu.c32, within a
LABEL section, is to have a MENU HIDE setting.

For my purposes, it would be better to have $enable_menu put in
or take away the MENU HIDE line.  That way, little-used profiles
are not cluttering up the menu, yet are still present so can be
selected by typing in their name.

Perhaps this won't work for others - if so, maybe a separate
$hide_menu could be added.


_______________________________________________
cobbler mailing list
[email protected]
https://fedorahosted.org/mailman/listinfo/cobbler

Reply via email to