Bug #5539
closedrc.firmware - cut does not cut it...
0%
Description
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:
"mirror/pfSenseMirrors1a"
the last "/usr/bin/cut" will return"
"pfSen"
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
Updated by m figley over 8 years ago
oops, the first line should read:
extraction of BOOT_DRIVE is incorrect:
Updated by m figley over 8 years ago
This same situation can be seen on the status page as well when reporting boot sources.
Updated by m figley over 8 years ago
error also occurs here:
/etc/inc/pfsense-utils.inc:2215
Updated by m figley over 8 years ago
Also, error seems to persist in master, just a different location:
/etc/inc/pfsense-utils.inc:2188
Updated by Jim Thompson about 8 years ago
- 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 about 7 years ago
/etc/rc.firmware and all the related code is gone from 2.4. Irrelevant bug.