Skip to content

Commit 037b427

Browse files
authored
Add ZRAM on RHEL
1 parent cff20ef commit 037b427

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

RHEL-10.sh

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -115,17 +115,19 @@ sudo dnf remove -y audit cockpit* cronie firewalld *firmware* flashrom grub2-too
115115
# Setup insights
116116
sudo insights-client --register
117117

118-
# Install nano & guest agent
119-
sudo dnf install -y nano qemu-guest-agent
118+
# Install packages
119+
sudo dnf install -y nano qemu-guest-agent tuned zram-generator
120120

121-
# Enable auto TRIM
122-
sudo systemctl enable fstrim.timer
121+
# Setup ZRAM
122+
curl -s https://raw.githubusercontent.com/Metropolis-nexus/Common-Files/main/etc/systemd/zram-generator.conf | tee /etc/systemd/zram-generator.conf > /dev/null
123123

124124
# Setup tuned
125-
sudo dnf install -y tuned
126125
sudo systemctl enable --now tuned
127126
sudo tuned-adm profile virtual-guest
128127

128+
# Enable auto TRIM
129+
sudo systemctl enable fstrim.timer
130+
129131
# Setup notices
130132
unpriv curl -s https://raw.githubusercontent.com/Metropolis-nexus/Common-Files/main/etc/issue | sudo tee /etc/issue > /dev/null
131133
sudo chmod 644 /etc/issue

0 commit comments

Comments
 (0)