]> git.ipfire.org Git - people/stevee/ipfire-2.x.git/commit
smartmontools: Add update of drive database
authorAdolf Belka <adolf.belka@ipfire.org>
Mon, 7 Apr 2025 12:53:40 +0000 (14:53 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Tue, 22 Apr 2025 14:21:24 +0000 (14:21 +0000)
commit305158c82c5c6f77621d3d25dc476598dd4eaa85
treec34dbba77d0201be4c46eb27bb81d0000c413026
parent76da4bd66c8da9a203a21e607c88a0874e9c3a27
smartmontools: Add update of drive database

- Existing install uses database provide with source tarball. The database is also
   updated on a periodic basis which can vary between a few weeks up to 6 months or so.
- The last release was back in Aug 2023 so the database all users will have is quite old.
- This patch adds a script into the monthly fcron directory that will run the
   update-smart-drivedb script from the smartmontools installation. This script downloads
   the database file via https and also checks the signature of the file to ensure that
   it has not been changed in any way. The script is run with  the -q (quiet) option.
   The script checks if the downloaded database is corrupted ands will not install it if
   it is corrupted. It checks if the database has changed since the last version
   installed on the system. If not changed it does not replace the file.
- Tested this out with my production IPFire system and I ended up with the latest
   database from 3 weeks ago.

Signed-off-by: Adolf Belka <adolf.belka@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
config/rootfiles/common/smartmontools
config/smartmontools/fcron.monthly [new file with mode: 0644]
lfs/smartmontools