@@ -66,3 +66,11 EOF2 | |||
|
66 | 66 | partprobe && |
|
67 | 67 | resize2fs /dev/${ROOT_PART} && |
|
68 | 68 | logger -t "rc.firstboot" "Root partition successfully resized." |
|
69 | ||
|
70 | # Restart dphys-swapfile service if it exists | |
|
71 | if systemctl list-units | grep -q dphys-swapfile ; then | |
|
72 | if systemctl is-enabled dphys-swapfile ; then | |
|
73 | logger -t "rc.firstboot" "Restarting dphys-swapfile" | |
|
74 | systemctl restart dphys-swapfile | |
|
75 | fi | |
|
76 | fi |
General Comments 0
Vous devez vous connecter pour laisser un commentaire.
Se connecter maintenant