Skip to content

pdist/pdist-bootcheck: Make automaps after disting to sync /etc/automount/ #466

Merged
merged 1 commit into from
May 22, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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