restart ssh daemon immediately after swapping rootfs
This commit is contained in:
parent
ce131b77ec
commit
9c1c25e4c9
1 changed files with 3 additions and 3 deletions
|
@ -102,12 +102,12 @@ swap_root() {
|
|||
# move mounts
|
||||
for i in dev proc sys run; do mount --move "${OLDROOT}/$i" "${NEWROOT}/$i"; done
|
||||
mount -t tmpfs tmpfs "${NEWROOT}/tmp"
|
||||
|
||||
echo "Restarting SSH daemon..."
|
||||
systemctl restart ssh
|
||||
}
|
||||
|
||||
clear_processes() {
|
||||
echo "Restarting SSH daemon..."
|
||||
systemctl restart ssh
|
||||
|
||||
echo "Disabling swap..."
|
||||
swapoff -a
|
||||
|
||||
|
|
Loading…
Reference in a new issue