diff --git a/files/firstboot/23-restart-dphys-swapfile.sh b/files/firstboot/23-restart-dphys-swapfile.sh index 9f9d742..32c8638 100644 --- a/files/firstboot/23-restart-dphys-swapfile.sh +++ b/files/firstboot/23-restart-dphys-swapfile.sh @@ -1,7 +1,5 @@ # Restart dphys-swapfile service if it exists -if systemctl list-units | grep -q dphys-swapfile ; then - logger -t "rc.firstboot" "Restarting dphys-swapfile" +logger -t "rc.firstboot" "Restarting dphys-swapfile" - systemctl enable dphys-swapfile - systemctl restart dphys-swapfile -fi +systemctl enable dphys-swapfile +systemctl restart dphys-swapfile