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

Also available in: Atom PDF