Skip to content

Commit d443828

Browse files
authored
Allow squashfs on TrueNAS
Signed-off-by: Tommy <[email protected]>
1 parent 905616f commit d443828

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

TrueNAS-25.04.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ sudo systemctl restart sshd
5050

5151
# Kernel hardening
5252
unpriv curl -s https://raw.githubusercontent.com/Metropolis-nexus/Common-Files/main/etc/modprobe.d/server-blacklist.conf | sudo tee /etc/modprobe.d/server-blacklist.conf > /dev/null
53+
sed -i 's/^install squashfs/#install squashfs/' /etc/modprobe.d/server-blacklist.conf
5354
sudo chmod 644 /etc/modprobe.d/server-blacklist.conf
5455
unpriv curl -s https://raw.githubusercontent.com/Metropolis-nexus/Common-Files/main/etc/sysctl.d/99-server.conf | sudo tee /etc/sysctl.d/99-server.conf > /dev/null
5556
sudo chmod 644 /etc/sysctl.d/99-server.conf
@@ -60,4 +61,4 @@ unpriv curl -s https://raw.githubusercontent.com/Metropolis-nexus/Common-Files/m
6061
sudo chmod 644 /etc/security/limits.d/30-disable-coredump.conf
6162
sudo mkdir -p /etc/systemd/coredump.conf.d
6263
unpriv curl -s https://raw.githubusercontent.com/Metropolis-nexus/Common-Files/main/etc/systemd/coredump.conf.d/disable.conf | sudo tee /etc/systemd/coredump.conf.d/disable.conf > /dev/null
63-
sudo chmod 644 /etc/systemd/coredump.conf.d/disable.conf
64+
sudo chmod 644 /etc/systemd/coredump.conf.d/disable.conf

0 commit comments

Comments
 (0)