Page MenuHomeFreeBSD

freebsd-update: do not restart jailed sshd
ClosedPublic

Authored by emaste on Sep 16 2023, 8:54 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Oct 18, 11:27 PM
Unknown Object (File)
Sep 27 2024, 2:44 AM
Unknown Object (File)
Sep 26 2024, 12:02 PM
Unknown Object (File)
Sep 15 2024, 6:28 PM
Unknown Object (File)
Sep 7 2024, 6:47 AM
Unknown Object (File)
Sep 2 2024, 8:20 PM
Unknown Object (File)
Aug 23 2024, 6:55 AM
Unknown Object (File)
Aug 23 2024, 6:54 AM
Subscribers

Details

Summary

In 6cd1bc531609 for PR 263489 I changed freebsd-update to restart sshd after upgrade, to avoid an upgrade-related incompatibility that made it impossible to login.

This is intended to avoid losing access to remote hosts, and ought not apply to upgrading a jail.

PR: 263489, 272282

Diff Detail

Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

emaste created this revision.

Test $BASEDIR instead of $JAIL; we should not do the sshd restart dance for -b either.

I see inconsistent use of quotes around variable dereference (sometimes ${BASEDIR, sometimes "${BASEDIR}"). Other than that LGTM.

I'll test it on some jails I have left to update.

Tested, working, LGTM.

This revision is now accepted and ready to land.Sep 17 2023, 10:26 AM

I was going to complain from the description that I could only have access to the jail and be updating from within, but I reckon BASEDIR would be / in that case

I was going to complain from the description that I could only have access to the jail and be updating from within

Will update the commit message to make this clear