diff options
Diffstat (limited to 'sys-fs/dmc/files/dmc')
-rwxr-xr-x | sys-fs/dmc/files/dmc | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/sys-fs/dmc/files/dmc b/sys-fs/dmc/files/dmc index 2a2febc..e3d03d8 100755 --- a/sys-fs/dmc/files/dmc +++ b/sys-fs/dmc/files/dmc | |||
@@ -111,8 +111,14 @@ X | |||
111 | # /media is a good idea because the desktop environments will show | 111 | # /media is a good idea because the desktop environments will show |
112 | # device icons for it and make it easy to use for GUI users. | 112 | # device icons for it and make it easy to use for GUI users. |
113 | # unfortunately it stops the automounter from doing its job. why? | 113 | # unfortunately it stops the automounter from doing its job. why? |
114 | if ( -w "/dev/shm" ) { | 114 | # |
115 | $media = "/dev/shm"; | 115 | # /dev/shm seemed like a good idea to not litter /mnt with lots |
116 | # of mount points, but then some process decided to delete files | ||
117 | # from RAM without paying attention to file system boundaries. WTF | ||
118 | # (apparently the sandbox rules excempt shm from protection...) | ||
119 | # | ||
120 | if ( -w "/mnt" ) { | ||
121 | $media = "/mnt"; | ||
116 | } else { | 122 | } else { |
117 | $media = "/tmp"; | 123 | $media = "/tmp"; |
118 | } | 124 | } |
@@ -445,7 +451,7 @@ dmc - Command line UX frontend to dm-crypt's cryptsetup with support for multipl | |||
445 | dmc -E <volume> # erase some or all passwords and keys | 451 | dmc -E <volume> # erase some or all passwords and keys |
446 | 452 | ||
447 | <size> may end in M for megabytes, G for gigabytes, T for terabytes... | 453 | <size> may end in M for megabytes, G for gigabytes, T for terabytes... |
448 | If <mountpath> is omitted, /dev/shm/<mapper> is created instead. | 454 | If <mountpath> is omitted, /mnt/<mapper> is created instead. |
449 | Combining action flags such as -c, -e and -d produces unuseful effects. | 455 | Combining action flags such as -c, -e and -d produces unuseful effects. |
450 | 456 | ||
451 | Options: | 457 | Options: |