mirror of
https://gitee.com/callmer/pve_toss_notes.git
synced 2026-08-31 14:02:53 +08:00
更新 PVE 系统调整
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
APT::Periodic::Update-Package-Lists "1";
|
||||
APT::Periodic::Unattended-Upgrade "10";
|
||||
APT::Periodic::Unattended-Upgrade "5";
|
||||
APT::Periodic::AutocleanInterval "1";
|
||||
APT::Periodic::CleanInterval "1";
|
||||
|
||||
|
||||
@@ -32,6 +32,7 @@ Unattended-Upgrade::Origins-Pattern {
|
||||
"origin=Debian,codename=${distro_codename},label=Debian-Security";
|
||||
"origin=Debian,codename=${distro_codename}-security,label=Debian-Security";
|
||||
"origin=Proxmox,codename=${distro_codename},label=Proxmox Debian Repository";
|
||||
// "origin=Proxmox,codename=${distro_codename},label=Proxmox Ceph Debian Repository";
|
||||
|
||||
// Archive or Suite based matching:
|
||||
// Note that this will silently match a different release after
|
||||
@@ -66,10 +67,10 @@ Unattended-Upgrade::Package-Blacklist {
|
||||
};
|
||||
|
||||
// This option allows you to control if on a unclean dpkg exit
|
||||
// unattended-upgrades will automatically run
|
||||
// unattended-upgrades will automatically run
|
||||
// dpkg --force-confold --configure -a
|
||||
// The default is true, to ensure updates keep getting installed
|
||||
Unattended-Upgrade::AutoFixInterruptedDpkg "true";
|
||||
//Unattended-Upgrade::AutoFixInterruptedDpkg "true";
|
||||
|
||||
// Split the upgrade into the smallest possible chunks so that
|
||||
// they can be interrupted with SIGTERM. This makes the upgrade
|
||||
@@ -102,18 +103,18 @@ Unattended-Upgrade::AutoFixInterruptedDpkg "true";
|
||||
|
||||
// Remove unused automatically installed kernel-related packages
|
||||
// (kernel images, kernel headers and kernel version locked tools).
|
||||
Unattended-Upgrade::Remove-Unused-Kernel-Packages "true";
|
||||
//Unattended-Upgrade::Remove-Unused-Kernel-Packages "true";
|
||||
|
||||
// Do automatic removal of newly unused dependencies after the upgrade
|
||||
Unattended-Upgrade::Remove-New-Unused-Dependencies "true";
|
||||
//Unattended-Upgrade::Remove-New-Unused-Dependencies "true";
|
||||
|
||||
// Do automatic removal of unused packages after the upgrade
|
||||
// (equivalent to apt-get autoremove)
|
||||
Unattended-Upgrade::Remove-Unused-Dependencies "true";
|
||||
//Unattended-Upgrade::Remove-Unused-Dependencies "false";
|
||||
|
||||
// Automatically reboot *WITHOUT CONFIRMATION* if
|
||||
// the file /var/run/reboot-required is found after the upgrade
|
||||
Unattended-Upgrade::Automatic-Reboot "true";
|
||||
//Unattended-Upgrade::Automatic-Reboot "false";
|
||||
|
||||
// Automatically reboot even if there are users currently logged in
|
||||
// when Unattended-Upgrade::Automatic-Reboot is set to true
|
||||
@@ -122,7 +123,7 @@ Unattended-Upgrade::Automatic-Reboot "true";
|
||||
// If automatic reboot is enabled and needed, reboot at the specific
|
||||
// time instead of immediately
|
||||
// Default: "now"
|
||||
Unattended-Upgrade::Automatic-Reboot-Time "05:00";
|
||||
//Unattended-Upgrade::Automatic-Reboot-Time "02:00";
|
||||
|
||||
// Use apt bandwidth limit feature, this example limits the download
|
||||
// speed to 70kb/sec
|
||||
@@ -163,3 +164,16 @@ Unattended-Upgrade::Automatic-Reboot-Time "05:00";
|
||||
// uninstallable packages at the expense of rarely keeping back packages which
|
||||
// could be upgraded or installed.
|
||||
// Unattended-Upgrade::Allow-APT-Mark-Fallback "true";
|
||||
|
||||
Unattended-Upgrade::AutoFixInterruptedDpkg "true";
|
||||
|
||||
Unattended-Upgrade::Remove-Unused-Kernel-Packages "true";
|
||||
|
||||
Unattended-Upgrade::Remove-New-Unused-Dependencies "true";
|
||||
|
||||
Unattended-Upgrade::Remove-Unused-Dependencies "true";
|
||||
|
||||
Unattended-Upgrade::Automatic-Reboot "true";
|
||||
|
||||
Unattended-Upgrade::Automatic-Reboot-Time "05:00";
|
||||
|
||||
|
||||
@@ -12,11 +12,12 @@ RandomizedDelaySec=0
|
||||
# [Unit]
|
||||
# Description=Daily apt upgrade and clean activities
|
||||
# After=apt-daily.timer
|
||||
#
|
||||
#
|
||||
# [Timer]
|
||||
# OnCalendar=*-*-* 6:00
|
||||
# RandomizedDelaySec=60m
|
||||
# Persistent=true
|
||||
#
|
||||
#
|
||||
# [Install]
|
||||
# WantedBy=timers.target
|
||||
|
||||
|
||||
@@ -6,10 +6,10 @@
|
||||
# Default-Start: 2 3 4 5
|
||||
# Default-Stop:
|
||||
# Short-Description: set CPUFreq kernel parameters
|
||||
# Description: utilities to deal with CPUFreq Linux
|
||||
# Description: utilities to deal with CPUFreq Linux
|
||||
# kernel support
|
||||
### END INIT INFO
|
||||
#
|
||||
#
|
||||
|
||||
DESC="CPUFreq Utilities"
|
||||
|
||||
@@ -27,13 +27,13 @@ CPUFREQ_OPTIONS=""
|
||||
# and which limits to set. Both MIN_SPEED and MAX_SPEED must be values
|
||||
# listed in:
|
||||
# cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_available_frequencies
|
||||
# a value of 0 for any of the two variables will disabling the use of
|
||||
# a value of 0 for any of the two variables will disabling the use of
|
||||
# that limit variable.
|
||||
#
|
||||
# WARNING: the correct kernel module must already be loaded or compiled in.
|
||||
#
|
||||
#
|
||||
# Set ENABLE to "true" to let the script run at boot time.
|
||||
#
|
||||
#
|
||||
# eg: ENABLE="true"
|
||||
# GOVERNOR="ondemand"
|
||||
# MAX_SPEED=1000
|
||||
@@ -98,3 +98,4 @@ case "$1" in
|
||||
esac
|
||||
|
||||
exit 0
|
||||
|
||||
|
||||
Reference in New Issue
Block a user