diff --git a/script/config/raspi_image/rpmlist b/script/config/raspi_image/rpmlist index f923649cebf73c0cdac002fe3c4dc6bdb9e66b63..f9a864b46b909aeec55b3123de0ee2fa0a259805 100644 --- a/script/config/raspi_image/rpmlist +++ b/script/config/raspi_image/rpmlist @@ -19,4 +19,5 @@ raspberrypi-firmware raspberrypi-bluetooth sudo bc +systemd-timesyncd openEuler-repos \ No newline at end of file diff --git a/script/step/make_raspi_image.sh b/script/step/make_raspi_image.sh index e1bf2de960e647270b57e4690cffb1badb41e3c6..1f6792e194d9f18622287624e0d267615d8f5b09 100644 --- a/script/step/make_raspi_image.sh +++ b/script/step/make_raspi_image.sh @@ -127,7 +127,7 @@ make_rootfs(){ cat ${rootfs_dir}/etc/systemd/timesyncd.conf | grep "^NTP=*" if [ $? -ne 0 ]; then sed -i -e '/^#NTP=/cNTP=0.cn.pool.ntp.org' ${rootfs_dir}/etc/systemd/timesyncd.conf - sed -i -e '/^#FallbackNTP=/cFallbackNTP=1.asia.pool.ntp.org 2.asia.pool.ntp.org' ${rootfs_dir}/etc/systemd/timesyncd.conf + sed -i 's/#FallbackNTP=/FallbackNTP=1.asia.pool.ntp.org 2.asia.pool.ntp.org /g' ${rootfs_dir}/etc/systemd/timesyncd.conf fi set -e #cp ${euler_dir}/hosts ${rootfs_dir}/etc/hosts