Merge pull request #347 from femtofox/noon2

Revert runonce swapfile
This commit is contained in:
noon92 2025-02-17 19:43:27 +02:00 • committed by GitHub
commit a5eef81248
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -62,7 +62,7 @@ if [ ! -f /swapfile ]; then # check if swap file already exists
chmod 600 /swapfile
mkswap /swapfile > /dev/null
swapon /swapfile > /dev/null
echo '/swapfile none swap sw 0 0'
echo '/swapfile none swap sw 0 0' | tee -a /etc/fstab > /dev/null
log_message "Swap file allocated."
else
log_message "Swap file already allocated, skipping"