initramfs start, need to synchronize time after get the ip address
Signed-off-by: Wang Chenglong 18509160991@163.com --- bin/run-ipconfig | 1 + 1 file changed, 1 insertion(+)
diff --git a/bin/run-ipconfig b/bin/run-ipconfig index 0f80feaf..ad2a9808 100755 --- a/bin/run-ipconfig +++ b/bin/run-ipconfig @@ -20,3 +20,4 @@ read_ip()
[ -n "$IP" ] || read_ip configure_networking +ntpdate -u ntp.api.bz
This is hack. Please make it clear. And there is a dedicated function for calling ntpdate, why not add code there?
On Tue, Sep 29, 2020 at 10:10:07PM +0800, Wang Chenglong wrote:
initramfs start, need to synchronize time after get the ip address
Signed-off-by: Wang Chenglong 18509160991@163.com
bin/run-ipconfig | 1 + 1 file changed, 1 insertion(+)
diff --git a/bin/run-ipconfig b/bin/run-ipconfig index 0f80feaf..ad2a9808 100755 --- a/bin/run-ipconfig +++ b/bin/run-ipconfig @@ -20,3 +20,4 @@ read_ip()
[ -n "$IP" ] || read_ip configure_networking
+ntpdate -u ntp.api.bz
2.23.0
On Wed, Sep 30, 2020 at 07:57:23AM +0800, Wu Fengguang wrote:
This is hack. Please make it clear. And there is a dedicated function for calling ntpdate, why not add code there?
是的,在 $LKP_SRC/lib/bootstrap.sh 中有关于ntpdate的调用,但是它没有生效。 上周五为了应对紧急情况,所以在这里添加时间同步命令。
我刚才已经找到了bootstrap中ntpdate无法执行的原因,稍后我会提上patch,并取消在run-ipconfig中的修改。
Thanks, Chenglong