Open xiyan18 opened 1 week ago
@xiyan18 Would you mind adding the following two lines and running again?
+ if [ -f "${chrony_conf_file}" ]; then
info "Configure chrony file ${chrony_conf_file}"
cat >> "${chrony_conf_file}" <<EOF
refclock PHC /dev/ptp0 poll 3 dpoll -2 offset 0
# Step the system clock instead of slewing it if the adjustment is larger than
# one second, at any time
makestep 1 -1
EOF
+ fi
Btw, for the next time, could you paste code rather than upload pictures? The pictures won't be helpful for other people to search. Thanks ;)
refer to this document to create rootfs:https://github.com/kata-containers/kata-containers/blob/main/tools/osbuilder/rootfs-builder/README.md
My OS is ubuntu, the setup_rootfs function did not create the "${ROOTFS_DIR}/etc/chrony/" directory