mirror of
https://github.com/Llewellynvdm/Tomb.git
synced 2024-11-05 04:47:56 +00:00
fix umount
and some notes
This commit is contained in:
parent
fe0e1dfabd
commit
c47ab2d68b
9
src/tomb
9
src/tomb
@ -134,7 +134,7 @@ PATH=/usr/bin:/usr/sbin:/bin:/sbin
|
||||
### main()
|
||||
###
|
||||
|
||||
notice "tomb - simple commandline tool for encrypted storage"
|
||||
notice "Tomb - simple commandline tool for encrypted storage"
|
||||
act "version $VERSION ($DATE) by Denis J. Roio <jaromil@dyne.org>"
|
||||
#act "invoked with args \"$*\" "
|
||||
#act "running on `date`"
|
||||
@ -422,7 +422,12 @@ mount_tomb() {
|
||||
act "encrypted storage filesystem check"
|
||||
fsck.ext3 -p -C0 /dev/mapper/${mapper}
|
||||
|
||||
|
||||
|
||||
mount -t ext3 /dev/mapper/${mapper} ${MOUNT}
|
||||
# TODO: possible mount options to try out:
|
||||
# -o rw,noatime,nodev,data=writeback,commit=30
|
||||
# -o rw,noatime,nodev
|
||||
|
||||
notice "encrypted storage $FILE succesfully mounted on $MOUNT"
|
||||
append_line /var/run/tombs "${MOUNT} ${mapper} ${nstloop}"
|
||||
@ -478,7 +483,7 @@ umount_tomb() {
|
||||
exit 0
|
||||
fi
|
||||
|
||||
losetup -d "`echo $mapper | cut -d. -f4`"
|
||||
losetup -d "/dev/`echo $mapper | cut -d. -f4`"
|
||||
|
||||
# echo ${nstloop} | grep loop 1>/dev/null 2>/dev/null
|
||||
# # if it's a loopback then we need to do losetup -d
|
||||
|
Loading…
Reference in New Issue
Block a user