Bug 124696 - disklabel script trips on non-existing files
Summary: disklabel script trips on non-existing files
Status: CLOSED DUPLICATE of bug 124442
Alias: None
Product: Fedora
Classification: Fedora
Component: devlabel
Version: rawhide
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Bill Nottingham
QA Contact:
URL:
Whiteboard:
Keywords:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2004-05-28 16:03 UTC by Michal Jaegermann
Modified: 2014-03-17 02:45 UTC (History)
1 user (show)

(edit)
Clone Of:
(edit)
Last Closed: 2006-02-21 19:03:51 UTC


Attachments (Terms of Use)

Description Michal Jaegermann 2004-05-28 16:03:15 UTC
Description of problem:

'devlabel' script is using
IGNORE_LIST=/etc/sysconfig/devlabel.d/ignore_list
LAST_LIST=/etc/sysconfig/devlabel.d/proc_partitions
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
        return 1
    fi

and not even

    if [ `grep -c "$1$" $IGNORE_LIST /dev/null` -gt 0 ]; then
        return 1
    fi

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):
devlabel-0.48.01-2

Comment 1 Bill Nottingham 2004-05-28 16:15:22 UTC

*** This bug has been marked as a duplicate of 124442 ***

Comment 2 Red Hat Bugzilla 2006-02-21 19:03:51 UTC
Changed to 'CLOSED' state since 'RESOLVED' has been deprecated.


Note You need to log in before you can comment on or make changes to this bug.