Fog 1.3 PXE Menu Entry for System Rescue CD



  • I’ve recently got this working on my server figured I would share. For informational purposes I’ve extracted the following files to /var/www/html/srcd

    initram.igz
    rescue64
    sysrcd.dat
    sysrcd.md5
    

    My menu entry is as follows
    0_1471550955307_upload-dee3dbb3-49f6-4918-9cbd-270ceb46ede0



  • @LibraryMark Look at this.

    http://ipxe.org/cmd/login

    Also, I have hidden menu turned on, and the iPXE code for the password screen looks like tis:

    :menuAccess
    login
    params
    param mac0 ${net0/mac}
    param arch ${arch}
    param platform ${platform}
    param username ${username}
    param password ${password}
    param menuaccess 1
    param debug 1
    isset ${net1/mac} && param mac1 ${net1/mac} || goto bootme
    isset ${net2/mac} && param mac2 ${net2/mac} || goto bootme
    :bootme
    chain -ar http://10.2.1.11/fog/service/ipxe/boot.php##params
    

    So if you look at the above, it collects a username and password on the login screen.
    Then, it chains to boot.php and passes the parameters. The web server validates the credentials and if they are good, it provides the full menu via the chaining.

    On ipxe.org they give a basic example of verifying the parameters using PHP:
    http://forum.ipxe.org/showthread.php?tid=5435


  • Senior Developer

    @LibraryMark While not a perfect solution, you can create the menu item under “advanced menu” options.

    From there, just define advanced to be password protected. This might do more what you’re looking to do (though it’s any advanced item will be password protected.



  • @Wayne-Workman
    Thanks, Wayne. That does work and I have it running like that now. What I was wanting to do is add the extra items to a separate (password-protected) menu.



  • @LibraryMark If you choose to “hide” the boot menu, everything is then password protected.
    Web Interface -> FOG Configuration -> iPXE Boot Menu -> Hide Menu

    What this does is it displays a key combination (that you can choose) on screen to access the menu. When you press this key combination, you’re immediately asked to authenticate. Once successfully authenticated then you can use the menu as normal.



  • What steps would to take to password-protect this? I added it to my menu and discovered that the little creeps in the library I look after have been messing with it. I am going to need some step-by-step instructions I guess. I tried using the wiki and what I could find here, but I can’t seem to get the menu to work right. In the older version of fog (0.32) it was easy. I am sure it is with 1.3, too, but I must be missing a step somewhere.





  • wiki worthy



  • @Wayne-Workman
    I’ve just downloaded, extracted, uploaded and successfully booted from the most current release of SRCD.
    That is version 4.8.1 with absolutely NO MODIFICATIONS to the posted boot menu. So the above works flawlessly.



  • It’s a nice collection of utilities I’ve used in the past to do many things I can’t do. It’s a fairly lightweight OS too all told weighing in at around 364MB. For what it allows it’s really powerful. I will try to update this with the latest one, but it does work perfectly fine otherwise.



  • @Wayne-Workman
    It’s version 2.4.1

    https://www.system-rescue-cd.org/SystemRescueCd_Homepage

    Here is the description of what it is/does.

    About SystemRescueCd
    Description: SystemRescueCd is a Linux system rescue disk available as a bootable CD-ROM or USB stick for administrating or repairing your system and data after a crash. It aims to provide an easy way to carry out admin tasks on your computer, such as creating and editing the hard disk partitions. It comes with a lot of linux software such as system tools (parted, partimage, fstools, …) and basic tools (editors, midnight commander, network tools). It can be used for both Linux and windows computers, and on desktops as well as servers. This rescue system requires no installation as it can be booted from a CD/DVD drive or USB stick, but it can be installed on the hard disk if you wish. The kernel supports all important file systems (ext2/ext3/ext4, reiserfs, btrfs, xfs, jfs, vfat, ntfs), as well as network filesystems (samba and nfs)



  • system rescue cd for what? who makes it? And the most important question - what version? And thank you for sharing! :-)


 

322
Online

41.4k
Users

11.8k
Topics

112.2k
Posts