[rear-users] Running rear 1.17.2 on Debian Etch

Larry Irwin (work) larry.irwin at ccamedical.com
Fri Dec 11 21:45:31 CET 2015

Hi All,

With OUTPUT=USB using rear 1.17.2 on Debian Etch:

Making a rescue disk fails due to grep not having a "-P" option.
egrep can be used, though the -P option there isn't working properly, so 
the search content has to change from perl to shell.

The following four entries utilized grep -P and have my suggested use of 
egrep and shell regexp as a substitute.

local usb_mntpt=$(egrep "^$REAL_USB_DEVICE " /proc/mounts | cut -d" " 
-f2 | tail -1)

strings $file | egrep -m1 "^EXTLINUX |^SYSLINUX " | cut -d' ' -f2

usb_filesystem=$(egrep "^$USB_DEVICE|^$REAL_USB_DEVICE" /proc/mounts | 
cut -d' ' -f3 | tail -1)

StopIfError "USB device '$USB_DEVICE' is already mounted on $(egrep 
"^$REAL_USB_DEVICE " /proc/mounts | cut -d' ' -f2 |tail -1)"


Larry Irwin
V.P. Development
CCA Medical
Ph: 864-233-2700 ext 225
Fax: 864-271-1755
Cell: 864-525-1322
Email: larry.irwin at ccamedical.com

More information about the rear-users mailing list