From f84ed4876ca07717597b5a8574876e013052e95e 2018-12-17 16:05:38 From: Yannick Schinko Date: 2018-12-17 16:05:38 Subject: [PATCH] Disable dphys-swapfile for the first boot --- diff --git a/bootstrap.d/15-rpi-config.sh b/bootstrap.d/15-rpi-config.sh index 4510e83..2329a14 100644 --- a/bootstrap.d/15-rpi-config.sh +++ b/bootstrap.d/15-rpi-config.sh @@ -177,6 +177,11 @@ else chroot_exec systemctl disable serial-getty\@"$SET_SERIAL".service fi +# Disable dphys-swapfile service. Will get enabled on first boot +if [ "$ENABLE_DPHYSSWAP" = true ] ; then + chroot_exec systemctl disable dphys-swapfile +fi + if [ "$ENABLE_SYSTEMDSWAP" = true ] ; then # Create temporary directory for systemd-swap sources temp_dir=$(as_nobody mktemp -d)