Skip to content

Fixup #331

Merged
merged 3 commits into from
Jul 5, 2023
Merged

Fixup #331

Show file tree
Hide file tree
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
1 change: 1 addition & 0 deletions misc_systemd_units/lightdm.service
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
[Unit]
After=systemd-user-sessions.service
ConditionPathExists=/node/tags/desktop

[Service]
ExecStart=/usr/bin/lightdm
Expand Down
6 changes: 4 additions & 2 deletions pdist/pdist-bootcheck
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,17 @@ else
fi

if [ "$need_async_pdist" ]; then
netcat $(distmaster) 237 >/dev/null 2>&1 </dev/null &
systemd-run --unit pdist-async-update --service-type=simple --remain-after-exit \
netcat $(distmaster) 237
echo triggered background update
elif [ "$need_pdist_and_reboot" ]; then
if [[ -e /var/run/updatecheck.reboot-triggered ]]; then
echo "Update and reboot required but prevented due to previous attempt"
rm /var/run/updatecheck.reboot-triggered
exit 1
fi
echo "Update and reboot required. Please be patient..."
echo "Update and reboot required"
while true; do sleep 5; echo "System update in progress. Please be patient..."; done &
netcat $(distmaster) 237
mxgrub default
touch /var/run/updatecheck.reboot-triggered
Expand Down