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 16, 2025
1 parent 60ca0d4 commit 96482f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 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 Down

1 comment on commit 96482f4

@donald
Copy link
Collaborator

@donald donald commented on 96482f4 May 17, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

make-automaps should be done after the netcat in the other path as well.

Please sign in to comment.