
has_cmd ntpdate || { detect_system local DISTRO=$_system_name_lowercase + [ "$DISTRO" == "unknown" ] && { + echo "[WARNING] Current os cannot be recognized by lkp-test, so skip run_ntpdate." + return + } . $LKP_SRC/distro/installer/$DISTRO $(echo ntpdate | $LKP_SRC/sbin/adapt-packages $DISTRO)
Well ntpdate is common requirement and that line will install it on every test run. Why it's not pre-installed?
OTOH, ntpdate is typically not a must for each and every job. Bare metal HW should be enough to run ntpdate once per day. And VM could inherit host time.
Currently, ntpdate is not installed as a basic package for every rootfs. So, how about install it for every rootfs, and after install finished, we can delete this step in lib/bootstrap.sh? -------- Thanks Yu Chuan
I'd suggest to simply skip NTP if the ntpdate command is not available.
Thanks, Fengguang