Red Hat Bugzilla – Bug 124696
disklabel script trips on non-existing files
Last modified: 2014-03-16 22:45:42 EDT
Description of problem:
'devlabel' script is using
without checking for their existence but no package
provides these files, even empty, nor even
/etc/sysconfig/devlabel.d. Running 'rpm -ql devlabel | grep etc'
gives only /etc/sysconfig/devlabel
With a use of constructs like:
if [ `grep -c "$1$" $IGNORE_LIST` -gt 0 ]; then
and not even
if [ `grep -c "$1$" $IGNORE_LIST /dev/null` -gt 0 ]; then
comes a flood of error messages like
/sbin/devlabel: line 129: [: -gt: unary operator expected
and multiple "No such file or directory".
Version-Release number of selected component (if applicable):
*** This bug has been marked as a duplicate of 124442 ***
Changed to 'CLOSED' state since 'RESOLVED' has been deprecated.