Installing dlog-tests package intentionally breaks
dlog setup for normal use case, but system should
not be rebooted without user consent. Rebooting
in %post might potentially make RPM db inconsistent
and impact other pending rpm actions.
Change-Id: I95e7eb0fcf6f12ff20c0bfaa6699e476793e4a4b
echo "To restore normal behavior, please uninstall dlog-tests package."
echo ""
echo "A reboot is required to properly configure logger backend for testing."
-secs=15
-while [ $secs -gt 0 ]; do
- echo -ne "Will reboot in $secs\033[0K\r"
- sleep 1
- : $((secs--))
-done
-sleep 1
-echo -e "Rebooting target."
-reboot