[Bug 1696981] Re: fixrtc is ineffective when there is no battery for the RTC

2017-09-06 Thread Alfonso Sanchez-Beato
*** This bug is a duplicate of bug 1623125 *** https://bugs.launchpad.net/bugs/1623125 @smb, actually, there is no create time field in the fs header, see http://paste.ubuntu.com/25478756/ (this comes from a file with the mount time already corrected). This is a partition created with

[Bug 1696981] Re: fixrtc is ineffective when there is no battery for the RTC

2017-09-06 Thread Stefan Bader
*** This bug is a duplicate of bug 1623125 *** https://bugs.launchpad.net/bugs/1623125 ** This bug has been marked a duplicate of bug 1623125 fixrtc script does not catch "Last mount time: n/a" string -- You received this bug notification because you are a member of Ubuntu Bugs, which is

[Bug 1696981] Re: fixrtc is ineffective when there is no battery for the RTC

2017-09-06 Thread Stefan Bader
Looking at the complete fixrtc-mount script (the part which was fixed in bug #1623125 makes me think that this would fix your problem as well. And that with much less required change. That script checks not only mount but also create time of the fs. If create time is more recent than mount

[Bug 1696981] Re: fixrtc is ineffective when there is no battery for the RTC

2017-09-05 Thread Alfonso Sanchez-Beato
@smb the concrete problem this was solving was happening with an armhf device running Ubuntu Core. UC assertions were not validated and a system user could not be created if there was no network (no date update). Not sure if this was breaking the system even if later you connected the device. --

[Bug 1696981] Re: fixrtc is ineffective when there is no battery for the RTC

2017-09-05 Thread Stefan Bader
@Alfonso, right, but the details about what exactly failed is quite important/useful information. If some certificates are deemed invalid on boot until there is network this does not sound too bad at first. If this causes services to not start, then this becomes more important to fix. Also

[Bug 1696981] Re: fixrtc is ineffective when there is no battery for the RTC

2017-09-05 Thread Alfonso Sanchez-Beato
@smb what I have seen is that devices lacking RTC battery tend to never had a good date in the "last mount day" date of the root filesystem, as when root is mounted the date is always near the epoch. The patch can correct this, otherwise we would be getting the date systemd was built. Of course

[Bug 1696981] Re: fixrtc is ineffective when there is no battery for the RTC

2017-09-05 Thread Stefan Bader
I was reviewing the latest patch and beside of this part being modified (@Ogra, would you be fine with that? And btw Jan 1 2017 is a Saturday), I am not fully understanding what exactly looking at file dates gains. The date will be less wrong but still potentially off by days. The system date

[Bug 1696981] Re: fixrtc is ineffective when there is no battery for the RTC

2017-07-27 Thread Steve Langasek
** Tags removed: rls-aa-incoming ** Changed in: initramfs-tools (Ubuntu) Importance: Undecided => Medium -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1696981 Title: fixrtc is ineffective when

[Bug 1696981] Re: fixrtc is ineffective when there is no battery for the RTC

2017-06-12 Thread Brian Murray
** Tags added: rls-aa-incoming -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1696981 Title: fixrtc is ineffective when there is no battery for the RTC To manage notifications about this bug go to:

[Bug 1696981] Re: fixrtc is ineffective when there is no battery for the RTC

2017-06-09 Thread Ubuntu Foundations Team Bug Bot
The attachment "add-fixrtc-mount.patch" seems to be a debdiff. The ubuntu-sponsors team has been subscribed to the bug report so that they can review and hopefully sponsor the debdiff. If the attachment isn't a patch, please remove the "patch" flag from the attachment, remove the "patch" tag,

[Bug 1696981] Re: fixrtc is ineffective when there is no battery for the RTC

2017-06-09 Thread Alfonso Sanchez-Beato
New patch version, which includes now a patch from ogra (LP: #1623125) ** Patch added: "fixrtc-changes.patch" https://bugs.launchpad.net/ubuntu/+source/initramfs-tools/+bug/1696981/+attachment/4893078/+files/fixrtc-changes.patch -- You received this bug notification because you are a member

[Bug 1696981] Re: fixrtc is ineffective when there is no battery for the RTC

2017-06-09 Thread Alfonso Sanchez-Beato
This is the output of dumpe2fs: http://paste.ubuntu.com/24815516/ -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1696981 Title: fixrtc is ineffective when there is no battery for the RTC To manage

[Bug 1696981] Re: fixrtc is ineffective when there is no battery for the RTC

2017-06-09 Thread Oliver Grawert
well, i'd rather find out why the original fixrtc did not work in the first place ... dumpe2fs output of the respecitve failing disk captured from an initrd shell on first boot of the device would be interesting debug data -- You received this bug notification because you are a member of Ubuntu

[Bug 1696981] Re: fixrtc is ineffective when there is no battery for the RTC

2017-06-09 Thread Alfonso Sanchez-Beato
This debdiff adds a fixrtc-mount that helps with this issue by looking at dates from files, once root has been mounted. ** Patch added: "add-fixrtc-mount.patch" https://bugs.launchpad.net/ubuntu/+source/initramfs-tools/+bug/1696981/+attachment/4893067/+files/add-fixrtc-mount.patch -- You