Skip to content

Commit

Permalink
pdist/pdist-bootcheck: Make automaps after disting to sync /etc/autom…
Browse files Browse the repository at this point in the history
…ount/

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: mariux64/mariux64-issues#162
  • Loading branch information
pmenzel committed May 20, 2025
1 parent 60ca0d4 commit 3085e6b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pdist/pdist-bootcheck
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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

0 comments on commit 3085e6b

Please sign in to comment.