LUKS: Difference between revisions

Line 97: Line 97:
     local name=$1
     local name=$1
     local mountlocation=$2
     local mountlocation=$2
     sudo umount "$mountlocation"
     sudo umount "$mountlocation" && \
    sudo rm -r "$mountlocation"
     sudo cryptsetup close "$name"
     sudo cryptsetup close "$name"
    sudo rm -r "$mountlocation"
}
}