Skip to content

Commit fd48978

Browse files
authored
Add ZRAM config to Proxmox
Signed-off-by: Tommy <[email protected]>
1 parent 69126b2 commit fd48978

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Proxmox-8.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ apt full-upgrade -y
6363
apt autoremove -y
6464

6565
# Install packages
66-
apt install -y intel-microcode proxmox-kernel-6.14 tuned
66+
apt install -y intel-microcode proxmox-kernel-6.14 systemd-zram-generator tuned
6767

6868
### This part assumes that you are using systemd-boot
6969
echo "mitigations=auto,nosmt spectre_v2=on spectre_bhi=on spec_store_bypass_disable=on tsx=off kvm.nx_huge_pages=force nosmt=force l1d_flush=on spec_rstack_overflow=safe-ret gather_data_sampling=force reg_file_data_sampling=on random.trust_bootloader=off random.trust_cpu=off intel_iommu=on amd_iommu=force_isolation efi=disable_early_pci_dma iommu=force iommu.passthrough=0 iommu.strict=1 slab_nomerge init_on_alloc=1 init_on_free=1 pti=on vsyscall=none ia32_emulation=0 page_alloc.shuffle=1 randomize_kstack_offset=on debugfs=off $(cat /etc/kernel/cmdline)" > /etc/kernel/cmdline
@@ -83,6 +83,9 @@ curl -s https://raw.githubusercontent.com/TommyTran732/Linux-Setup-Scripts/main/
8383
mkdir -p /etc/systemd/coredump.conf.d
8484
curl -s https://raw.githubusercontent.com/TommyTran732/Linux-Setup-Scripts/main/etc/systemd/coredump.conf.d/disable.conf | tee /etc/systemd/coredump.conf.d/disable.conf > /dev/null
8585

86+
# Setup ZRAM
87+
curl -s https://raw.githubusercontent.com/TommyTran732/Linux-Setup-Scripts/main/etc/systemd/zram-generator.conf | tee /etc/systemd/zram-generator.conf > /dev/null
88+
8689
# Disable Nagging
8790
sed -Ezi.bak "s/(Ext.Msg.show\(\{\s+title: gettext\('No valid sub)/void\(\{ \/\/\1/g" /usr/share/javascript/proxmox-widget-toolkit/proxmoxlib.js
8891

0 commit comments

Comments
 (0)