@@ -93,7 +93,7 Set default system timezone. All available timezones can be found in the `/usr/s | |||
|
93 | 93 | ##### `EXPANDROOT`=true |
|
94 | 94 | Expand the root partition and filesystem automatically on first boot. |
|
95 | 95 | |
|
96 | ##### `ENABLE_SWAP`=true | |
|
96 | ##### `ENABLE_DPHYSSWAP`=true | |
|
97 | 97 | Enable swap. The size of the swapfile is chosen relative to the size of the root partition. It'll use the `dphys-swapfile` package for that. |
|
98 | 98 | |
|
99 | 99 | ##### `ENABLE_QEMU`=false |
@@ -19,7 +19,7 if [ "$EXPANDROOT" = true ] ; then | |||
|
19 | 19 | cat files/firstboot/30-expandroot.sh >> "${ETC_DIR}/rc.firstboot" |
|
20 | 20 | |
|
21 | 21 | # Restart dphys-swapfile so the size of the swap file is relative to the resized root partition |
|
22 | if [ "$ENABLE_SWAP" = true ] ; then | |
|
22 | if [ "$ENABLE_DPHYSSWAP" = true ] ; then | |
|
23 | 23 | cat files/firstboot/31-restart-dphys-swapfile.sh >> "${ETC_DIR}/rc.firstboot" |
|
24 | 24 | fi |
|
25 | 25 | else |
@@ -83,7 +83,7 USER_PASSWORD=${USER_PASSWORD:=raspberry} | |||
|
83 | 83 | DEFLOCAL=${DEFLOCAL:="en_US.UTF-8"} |
|
84 | 84 | TIMEZONE=${TIMEZONE:="Europe/Berlin"} |
|
85 | 85 | EXPANDROOT=${EXPANDROOT:=true} |
|
86 | ENABLE_SWAP=${ENABLE_SWAP:=true} | |
|
86 | ENABLE_DPHYSSWAP=${ENABLE_DPHYSSWAP:=true} | |
|
87 | 87 | |
|
88 | 88 | # Keyboard settings |
|
89 | 89 | XKB_MODEL=${XKB_MODEL:=""} |
@@ -486,7 +486,7 if [ "$EXPANDROOT" = true ] ; then | |||
|
486 | 486 | fi |
|
487 | 487 | |
|
488 | 488 | # Add dphys-swapfile package, required to enable swap |
|
489 | if [ "$ENABLE_SWAP" = true ] ; then | |
|
489 | if [ "$ENABLE_DPHYSSWAP" = true ] ; then | |
|
490 | 490 | APT_INCLUDES="${APT_INCLUDES},dphys-swapfile" |
|
491 | 491 | fi |
|
492 | 492 |
General Comments 0
Vous devez vous connecter pour laisser un commentaire.
Se connecter maintenant