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.
dev/gentoo
Dustin 2024-12-13 19:32:49 -06:00
parent 6e49d6a254
commit c4740e4e5e
1 changed files with 2 additions and 0 deletions

View File

@ -119,6 +119,8 @@ trap cleanup INT TERM QUIT EXIT
workdir=$(mktemp -d) workdir=$(mktemp -d)
cd "${workdir}" cd "${workdir}"
systemctl daemon-reload
fetch_update "${source_url}" || die 'Failed to fetch update source' fetch_update "${source_url}" || die 'Failed to fetch update source'
extract_update || die 'Failed to extact update source' extract_update || die 'Failed to extact update source'
./install "${newroot}" || die 'Error installing system update' ./install "${newroot}" || die 'Error installing system update'