From c4740e4e5e69908297aeff8f3f2b98c596786689 Mon Sep 17 00:00:00 2001 From: "Dustin C. Hatch" Date: Fri, 13 Dec 2024 19:32:49 -0600 Subject: [PATCH] system-update: Reload systemd before beginning This will silence warnings from `mount` about `/etc/fstab` having changed since the last time the `systemd-fstab-generator` was run. It's not true, since it's immutable, but the warning comes up on Raspberry Pis without an RTC. --- overlay/usr/bin/system-update | 2 ++ 1 file changed, 2 insertions(+) diff --git a/overlay/usr/bin/system-update b/overlay/usr/bin/system-update index 5e9c798..3a7331a 100755 --- a/overlay/usr/bin/system-update +++ b/overlay/usr/bin/system-update @@ -119,6 +119,8 @@ trap cleanup INT TERM QUIT EXIT workdir=$(mktemp -d) cd "${workdir}" +systemctl daemon-reload + fetch_update "${source_url}" || die 'Failed to fetch update source' extract_update || die 'Failed to extact update source' ./install "${newroot}" || die 'Error installing system update'