[Bug 266270] freebsd-update cron corrupts freebsd-update upgrade's in progress
Date: Tue, 13 Sep 2022 10:26:29 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=266270
--- Comment #2 from Peter Eriksson <pen@lysator.liu.se> ---
> If a crontab(5) utilizing the features of freebsd-update(8) exists,
> it must be disabled before upgrading the operating system.
Then perhaps a simple:
if crontab -l | grep -v '^#' | grep 'freebsd-update.*cron'; then
echo "$0: WARNING: Cron-enabled 'freebsd-update cron' detected, please
disable before running freebsd-update upgrade (see the manual for more
details)"
exit 1
fi
could be added to the upgrade part of freebsd-update in order to save other
users (not always reading the manuals and/or remembering this warning) from
running into the same issue that is a pain to recover from...
Just a suggestion.
--
You are receiving this mail because:
You are the assignee for the bug.