Bug #8065
closedA manually configured filesystem layout with a separate /usr fails to properly setup several aspects of the system at boot time
100%
Description
Choosing a manual installation with a separate /usr slice (ex: boot, /, /usr, /var, swap) fails to setup various aspects of the firewall. Early in the boot process at source:src/etc/pfSense-rc#L55 an attempt is made to read the product name using a PHP script. PHP is under /usr, which is not mounted at that time. As such, the product name is empty which causes several other parts of pfSense-rc to misfire.
It does not appear to be necessary to read the product name that early. The first thing that needs it is a call to configure ddb, and nothing else until after the disk/slices are all mounted. DDB does not need to be setup that early.
Moving the read of the product name and the call to configure ddb to just after the mount block appears to fix it, as in the attached patch. The patch works for me on test systems here, but I'd like a little more internal review before committing it.
Files