Re: [opensuse-project] openSUSE 11.3, disk expert needed (SSD + hdparm/wiper.sh error: /usr/sbin/rdev needed but not found)
2011/1/12 Greg Freemyer <greg.freemyer@gmail.com>:
Mark,
I just got a problem report about wiper.sh needing /usr/sbin/rdev.
That seems to have been deprecated for a while. Googling "usr/sbin/rdev" I see the same issue raised for several distros.
Are you working on a hdparm update / patch to address that?
Thanks Greg
As far as I understand rdev is only needed to tell which is the root device "/". If it's safe to extract this info from /etc/mtab I would suggest to get it there. Diff for /sbin/wiper.sh in hdparm 9.36: 261,262d260 < elif [ "$RDEV" == "" -a `$GAWK '{if ($2 ~ /^\/$/) print $1}' /etc/mtab` != "" ]; then < rootdev=`$GAWK '{if ($2 ~ /^\/$/) print $1}' /etc/mtab` ## openSUSE This enables me to do a dry-run of wiper.sh on openSUSE 11.3 (didn't try with --commit). -- To unsubscribe, e-mail: opensuse-project+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-project+help@opensuse.org
participants (1)
-
Johannes Nohl