OSDN Git Service
(root)
/
instantos
/
instantARCH.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7808a1d
)
fix swap
author
paperbenni
<paperbenni@gmail.com>
Thu, 3 Sep 2020 14:02:55 +0000
(16:02 +0200)
committer
paperbenni
<paperbenni@gmail.com>
Thu, 3 Sep 2020 14:02:55 +0000
(16:02 +0200)
chroot/chroot.sh
patch
|
blob
|
history
diff --git
a/chroot/chroot.sh
b/chroot/chroot.sh
index
5751829
..
35fb131
100755
(executable)
--- a/
chroot/chroot.sh
+++ b/
chroot/chroot.sh
@@
-25,7
+25,10
@@
if ! [ -e /opt/topinstall ] && ! iroot partswap; then
if ! grep -iq manjaro /etc/os-release; then
# enable swap
systemctl enable systemd-swap
- sed -i 's/^swapfc_enabled=.*/swapfc_enabled=1/' /etc/systemd/swap.conf
+ {
+ echo "swapfc_enabled=1"
+ echo "swapfc_max_count=8"
+ } >> /etc/systemd/swap.conf
fi
fi
fi