blog:2023:0930_fedora_release_upgrade_without_an_rtc
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| blog:2023:0930_fedora_release_upgrade_without_an_rtc [2023/09/30 11:45] – davek | blog:2023:0930_fedora_release_upgrade_without_an_rtc [2026/11/23 12:24] (current) – davek | ||
|---|---|---|---|
| Line 3: | Line 3: | ||
| Since the upgrade reboot doesn' | Since the upgrade reboot doesn' | ||
| - | |||
| ====== ====== | ====== ====== | ||
| - | Since I have a pijuice hat, I spent a bunch of time trying to get the RTC to handle the issue. Eventually I decided it would be simpler to find the source of September 17th and change that. | + | Since I have a pijuice hat, I spent a bunch of time trying to get the RTC to handle the issue in the upgrade. Eventually I decided it would be simpler to find the source of September 17th and change that. |
| - | It turns out systemd in the absence of a source of time such as an RTC set the system time to systemd' | + | It turns out systemd in the absence of a source of time such as an RTC at initialization sets the system time to systemd' |
| - | It turns out systemd will also use a kernel command line parameter to seed the system time: systemd.clock_usec. That allowed me to set the RPi time to something after the certificate valid dates and enable the system upgrade to proceed. | + | systemd will also use a kernel command-line parameter to seed the system time: systemd.clock_usec. That allowed me to set the RPi time to something after the certificate-valid dates and enable the system upgrade to proceed. |
| - | Since after a full boot my RPi would have its time set correctly by ntp, I examined | + | Since after a full boot my RPi would have its time set correctly by ntp, I determined |
| < | < | ||
| As a quick refresher, here's what to do with systemd.clock_usec in Fedora: | As a quick refresher, here's what to do with systemd.clock_usec in Fedora: | ||
| - | * pick the time you want; date +%s will give you epoch time right " | + | * pick the time you want; < |
| - | * edit / | + | * edit / |
| - | < | + | * regenerate grub config like this: < |
| - | * regenerate grub config like this: sudo grub2-mkconfig -o / | + | |
| * prepare for the disti upgrade and do the system-upgrade reboot | * prepare for the disti upgrade and do the system-upgrade reboot | ||
| - | * after you are done with your upgrade, remove the systemd.clock_usec to put your system back to normal | ||
| + | After you are done with your upgrade, remove the systemd.clock_usec to put your system back to normal. | ||
| {{tag>}} | {{tag>}} | ||
| - | |||
| ~~DISCUSSION~~ | ~~DISCUSSION~~ | ||
Contact Us
blog/2023/0930_fedora_release_upgrade_without_an_rtc.1696099527.txt.gz · Last modified: (external edit)