From 96482f495156c83764844308005724236cc4448c 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pdist/pdist-bootcheck b/pdist/pdist-bootcheck index c3d9086..3ab8f75 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