No /dev/rtc => E: /usr/share/initramfs-tools/hooks/fixrtc failed with return 1.

Bug #1726375 reported by mk
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
initramfs-tools
New
Undecided
Unassigned

Bug Description

The last few times I tried to update the kernel on one of my VPS, it always failed because the fixrtc hook couldn't adjust the RTC. I think the RTC is managed by the host system, so the inner (guest) system can just leave it alone. I worked around it with

chmod a-x /usr/share/initramfs-tools/hooks/fixrtc

so I can update my kernel independent of RTC, but the problem seems to re-appear sometimes and by then I forgot what it was about. Could you maybe just add a check whether /dev/rtc exists, and skip fixing it if there isn't any?

Revision history for this message
mk (mk.pmb) wrote :

I do have the same problem on a cheap VPS by a very popular german hosting company, so it probably affects lots of people. Here's my favorite remedy, simple and effective.

Revision history for this message
mk (mk.pmb) wrote :

Oh, and here's a version that should work with even more shells.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.