git: fcf2227a5575 - main - periodic: by default, skip 221.backup-gpart in jails
Alan Somers
asomers at FreeBSD.org
Fri Jun 18 14:36:16 UTC 2021
The branch main has been updated by asomers:
URL: https://cgit.FreeBSD.org/src/commit/?id=fcf2227a557552e45646bbcf2422a98baab5c8a8
commit fcf2227a557552e45646bbcf2422a98baab5c8a8
Author: Alan Somers <asomers at FreeBSD.org>
AuthorDate: 2021-06-18 14:33:08 +0000
Commit: Alan Somers <asomers at FreeBSD.org>
CommitDate: 2021-06-18 14:36:09 +0000
periodic: by default, skip 221.backup-gpart in jails
It can still be enabled as usual in /etc/periodic.conf
PR: 256253
Reported by: delphij
Submitted by: Miroslav Lachman <000.fbsd at quip.cz>
MFC after: 2 weeks
---
usr.sbin/periodic/periodic.conf | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/usr.sbin/periodic/periodic.conf b/usr.sbin/periodic/periodic.conf
index d2d59fb783b0..4429c8d48eea 100644
--- a/usr.sbin/periodic/periodic.conf
+++ b/usr.sbin/periodic/periodic.conf
@@ -78,7 +78,12 @@ daily_backup_passwd_enable="YES" # Backup passwd & group
daily_backup_aliases_enable="YES" # Backup mail aliases
# 221.backup-gpart
-daily_backup_gpart_enable="YES" # Backup partition table/boot partition/MBR
+if [ $(sysctl -n security.jail.jailed) = 0 ]; then
+ # Backup partition table/boot partition/MBR
+ daily_backup_gpart_enable="YES"
+else
+ daily_backup_gpart_enable="NO"
+fi
daily_backup_gpart_verbose="NO" # Be verbose if new backup differs from the old one
daily_backup_efi_enable="NO" # Backup EFI system partition (ESP)
More information about the dev-commits-src-main
mailing list