• Bug#265668: /etc/cron.daily/raidtools2 assumes /etc/raidtab exists

    From Dave Beckett@1:229/2 to All on Sat Aug 14 13:40:08 2004
    From: [email protected]

    Package: raidtools2
    Version: 1.00.3-11
    Severity: normal

    The nightly cron.daily gives this error:

    /etc/cron.daily/raidtools2:
    cat: /etc/raidtab: No such file or directory

    which is caused by the line:
    RAIDDEV=`cat /etc/raidtab | grep raiddev | awk '{print $2}'`

    I don't happen to be using RAID at the moment, so there is no
    raidtab. A line like:

    [ -r /etc/raidtab ] || exit 0

    before the check above should fix it.

    Dave



    -- System Information:
    Debian Release: 3.1
    APT prefers unstable
    APT policy: (500, 'unstable')
    Architecture: i386 (i686)
    Kernel: Linux 2.6.7
    Locale: LANG=C, LC_CTYPE=C

    Versions of packages raidtools2 depends on:
    ii debconf 1.4.30 Debian configuration management sy ii libc6 2.3.2.ds1-16 GNU C Library: Shared libraries an ii makedev 2.3.1-74 Creates device files in /dev

    -- debconf information:
    * raidtools2/init:
    raidtools2/oldraid:
    raidtools2/nosupport:
    * raidtools2/autostart: false


    --
    To UNSUBSCRIBE, email to [email protected]
    with a subject of "unsubscribe". Trouble? Contact [email protected]

    --- SoupGate-Win32 v1.05
    * Origin: you cannot sedate... all the things you hate (1:229/2)
  • From Mario 'BitKoenig' Holbe@1:229/2 to Dave Beckett on Mon Aug 16 10:30:12 2004
    From: [email protected]

    On Sat, Aug 14, 2004 at 12:22:21PM +0100, Dave Beckett wrote:
    /etc/cron.daily/raidtools2:
    cat: /etc/raidtab: No such file or directory
    ...
    [ -r /etc/raidtab ] || exit 0
    before the check above should fix it.

    Not depending on /etc/raidtab at all would be better.
    Even if one runs raids, one doesn't neccesarily need
    to have an /etc/raidtab nor does it need to be complete
    or in-sync.

    Parsing /proc/mdstat to find raids would be more
    reliable.


    just my 2 cents,
    Mario
    --
    It is practically impossible to teach good programming style to students
    that have had prior exposure to BASIC: as potential programmers they are mentally mutilated beyond hope of regeneration. -- Dijkstra


    --
    To UNSUBSCRIBE, email to [email protected]
    with a subject of "unsubscribe". Trouble? Contact [email protected]

    --- SoupGate-Win32 v1.05
    * Origin: you cannot sedate... all the things you hate (1:229/2)