From 6b50da5bebe464d95fa6e8a9b8811cdfe2762e69 Mon Sep 17 00:00:00 2001 From: Vishal Rao Date: Sat, 27 Jun 2026 08:39:47 +0530 Subject: [PATCH] Prevent hardware RTC writes in live session This is to avoid annoyingly/unexpectedly affecting users' Windows clock from being offset whenever they may boot into KDE Linux to try or even install to another disk. --- .../live/usr/lib/udev/rules.d/99-no-rtc-write.rules | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 mkosi.extra/live/usr/lib/udev/rules.d/99-no-rtc-write.rules diff --git a/mkosi.extra/live/usr/lib/udev/rules.d/99-no-rtc-write.rules b/mkosi.extra/live/usr/lib/udev/rules.d/99-no-rtc-write.rules new file mode 100644 index 0000000..76451c4 --- /dev/null +++ b/mkosi.extra/live/usr/lib/udev/rules.d/99-no-rtc-write.rules @@ -0,0 +1,7 @@ +# SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL +# SPDX-FileCopyrightText: 2026 Vishal Rao + +# Prevent writing to the real-time clock in the live session, so we +# don't leave any unpleasant leftovers if the user boots back into +# the already-installed OS. +KERNEL=="rtc0", MODE="0400"