Sort Fog Image Menu



  • Hello,
    (I hope the question has not been asked before)
    I have added some images, but there are more to come.
    Is it possible to sort the FOG menu? (Categories, headings, groups)
    0_1543862673100_2018-12-03 19_39_00-FISCHER-FS [FS15-EX].png
    Greetings and thanks :)


  • Developer

    @LycaKnight You are missing the parameter initrd=init.xz (kernel bzImage initrd=init_32.xz ...). I am fairly sure this is causing the kernel panic.



  • @Sebastian-Roth Thanks for your answer :)
    I have created an extended menu as in your picture. (For ISOs etc. ) Work great.
    But the Image Fog Menu is created automatically and I do not know how to edit the menu or load images manually (advanced menu).
    I tried your “empty” menu entries, but thie generates a error.

    I found this and tried it, but the image is not loaded correctly:

    :WIN10P-64-UEFI
    kernel bzImage root=/dev/ram0 rw ramdisk_size=127000 ip=dhcp web=${fog-ip}/fog/ consoleblank=0 loglevel=4 type=down img=WIN10P-64-UEFI ftp=${fog-ip} imgType=n imgPartitionType=all osid=5 storage=${fog-ip}:/images/ capone=1
    imgfetch init.xz
    boot ||
    

    The error after loading:
    0_1543867025648_2018-12-03 20_56_00-FISCHER-FS [FS15-EX].png


  • Developer

    @LycaKnight Just guessing here as I have not had a look at the code yet. But from the picture you posted I suppose we do some kind of alphabetical sort on the names. WIN10... comes before WIN7... because a non-numerical sort is used I reckon. I guess you could write your own hook to sort things differently.

    I am sure you can add “empty” menu entries (untested), e.g. using a caption like ------------------------------ to sort of separate different categories.

    Edit: Take a look at this picture! Surely iPXE can do a lot of things… Play with it to see what you can make of it: http://ipxe.org/cmd/menu, http://ipxe.org/cmd/item, http://ipxe.org/cmd/choose


 

521
Online

5.4k
Users

12.6k
Topics

118.7k
Posts