Project

General

Profile

Bug #5539

rc.firmware - cut does not cut it...

Added by m figley over 1 year ago. Updated 2 months ago.

Status:
Resolved
Priority:
Normal
Category:
Upgrade
Target version:
Start date:
11/25/2015
Due date:
% Done:

0%

Affected version:
2.2.4
Affected Architecture:
i386

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

History

#1 Updated by m figley over 1 year ago

oops, the first line should read:

extraction of BOOT_DRIVE is incorrect:

#2 Updated by m figley over 1 year ago

This same situation can be seen on the status page as well when reporting boot sources.

#3 Updated by m figley over 1 year ago

error also occurs here:

/etc/inc/pfsense-utils.inc:2215

#4 Updated by m figley over 1 year ago

Also, error seems to persist in master, just a different location:

/etc/inc/pfsense-utils.inc:2188

#5 Updated by Jim Thompson about 1 year ago

  • Assignee set to Renato Botelho
  • Priority changed from High to Normal

assigned to Renato for eval (maybe we already fixed this?)

#6 Updated by Kill Bill 2 months ago

/etc/rc.firmware and all the related code is gone from 2.4. Irrelevant bug.

#7 Updated by Jim Pingle 2 months ago

  • Status changed from New to Resolved

Also available in: Atom PDF