[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.

layout/save/default/31_autoexclude_usb.sh
local usb_mntpt=$(egrep "^$REAL_USB_DEVICE " /proc/mounts | cut -d" " 
-f2 | tail -1)

output/USB/Linux-i386/30_create_extlinux.sh
strings $file | egrep -m1 "^EXTLINUX |^SYSLINUX " | cut -d' ' -f2

output/USB/Linux-i386/85_make_USB_bootable.sh
usb_filesystem=$(egrep "^$USB_DEVICE|^$REAL_USB_DEVICE" /proc/mounts | 
cut -d' ' -f3 | tail -1)

prep/USB/Linux-i386/35_check_usb_disk.sh
StopIfError "USB device '$USB_DEVICE' is already mounted on $(egrep 
"^$REAL_USB_DEVICE " /proc/mounts | cut -d' ' -f2 |tail -1)"

Enjoy!
Larry

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