rc.firmware - cut does not cut it...
extraction of BOOT_DEVICE is incorrect:
BOOT_DRIVE=`/sbin/glabel list | /usr/bin/grep -B2 ufs/pfsense | /usr/bin/head -n 1 | /usr/bin/cut -f3 -d' ' | /usr/bin/cut -d's' -f1`
with an input of:
the last "/usr/bin/cut" will return"
instead of "pfSense", since is starts cutting on the first "s" in "pfSense".
I replaced with the last /usr/bin/cut with:
/usr/bin/sed -e 's|s[0-9].*$||'
and it seems to work
oops, the first line should read:
extraction of BOOT_DRIVE is incorrect:
This same situation can be seen on the status page as well when reporting boot sources.
error also occurs here:
Also, error seems to persist in master, just a different location:
- Assignee set to Renato Botelho
- Priority changed from High to Normal
assigned to Renato for eval (maybe we already fixed this?)
Updated by Kill Bill 11 months ago
/etc/rc.firmware and all the related code is gone from 2.4. Irrelevant bug.
- Status changed from New to Resolved
Also available in: Atom