scripts/GRMLBASE/94-update-smart-drivedb: switch warning into note since update-smart...
authorMichael Prokop <mika@grml.org>
Mon, 24 Oct 2016 20:45:49 +0000 (22:45 +0200)
committerMichael Prokop <mika@grml.org>
Mon, 24 Oct 2016 20:45:49 +0000 (22:45 +0200)
Quoting NEWS file from smartmontools (6.4+svn4214-1):

|   Previous versions of the smartmontools package included a tool
|   update-smart-drivedb which downloaded updated drive definitions
|   from the smartmontools website and stored them at
|
|       /var/lib/smartmontools/drivedb/drivedb.h
|
|   This tool did not download the definitions in a secure manner and
|   so the feature has been removed in this version.  Future drive DB
|   updates will be propagated via normal Debian package updates,
|   including backports.
|
|   If you already have a drivedb.h file at that location, smartctl
|   will continue to use it.

We could completely drop the package once we're certain that
update-smart-drivedb doesn't exist anymore in all the Debian
releases grml-live is building for, but for the time being
let's keep it and switch the warning into a note.

etc/grml/fai/config/scripts/GRMLBASE/94-update-smart-drivedb

index 5c7c30e..1b98ef6 100755 (executable)
@@ -17,7 +17,7 @@ set -e
 [ -x $target/usr/bin/timeout ] && TIMEOUT="10" || TIMEOUT=""
 
 if ! [ -x ${target}/usr/sbin/update-smart-drivedb ] ; then
 [ -x $target/usr/bin/timeout ] && TIMEOUT="10" || TIMEOUT=""
 
 if ! [ -x ${target}/usr/sbin/update-smart-drivedb ] ; then
-  echo "Warning: smartmontools not installed"
+  echo "NOTE: update-smart-drivedb not present (possibly smartmontools >=6.4+svn4214-1 present)"
   exit 0
 fi
 
   exit 0
 fi