Fix umount/remove of LV free

This commit is contained in:
Jeremy Gardais 2023-06-28 10:55:55 +02:00
parent 064ac3b851
commit 30ffe704a3
Signed by: jegardai
GPG Key ID: E759BAA22501AF32
1 changed files with 3 additions and 3 deletions

View File

@ -35,10 +35,10 @@ apt update
apt --assume-yes install -- wget apt --assume-yes install -- wget
# Remove last partition with all free space # Remove last partition with all free space
umount /dev/sys/free umount /mnt/free
lvremove --force /dev/sys/free lvremove --force /dev/mapper/vg-free
/bin/rmdir --force -- /mnt/free /bin/rmdir --force -- /mnt/free
/bin/sed --in-place -- '/lv_free/d' /etc/fstab /bin/sed --in-place -- ';/mnt/free;d' /etc/fstab
# Allow root connection with password # Allow root connection with password
/bin/sed --in-place -- 's/\(^\|^\#\)\(PermitRootLogin\).*/\2 yes/g' /etc/ssh/sshd_config /bin/sed --in-place -- 's/\(^\|^\#\)\(PermitRootLogin\).*/\2 yes/g' /etc/ssh/sshd_config