From 3085e6b74b3b15457c1c887481d723c7af8cd812 Mon Sep 17 00:00:00 2001 From: Paul Menzel Date: Fri, 16 May 2025 16:24:53 +0200 Subject: [PATCH] pdist/pdist-bootcheck: Make automaps after disting to sync /etc/automount/ MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit MarIuX desktop powered off for a long time, get disted by `pdist-bootcheck`, but the content of `/etc/automount/` is outdated, so newly created users’ home cannot be mounted for example. Only `/etc/amd/` is disted. `/etc/automount/*` is created from `/etc/amd/*` by `make-automaps`. As the former files are host specific – actually on `auto.scratch`, these are excluded from disting. Therefore, make the automaps after disting. Fixes: https://github.molgen.mpg.de/mariux64/mariux64-issues/issues/162 --- pdist/pdist-bootcheck | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pdist/pdist-bootcheck b/pdist/pdist-bootcheck index c3d9086..6620712 100755 --- a/pdist/pdist-bootcheck +++ b/pdist/pdist-bootcheck @@ -27,7 +27,7 @@ fi if [ "$need_async_pdist" ]; then systemd-run --unit pdist-async-update --service-type=simple --remain-after-exit \ - netcat $(distmaster) 237 + -- bash -c 'netcat $(distmaster) 237 ; make-automaps' echo triggered background update elif [ "$need_pdist_and_reboot" ]; then if [[ -e /var/cache/updatecheck.reboot-triggered ]]; then @@ -44,6 +44,7 @@ elif [ "$need_pdist_and_reboot" ]; then sync / while true; do sleep 5; echo "System update in progress. Please be patient..."; done & netcat $(distmaster) 237 + make-automaps mxgrub default systemctl start reboot.target --job-mode=replace-irreversibly fi