Skip to content

Commit

Permalink
fix: do not fail if we are not inside a systemd environment
Browse files Browse the repository at this point in the history
Signed-off-by: ZHANG Yuntian <[email protected]>
  • Loading branch information
RadxaYuntian committed Aug 19, 2024
1 parent 607d8ce commit 0705a2e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/usr/lib/rsetup/cli/system.sh
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,10 @@ EOF
rm -f "$config_dir/50-rsetup-autologin.conf"
fi

systemctl daemon-reload
if ! systemctl daemon-reload; then
echo "If you are running in chroot environment,
where systemd is not running, then you can ignore above error." >&2
fi
}

set_sddm_autologin() {
Expand Down

0 comments on commit 0705a2e

Please sign in to comment.