Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Kristian Klausen
arch-boxes
Commits
05c8cd6e
Commit
05c8cd6e
authored
Jan 29, 2021
by
Sven-Hendrik Haase
Browse files
Merge branch 'swap-perms' into 'master'
Fix swapfile "insecure permissions" See merge request
archlinux/arch-boxes!156
parents
2a28972c
33ec0c02
Changes
1
Hide whitespace changes
Inline
Side-by-side
images/base.sh
View file @
05c8cd6e
...
...
@@ -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"
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment