#44 wiper.sh doesn't find rootdev running openSUSE 11.3

open-remind
nobody
None
5
2012-09-28
2011-01-12
Anonymous
No

hdparm - version v9.36
Linux/openSUSE 11.3

OpenSUSE is missing /usr/sbin/rdev (Like Redhat). Script wiper.sh tries to recognize root devie "/" using this tool. In line 259/260 there's a workaround for Redhat but this isn't working for openSUSE. For that you can aquire the root device by reading /etc/mtab (which ou could within most distributions, I guess).

Proposed patch.diff for /sbin/wiper.sh:
261,262d260
< elif [ "$RDEV" == "" -a `$GAWK '{if ($2 ~ /^\/$/) print $1}' /etc/mtab` != "" ]; then
< rootdev=`$GAWK '{if ($2 ~ /^\/$/) print $1}' /etc/mtab` ## openSUSE

Please bring it upstream.

Discussion

  • Mark Lord

    Mark Lord - 2012-09-28
    • status: open --> open-remind
     
  • Mark Lord

    Mark Lord - 2012-09-28

    If you can reformat that patch properly, I'll happily apply it.
    But right now, I don't know exactly WHERE in wiper.sh it belongs,
    because you didn't give any diff "context".

    Cheers

     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks