smartmontools.service: Referenced but unset environment variable evaluates to an empty string: smartd_opts
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
smartmontools |
New
|
Undecided
|
Unassigned | ||
smartmontools (Ubuntu) |
Triaged
|
Low
|
Unassigned | ||
Jammy |
Triaged
|
Low
|
Unassigned | ||
Noble |
Triaged
|
Low
|
Unassigned | ||
Oracular |
Triaged
|
Low
|
Unassigned | ||
Plucky |
Triaged
|
Low
|
Unassigned |
Bug Description
Output of lsb_release -rd
No LSB modules are available.
Description: Ubuntu 24.04.2 LTS
Release: 24.04
apt-cache policy smartmontools
smartmontools:
Installed: 7.4-2build1
Candidate: 7.4-2build1
Version table:
*** 7.4-2build1 500
500 https:/
100 /var/lib/
This warning (not error) appears in journalctl log:
smartmontools.
Fix:
Add one line to /etc/default/
Existing file /etc/default/
# Defaults for smartmontools initscript (/etc/init.
# This is a POSIX shell fragment
# List of devices you want to explicitly enable S.M.A.R.T. for
# Not needed (and not recommended) if the device is monitored by smartd
#enable_
# uncomment to pass additional options to smartd on startup
#smartd_
File with fix (additional line) added:
# Defaults for smartmontools initscript (/etc/init.
# This is a POSIX shell fragment
# List of devices you want to explicitly enable S.M.A.R.T. for
# Not needed (and not recommended) if the device is monitored by smartd
#enable_
# uncomment to pass additional options to smartd on startup
#smartd_
smartd_opts=""
This affects smartmontools and not cron