RHVER=awk '{for(i=1;i<=NF;i++) if ($i == "release") print $(i+1)}' /etc/redhat-release | cut -d. -f 1;
Solve problem
RHVER=awk '{for(i=1;i<=NF;i++) if ($i == "release") print $(i+1)}' /etc/redhat-release | cut -d. -f 1;
Solve problem
undionly.kkpxe or ipxe.efi don’t work
realtek.kpxe work
** WARNING: /etc/exports still exports with no_root_squash.
** Captures land as root, so moving the image out of
** /images/dev fails with ‘550 Rename failed’.
** Replace the /images/dev export options with:
** all_squash,anonuid=1002,anongid=1002
Fixed problem

:MENU2
menu
item --gap – ---------------- AntiVirus Diagnostics ----------
item avg AVG
item kav Kaspersky
item panda Panda
item --gap – ---------------- Memory Diagnostics -------------
item memtest Memtest86+ 5.01
item msm Windows Memory Diagnostic
item --gap – ---------------- HDD Diagnostics ----------------
item fujitsu Fujitsu HDD Diagnostic
item ibm IBM / Hitachi (OLD) HDD Diagnostic
item samsung Samsung HDD Diagnostic
item seagate Seagate HDD Diagnostic
item seagateold Seagate Old HDD Diagnostic
item seagatefirm Seagate HDD Firmware Diagnostic
item seagatens Seagate HDD Barracuda ES Firmware Diagnostic
item toshiba Toshiba HDD Diagnostic
item wd Western Digital HDD Diagnostic
item wdold Western Digital Old HDD Diagnostic
item --gap – ---------------- Partition Managment --------------
item mbrwizd MBR Rewrite
item fog.fastwipe FastWipe
item gparted GParted
item src System Rescue
item --gap – ---------------- Password Recovery ----------------
item owpre Offline Windows Password & Registry Editor
item return return to previous menu
choose --default return --timeout 15000 target && goto ${target}
:wd
initrd http://${fog-ip}/IMG/wd.img
chain memdisk keeppxe ||
goto MENU2
:wdold
initrd http://${fog-ip}/ISO/wdold.img
chain memdisk raw keeppxe ||
goto MENU2
:ibm
initrd http://${fog-ip}/IMG/ibm.img
chain memdisk keeppxe ||
goto MENU2
:seagate
initrd http://${fog-ip}/IMG/seagate.img
chain memdisk keeppxe ||
goto MENU2
:seagateold
initrd http://${fog-ip}/IMG/seagateold.img
chain memdisk keeppxe ||
goto MENU2
:seagatefirm
initrd http://${fog-ip}/ISO/SeagateFirmware.iso
chain memdisk iso raw ||
goto MENU2
:seagatens
initrd http://${fog-ip}/ISO/ST31000340NS.iso
chain memdisk iso raw ||
goto MENU2
:samsung
initrd http://${fog-ip}/IMG/samsung.img
chain memdisk keeppxe ||
goto MENU2
:fujitsu
initrd http://${fog-ip}/IMG/fujitsu.img
chain memdisk keeppxe ||
goto MENU2
:toshiba
initrd http://${fog-ip}/IMG/toshiba.img
chain memdisk keeppxe ||
goto MENU2
:memtest
initrd http://${fog-ip}/ISO/mt501.iso
chain memdisk iso raw ||
goto MENU2
:msm
initrd http://${fog-ip}/IMG/msm.img
chain memdisk keeppxe ||
goto MENU2
:fog.fastwipe
kernel bzImage32 loglevel=4 initrd=init_32.xz root=/dev/ram0 rw ramdisk_size=127000 keymap= web=${fog-ip}/fog consoleblank=0 loglevel=4 capone=1 mode=wipe wipemode=fast mac=00:00:00:00:00:00
imgfetch init_32.xz
boot ||
goto MENU2
:gparted
kernel http://${fog-ip}/ISO/Gparted/vmlinuz boot=live username=user config keyboard-layouts=us components quiet noswap nomodeset vga=791 fetch=http://${fog-ip}/ISO/Gparted/filesystem.squashfs
initrd http://${fog-ip}/ISO/Gparted/initrd.img
boot ||
goto MENU2
:src
kernel http://${fog-ip}/ISO/SRC/rescue32 setkmap=us dostartx netboot=http://${fog-ip}/ISO/SRC/sysrcd.dat
initrd http://${fog-ip}/ISO/SRC/initram.igz
boot ||
goto MENU2
:mbrwizd
initrd http://${fog-ip}/IMG/mbrwizd.img
chain memdisk keeppxe ||
goto MENU2
:kav
kernel http://${fog-ip}/ISO/KAV/rescue root=live kav_lang=en udev liveimg doscsi nomodeset
initrd http://${fog-ip}/ISO/KAV/rescue.igz
boot ||
goto MENU2
:avg
kernel http://${fog-ip}/ISO/AVG/vmlinuz max_loop=255 vga=791 init=linuxrc reboot=bios ramdisk_size=100000
initrd http://${fog-ip}/ISO/AVG/initrd.lzm
boot ||
goto MENU2
:panda
kernel http://${fog-ip}/ISO/Panda/vmlinuz boot=live union=aufs noswap fetch=http://${fog-ip}/ISO/Panda/filesystem.squashfs
initrd http://${fog-ip}/ISO/Panda/initrd.img
boot ||
goto MENU2
:owpre
initrd http://${fog-ip}/ISO/cd140201.iso
chain memdisk iso raw ||
goto MENU2
:return
chain http://${fog-ip}/${fog-webroot}/service/ipxe/boot.php?mac=${net0/mac} ||
prompt
goto MENU2
autoboot
@Tom-Elliott
Subject: PHP Compatibility — Minimum Version, Latest Tested Version, and PHP 8.6 Feedback
Hi Tom,
Thank you for implementing the PHP pre-installation checks in PR #2154 and addressing the issue discussed in forum topic #18333.
I have one additional suggestion regarding PHP compatibility, especially with newly released PHP versions.
We are currently running FOG with PHP 8.6, and so far the main FOG functions appear to be working correctly.
We have not encountered any obvious compatibility problems during normal use.
However, I would not consider this a complete compatibility test, since we have not systematically verified every FOG feature, plugin, and background operation.
I noticed that FOG currently requires PHP 7.4 or newer.
The new installer checks the minimum version and ensures that matching PHP CLI and PHP-FPM versions are available.
However, there is currently no upper compatibility boundary.
For example, PHP 8.6 passes the minimum-version check even though it may not yet have been fully tested with FOG.
I also checked the current GitHub Actions configuration and noticed that automated PHP tests run on PHP 7.4 and 8.3, while PHPStan currently analyzes the PHP 7.4–8.3 range.
This raises a question:
How can administrators determine which is the latest PHP version officially tested and verified with FOG?
Would it be possible to maintain a small PHP compatibility matrix for the current FOG release and development branch?
For example:
PHP Version Compatibility
PHP 7.4 Minimum required
PHP 8.3 Tested in CI
PHP 8.4 Verification needed
PHP 8.5 Verification needed
PHP 8.6 Basic functionality working in our environment; full verification pending
Ideally, the status should be generated from actual automated test results rather than maintained manually.
Could the existing CI workflow be extended to test newer PHP versions?
For example:
It would also be useful to test PHP-FPM and the extensions required by FOG, not only PHP CLI.
This would help identify compatibility issues early when a new PHP release becomes available.
Another useful improvement would be for the installer to display:
FOG PHP Compatibility Check
Installed PHP: 8.6.0
Minimum required PHP: 7.4
Latest verified PHP: 8.x
PHP version check: PASSED
Compatibility status: Not yet fully verified
The Latest verified PHP value should come from maintained compatibility information backed by successful tests.
If the installed PHP version is newer than the latest verified version, I would suggest displaying a warning rather than blocking the installation.
This would be particularly useful on distributions that ship newer PHP versions before FOG’s CI matrix has been updated.
Perhaps FOG could maintain a machine-readable compatibility file containing:
The installer could use this information to provide accurate guidance without requiring administrators to search GitHub issues or forum posts.
My goal is not to introduce an arbitrary maximum PHP version or prevent users from running newer versions.
Instead, I would like FOG to distinguish between:
Since PHP 8.6 is already working for our main FOG operations, it would be useful to include it in the official compatibility testing matrix.
Would you consider adding newer PHP releases to CI and providing administrators with an indication of the latest verified version?
Thank you again for your work on FOG and the recent improvements!
Hi Tom,
I would like to suggest an improvement to the existing SSH functionality in FOS Debug Mode.
While working on IPv6 PXE, NFS, and multicast troubleshooting, I frequently need remote SSH access to physical computers running FOS Debug tasks.
I checked the FOS source code and confirmed that OpenSSH Server is already included.
The current sshd_config contains:
PermitRootLogin yes
PasswordAuthentication yes
Therefore, there is no need to install or implement another SSH server.
The actual problem is that the root account does not have a known, usable password for remote login.
Currently, after starting a Debug Deploy or Debug Capture task, I have to physically visit the computer, set a password using passwd, and only then connect remotely.
This becomes especially inconvenient when troubleshooting multiple computers.
Could FOG automatically configure root SSH authentication when a FOS Debug task starts?
For example, in my isolated FOG Mobile testing environment, I would like to connect using:
Immediately after the computer enters Debug Mode, I should be able to connect using:
Or over IPv6:
ssh root@fd71:6a85:f038:1::100
Without needing physical access to the computer.
My suggestion is to introduce a small section under:
FOG Configuration → FOG Settings → Debug Settings
For example:
Setting Description
FOG_DEBUG_SSH_ENABLED Enable SSH access for Debug tasks
FOG_DEBUG_SSH_PASSWORD_ENABLED Allow password authentication for root during Debug tasks
FOG_DEBUG_SSH_PASSWORD Administrator-configured Debug password
FOG_DEBUG_SSH_AUTHORIZED_KEYS Optional SSH public keys for key-based authentication
I would suggest keeping password authentication disabled by default and allowing administrators to enable it explicitly.
It would also be useful to allow a per-task override when launching Debug Deploy or Debug Capture.
When a computer starts a Debug task, FOS could:
The administrator would not need to run passwd manually or modify the FOS init image.
I understand that automatically enabling root SSH access requires appropriate security controls.
My suggestions are:
For my isolated laboratory, a configurable shared password would be convenient, but a per-task password or an SSH key would be preferable for production environments.
The ideal administrator workflow would be:
No physical visit and no manual password configuration would be required.
This would be particularly helpful for investigating:
It would significantly simplify troubleshooting when testing many physical computers simultaneously.
Final suggestion
My preferred implementation would be:
Reuse the existing OpenSSH server, enable root SSH authentication automatically for Debug tasks, and make the authentication method configurable through FOG Settings.
For an initial implementation, even a simple opt-in setting such as FOG_DEBUG_SSH_PASSWORD_ENABLED, combined with a configurable password delivered securely to FOS, would already be extremely useful.
SSH public keys and automatically generated per-task credentials could provide additional flexibility.
Would you consider adding this feature to FOS and FOG Server?
Thank you again for your continued work on FOG and IPv6 support!
Hello,
I would like to suggest improving PHP version compatibility checks during FOG installation and upgrades, especially when updating to the latest dev-branch.
On several occasions after upgrading FOG development versions, I experienced issues such as:
Not all of these errors were necessarily caused by an outdated PHP version, but better compatibility checks would help prevent and diagnose them.
Suggested improvements:
Example warning:
FOG PHP Compatibility Check
Installed PHP: 8.x
Minimum PHP required: X.Y
Status: Upgrade blocked
Please upgrade PHP before continuing.
It would also be useful to display the required PHP version in the installer summary and documentation.
The goal is to prevent situations where FOG reports “Setup complete” but the Management Portal or newly introduced functionality fails afterward.
Could this improvement be considered for a future FOG 1.6 dev-branch update?
Thank you for your continued work on FOG Project!
Is full IPv6 PXE boot and imaging support planned for FOG 1.6, including automatic Kea DHCPv6 configuration, or is DHCPv6 currently outside the supported FOG networking model?
Hi,
I would like to suggest an improvement to FOG 1.6 regarding Storage Node IP address management.
Currently, when the IP address of a FOG server changes, the new server IP can be detected by the installer, but the existing Storage Node IP address in the FOG database may still need to be updated manually through Storage Management.
Could you please add an optional setting to /opt/fog/.fogsettings, for example:
STORAGE_node_ip=‘192.0.2.10’
The name above is only a proposal, not an existing configuration option.
Suggested behavior:
For a Normal FOG Server, it would also be useful to offer an option to synchronize the primary Storage Node address with NET_fog_server_ip.
This would simplify IP changes, server migrations, and reinstallations, especially when the web interface is not yet accessible.
Could this feature be considered for a future FOG 1.6 dev-branch update?
Hi,
During a fresh installation of the latest FOG dev-branch on Oracle Linux 10.3 (x86_64), I encountered the following error:
./installfog.sh: line 801: lsb_release: command not found
The installer attempts to execute lsb_release, but the utility is not installed by default.
The installation continues and eventually reports “Setup complete”.
Workaround:
The required package is lsb_release, available through EPEL 10.
sudo dnf install -y oracle-epel-release-el10
sudo dnf makecache
sudo dnf install -y lsb_release
Verify:
command -v lsb_release
lsb_release -a
Suggested improvements:
Could you please update the FOG installer to handle this automatically on Oracle Linux 10 and other RHEL-compatible distributions?
I encountered Secure Boot signing failures when installing/upgrading FOG 1.6.0.127 (dev-branch) on Oracle Linux 8 x86_64.
I was able to resolve the installer signing failures using compatible RPM packages from AlmaLinux 8 and Rocky Linux 8.
Below is the step-by-step solution, including the verified results.
sudo dnf config-manager --set-enabled ol8_codeready_builder
sudo dnf makecache
This repository provides additional development dependencies.
The default Oracle Linux 8 repositories did not provide efitools.
The FOG installer originally reported:
Building efitools (no package for this distro)........Failed
Publishing Secure Boot variable updates..............Skipped
I used the compatible AlmaLinux 8.10 RPM:
Package: efitools-1.9.2-9.el8.x86_64
Package information:
https://almalinux.pkgs.org/8/almalinux-devel-x86_64/efitools-1.9.2-9.el8.x86_64.rpm.html
Download:
curl -fL -o efitools-1.9.2-9.el8.x86_64.rpm \
https://ftp.ucsb.edu/almalinux/8.10/devel/x86_64/os/Packages/efitools-1.9.2-9.el8.x86_64.rpm
Verify the RPM’s provenance, signature and dependencies using the trusted AlmaLinux signing key before installing. Do not disable signature verification.
Install:
sudo dnf install ./efitools-1.9.2-9.el8.x86_64.rpm
Verify:
rpm -q efitools
command -v cert-to-efi-sig-list
command -v sign-efi-sig-list
command -v efi-readvar
Confirmed installed version:
efitools-1.9.2-9.el8.x86_64
After installation, the FOG installer recognized the package and successfully generated Secure Boot variable updates.
Oracle Linux 8 / EPEL initially provided:
sbsigntools-0.9.2-1.el8.x86_64
This version does not support the --addcert option required by the current FOG Secure Boot signing implementation.
The installer repeatedly failed with:
sbsign: unrecognized option '--addcert'
This caused failures signing FOS kernels, Memtest86+, rEFInd and iPXE binaries.
I used the Rocky Linux 8 Core SIG RPM:
Package: sbsigntools-0.9.5-2.el8.core.x86_64
Download:
curl -fL -o sbsigntools-0.9.5-2.el8.core.x86_64.rpm \
https://dl.rockylinux.org/pub/sig/8/core/x86_64/core-infra/Packages/s/sbsigntools-0.9.5-2.el8.core.x86_64.rpm
Verify the package signature and trust the appropriate Rocky Linux signing key through an independently verified source. Review the DNF transaction before installation.
Install:
sudo dnf install ./sbsigntools-0.9.5-2.el8.core.x86_64.rpm
Verify:
rpm -q sbsigntools
command -v sbsign
sbsign --help 2>&1 | grep -- '--addcert'
Confirmed result:
sbsigntools-0.9.5-2.el8.core.x86_64
/usr/bin/sbsign
--addcert <addcertfile> additional intermediate certificates in a file
The --addcert option is important because FOG uses it to include an intermediate signing certificate in the EFI signature.
Simply removing this argument from the FOG source would not be an equivalent fix.
With both compatible packages installed:
cd /root/fogproject-dev-branch/bin
sudo ./installfog.sh -y
The installer updates services and configuration, so this should be performed during a maintenance window, without active imaging tasks.
After upgrading both packages, the installer reported:
Signing FOS kernels and Memtest86+ for Secure Boot..........Done
Publishing Secure Boot variable updates.....................Done
Signing rEFInd for Secure Boot..............................Done
Signing iPXE binaries for Secure Boot.......................Done (18)
Setup complete
All previously failing signing stages completed successfully.
Check the installed package versions:
rpm -q efitools sbsigntools
Confirmed:
efitools-1.9.2-9.el8.x86_64
sbsigntools-0.9.5-2.el8.core.x86_64
Inspect EFI signatures:
sbverify --list /var/www/html/fog/service/ipxe/bzImage
sbverify --list /tftpboot/snponly.efi
Both commands identified signatures containing the FOG Project Secure Boot Signing certificate.
Note that sbverify --list confirms the presence of signatures, not firmware trust. A certificate-specific verification and a real Secure Boot client boot test are still required for complete end-to-end validation.
efitools is available in the distribution’s repositories before attempting a source build.efitools package or provide a reliable source-build fallback.sbsign supports --addcert before starting Secure Boot signing.sbsigntools version lacks the required option.sbsigntools version for RHEL-compatible distributions.Resolved at the installer/signing stage on Oracle Linux 8 with FOG 1.6.0.127.
The complete Secure Boot signing process now reports success, and the inspected binaries contain signatures.
Actual client boot testing with Secure Boot enabled remains pending.
I hope this helps other Oracle Linux 8, RHEL 8, AlmaLinux 8 and Rocky Linux 8 users encountering similar issues.
Thank you to the FOG Project developers!
FOG version: 1.6.0.127 (dev-branch)
OS: Oracle Linux 8 x86_64
Installed sbsigntools: 0.9.2-1.el8
Component: Installer / Secure Boot signing
I have identified the specific reason for the Secure Boot signing failures on Oracle Linux 8.
The distribution provides sbsigntools-0.9.2-1.el8.x86_64 from EPEL.
This version does not support sbsign --addcert.
During the installation, FOG repeatedly reports:
sbsign: unrecognized option '--addcert'
As a result, three signing stages fail:
Signing FOS kernels and Memtest86+ for Secure Boot...Failed
Signing rEFInd for Secure Boot...Failed
Signing iPXE binaries for Secure Boot...Failed
I found that FOG uses --addcert in lib/common/functions.sh and packages/secureboot/fog-sign-kernel.
I understand that the option is used to embed the intermediate signing certificate, so simply removing it may break certificate-chain verification.
The installed Secure Boot key directory contains MOK, PK and KEK key/certificate files. However, I have not yet verified the complete signing-certificate chain.
Oracle Linux 8 repositories did not provide efitools.
I manually installed the compatible AlmaLinux 8 RPM:
efitools-1.9.2-9.el8.x86_64
After that, FOG successfully completed:
Checking package: efitools...OK
Publishing Secure Boot variable updates...Done
sbsign --addcert support before attempting Secure Boot signing.sbsigntools lacks the required functionality.efitools is not available through native repositories.Could you clarify the minimum supported sbsigntools version and the recommended installation method for Oracle Linux 8?
Thank you.
FOG version: 1.6.0.127 (dev-branch)
Operating system: Oracle Linux 8 x86_64
Component: Installer / Secure Boot
Hello FOG developers,
I encountered several Secure Boot installation issues while upgrading FOG on Oracle Linux 8.
The installer initially reported:
Skipping package: efitools (Does not exist)
Building efitools (no package for this distro)...Failed
efitools 1.9.2 did not build
Publishing Secure Boot variable updates...Skipped
The Oracle Linux 8 CodeReady Builder repository was enabled, but dnf install efitools and dnf repoquery --available '*efitools*' returned no matching package.
I found the following EL8-compatible RPM:
efitools-1.9.2-9.el8.x86_64
Source: AlmaLinux 8.10 Devel repository.
https://almalinux.pkgs.org/8/almalinux-devel-x86_64/efitools-1.9.2-9.el8.x86_64.rpm.html
After manually installing this RPM, the next FOG installation completed the previously failing step:
Skipping package: efitools (Already Installed)
Checking package: efitools...OK
Publishing Secure Boot variable updates...Done
This confirms that FOG recognizes the manually installed package.
Could the installer improve its handling of efitools on Oracle Linux 8, including checking for an existing compatible installation and providing more useful diagnostics when building from source fails?
Even after resolving the efitools issue, the installer continues to report:
Signing FOS kernels and Memtest86+ for Secure Boot...Failed
Signing rEFInd for Secure Boot...Failed
Signing iPXE binaries for Secure Boot...Failed
The installer also reports that no Secure Boot CA is available on the server.
The overall installation finishes with Setup complete, but the Secure Boot signing stages remain unsuccessful.
The exact compiler and signing error output has not yet been analyzed, so I cannot confirm whether these failures share a common root cause.
Thank you for your work on FOG Project.