Fix removal of mountpoint

This commit is contained in:
gardouille 2023-06-28 11:12:52 +02:00
parent 30ffe704a3
commit c14cc7a7a1
Signed by: gardouille
GPG Key ID: E759BAA22501AF32
1 changed files with 2 additions and 2 deletions

View File

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