casper uses grep -E but should use egrep instead (BusyBox)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
casper (Ubuntu) |
Fix Released
|
Undecided
|
Colin Watson |
Bug Description
Binary package hint: casper
Ubuntu 9.10 casper 1.206 uses grep -E which is misuse under BusyBox v1.13.3 (Ubuntu 1:1.13.3-1ubuntu7).
Under BusyBox the correct syntax is "egrep"
egrep -r 'grep -.?E ' *
casper: if /lib/udev/path_id "${sysfs_path}" | grep -E -q "ID_PATH=
casper: for sysblock in $(echo /sys/block/* | tr ' ' '\n' | grep -vE "/(loop|ram|fd)"); do
casper-
This misuse is within casper:
The result is filters that don't filter anything with many useless tries:
For instance
grep 'get_fstype /dev/ram' /var/log/casper.log | wc -l
gives 96.
In many case it doesn't hurt, but in some special cases it a potential slow-downer worth getting rid of.
Replacing "grep -vE" with egrep -v" solves the issue.
Philippe Lelédy
Thanks - I've fixed this for version 1.217.