Commit 05c8cd6e authored by Sven-Hendrik Haase's avatar Sven-Hendrik Haase
Browse files

Merge branch 'swap-perms' into 'master'

Fix swapfile "insecure permissions"

See merge request !156
parents 2a28972c 33ec0c02
Pipeline #4928 passed with stages
in 31 minutes and 14 seconds
......@@ -11,6 +11,7 @@ function pre() {
chattr +C "${MOUNT}/swap"
chmod 0700 "${MOUNT}/swap"
fallocate -l 512M "${MOUNT}/swap/swapfile"
chmod 0600 "${MOUNT}/swap/swapfile"
mkswap "${MOUNT}/swap/swapfile"
echo -e "/swap/swapfile none swap defaults 0 0" >>"${MOUNT}/etc/fstab"
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment