[Bug 2107309] Re: smartmontools.service: Referenced but unset environment variable evaluates to an empty string: smartd_opts
Sundar Nagarajan
2107309 at bugs.launchpad.net
Wed Apr 16 08:24:26 UTC 2025
This affects smartmontools and not cron
** Package changed: cron (Ubuntu) => smartmontools (Ubuntu)
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to cron in Ubuntu.
https://bugs.launchpad.net/bugs/2107309
Title:
smartmontools.service: Referenced but unset environment variable
evaluates to an empty string: smartd_opts
Status in smartmontools package in Ubuntu:
New
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://us.archive.ubuntu.com/ubuntu noble/main amd64 Packages
100 /var/lib/dpkg/status
This warning (not error) appears in journalctl log:
smartmontools.service: Referenced but unset environment variable
evaluates to an empty string: smartd_opts
Fix:
Add one line to /etc/default/smartmontools setting smartd_opts to an empty string
Existing file /etc/default/smartmontools:
# Defaults for smartmontools initscript (/etc/init.d/smartmontools)
# 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_smart="/dev/hda /dev/hdb"
# uncomment to pass additional options to smartd on startup
#smartd_opts="--interval=1800"
File with fix (additional line) added:
# Defaults for smartmontools initscript (/etc/init.d/smartmontools)
# 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_smart="/dev/hda /dev/hdb"
# uncomment to pass additional options to smartd on startup
#smartd_opts="--interval=1800"
smartd_opts=""
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/smartmontools/+bug/2107309/+subscriptions
More information about the foundations-bugs
mailing list