<div dir="ltr">I have booted the initrd.img file .when I reached network,it can get the right date.but <div><div>root@localhost:~# date</div><div>Tue Feb 3 11:01:18 UTC 2015</div></div><div><div>root@localhost:~# snappy versions</div><div>WARNING: failed to connect to dbus: org.freedesktop.DBus.Error.FileNotFound: Failed to connect to socket /var/run/dbus/system_bus_socket: No such file or directory</div><div>Part Tag Installed Available Fingerprint Active </div><div>webdm edge 0.1 - ff82f70a04b014 * </div><div>Traceback (most recent call last):</div><div> File "/usr/bin/snappy", line 25, in <module></div><div> status = Main().__main__()</div><div> File "/usr/lib/python3/dist-packages/snappy/main.py", line 195, in __main__</div><div> return callback(args)</div><div> File "/usr/lib/python3/dist-packages/snappy/main.py", line 383, in _do_versions</div><div> SystemImageDataSource().next_boot_is_other():</div><div> File "/usr/lib/python3/dist-packages/snappy/systemimage.py", line 73, in __init__</div><div> self.bus = dbus.SystemBus()</div><div> File "/usr/lib/python3/dist-packages/dbus/_dbus.py", line 194, in __new__</div><div> private=private)</div><div> File "/usr/lib/python3/dist-packages/dbus/_dbus.py", line 100, in __new__</div><div> bus = BusConnection.__new__(subclass, bus_type, mainloop=mainloop)</div><div> File "/usr/lib/python3/dist-packages/dbus/bus.py", line 122, in __new__</div><div> bus = cls._new_for_bus(address_or_type, mainloop=mainloop)</div><div>dbus.exceptions.DBusException: org.freedesktop.DBus.Error.FileNotFound: Failed to connect to socket /var/run/dbus/system_bus_socket: No such file or directory</div></div><div><br></div><div><br></div><div>it's still not work.</div></div><div class="gmail_extra"><br><div class="gmail_quote">2015-02-03 18:49 GMT+08:00 Oliver Grawert <span dir="ltr"><<a href="mailto:ogra@ubuntu.com" target="_blank">ogra@ubuntu.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">hi,<br>
Am Dienstag, den 03.02.2015, 18:29 +0800 schrieb 左宝柱:<br>
<span class="">> no,<br>
> root@localhost:~# date<br>
> Thu Jan 1 00:11:39 UTC 1970<br>
> because my board dont have rtc hardware module.I think it is right.<br>
><br>
</span>not if you use fixrtc .. it reads the last mount time of your rootfs and<br>
uses the date command to set your clock to this time during boot, the<br>
rtc should not be involved in this case ...<br>
<br>
i wonder why fixrtc does not do what it is supposed to do here ...<br>
<br>
i have uploaded an initrd with slightly modified fixrtc at:<br>
<br>
<a href="http://people.canonical.com/~ogra/snappy/initrd.img" target="_blank">http://people.canonical.com/~ogra/snappy/initrd.img</a><br>
<br>
please try booting this one and see if your clock ends up with a better<br>
date ...<br>
<br>
ciao<br>
oli<br>
<br>
</blockquote></div><br></div>