Disable swap
This commit is contained in:
parent
2d000e2c7e
commit
cc3f7e5bb7
3 changed files with 0 additions and 21 deletions
9
build.sh
9
build.sh
|
@ -307,15 +307,6 @@ on_chroot << EOF
|
||||||
apt-get install -y ca-certificates
|
apt-get install -y ca-certificates
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
##
|
|
||||||
# Enable swap.
|
|
||||||
#
|
|
||||||
on_chroot << EOF
|
|
||||||
apt-get install -y dphys-swapfile
|
|
||||||
EOF
|
|
||||||
|
|
||||||
apply_patch '05-swap.diff'
|
|
||||||
|
|
||||||
##
|
##
|
||||||
# Configure environment.
|
# Configure environment.
|
||||||
#
|
#
|
||||||
|
|
|
@ -1,11 +0,0 @@
|
||||||
--- rootfs.orig/etc/dphys-swapfile
|
|
||||||
+++ rootfs/etc/dphys-swapfile
|
|
||||||
@@ -13,7 +13,7 @@
|
|
||||||
|
|
||||||
# set size to absolute value, leaving empty (default) then uses computed value
|
|
||||||
# you most likely don't want this, unless you have an special disk situation
|
|
||||||
-#CONF_SWAPSIZE=
|
|
||||||
+CONF_SWAPSIZE=100
|
|
||||||
|
|
||||||
# set size to computed value, this times RAM size, dynamically adapts,
|
|
||||||
# guarantees that there is enough swap without wasting disk space on excess
|
|
|
@ -3,7 +3,6 @@
|
||||||
03-passwordless-sudo.diff
|
03-passwordless-sudo.diff
|
||||||
04-bashrc.diff
|
04-bashrc.diff
|
||||||
05-useradd.diff
|
05-useradd.diff
|
||||||
06-swap.diff
|
|
||||||
07-path.diff
|
07-path.diff
|
||||||
08-dhcp-server.diff
|
08-dhcp-server.diff
|
||||||
09-ipv4-forwarding.diff
|
09-ipv4-forwarding.diff
|
||||||
|
|
Reference in a new issue