systemd: fix swap partition handling when multiple swap partitions are present

This commit is contained in:
capntrips 2019-08-15 00:10:18 -05:00 committed by MilhouseVH
parent ee2503e625
commit 50935255f0

View File

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