Project

General

Profile

Actions

Bug #5539

closed

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

Added by m figley over 8 years ago. Updated over 4 years ago.

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

0%

Estimated time:
Plus Target Version:
Release Notes:
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

Actions #1

Updated by m figley over 8 years ago

oops, the first line should read:

extraction of BOOT_DRIVE is incorrect:

Actions #2

Updated by m figley over 8 years ago

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

Actions #3

Updated by m figley over 8 years ago

error also occurs here:

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

Actions #4

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

Actions #5

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?)

Actions #6

Updated by Kill Bill about 7 years ago

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

Actions #7

Updated by Jim Pingle about 7 years ago

  • Status changed from New to Resolved
Actions #8

Updated by Jim Pingle over 4 years ago

  • Target version deleted (Future)
Actions

Also available in: Atom PDF