Feature #9742
closedPrint Patch ID in log while patching
100%
Description
that would be very useful for support and security perspective.
for now it only run ACB backup while patching.
Files
Updated by Viktor Gurov over 4 years ago
Updated by Viktor Gurov over 4 years ago
Updated by Jim Pingle over 4 years ago
- Subject changed from print Patch ID in log while patching to Print Patch ID in log while patching
- Status changed from New to Pull Request Review
Updated by Renato Botelho over 4 years ago
- Status changed from Pull Request Review to Feedback
- Assignee set to Renato Botelho
- Target version set to 2.5.0
- % Done changed from 0 to 100
PR has been merged. Thanks!
Updated by Viktor Gurov over 4 years ago
Updated by Viktor Gurov over 4 years ago
tested on pfSense 2.5.0.a.20191121.2127 with System_Patches 1.2_4
test patch: https://github.com/pfsense/pfsense/commit/15701e03e36051907a23ddbe5ab04f42c94c0944.patch
Works ok, but on every patching I also got such message in logs:
Logging subprocess 84289 (exec /usr/local/sbin/sshguard) exited with status 1.
Updated by Jim Pingle over 4 years ago
The sshguard log message wouldn't be related.
I see logs for manual patching and reverting, but no log messages when auto-apply happens at boot time. It may not be the fault of the code, though, since it's an early shell command it may be run before logging starts, so logging via syslog at that point may not be possible. It has to run that early or it may not get run before other components that need to get patched before starting.
Instead of using syslog, it could write to its own log file directly, but that seems like overkill just for this.
Updated by Danilo Zrenjanin over 3 years ago
- Status changed from Feedback to Resolved
Tested on :
2.5.0-DEVELOPMENT (amd64) built on Tue Oct 13 19:05:31 EDT 2020 FreeBSD 12.2-STABLE
System Log displays the applied patch ID.
Ticket resolved.