Swap
This commit is contained in:
parent
878b4f1b31
commit
ef8465ea2a
@ -8,6 +8,15 @@ mkdir /data
|
|||||||
mount -o discard,defaults /dev/sdb /data
|
mount -o discard,defaults /dev/sdb /data
|
||||||
echo "/dev/sdb /data ext4 discard,nofail,defaults 0 0" >> /etc/fstab
|
echo "/dev/sdb /data ext4 discard,nofail,defaults 0 0" >> /etc/fstab
|
||||||
|
|
||||||
|
#Swap
|
||||||
|
fallocate -l 4G /swapfile
|
||||||
|
chown root:root /swapfile
|
||||||
|
chmod 0600 /swapfile
|
||||||
|
mkswap /swapfile
|
||||||
|
swapon /swapfile
|
||||||
|
|
||||||
|
echo '/swapfile none swap sw 0 0' >> /etc/fstab
|
||||||
|
|
||||||
apt update
|
apt update
|
||||||
apt upgrade -y
|
apt upgrade -y
|
||||||
apt install docker.io -y
|
apt install docker.io -y
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user