Merge pull request #3767 from capntrips/fix-swap

systemd: fix swap partition handling when multiple present
This commit is contained in:
MilhouseVH 2019-08-23 00:30:01 +01:00 committed by GitHub
commit 2ddcea9684
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -34,7 +34,7 @@ case $1 in
mount) mount)
[ -z "$SWAP" -a -f "$SWAPFILE" ] && SWAP=$SWAPFILE [ -z "$SWAP" -a -f "$SWAPFILE" ] && SWAP=$SWAPFILE
for i in $SWAP; do for i in $SWAP; do
swapon -p 10000 $SWAP swapon -p 10000 $i
done done
;; ;;
unmount) unmount)