added volume plugin icons
fixed small bugs in error output fixed some subprocess.communicate mistakes fixed display bug in partition plugin
This commit is contained in:
parent
2d7b34afaa
commit
5846c3b0f8
15 changed files with 16 additions and 16 deletions
|
@ -1,5 +1,5 @@
|
|||
Name = Mount and umount volumes
|
||||
Link = Main
|
||||
Link = Activation
|
||||
|
||||
|
||||
Title {
|
||||
|
|
BIN
pythonrewrite/plugins/volume_mount/plugin_icon.png
Normal file
BIN
pythonrewrite/plugins/volume_mount/plugin_icon.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 4.4 KiB |
|
@ -37,7 +37,7 @@ class volume_mount(CryptoBoxPlugin.CryptoBoxPlugin):
|
|||
def __doMountPlain(self):
|
||||
if self.container.isMounted():
|
||||
self.hdf["Data.Warning"] = "Plugins.volume_mount.IsAlreadyMounted"
|
||||
self.cbox.log.info("the device (%s) is already mounted" % device)
|
||||
self.cbox.log.info("the device (%s) is already mounted" % self.device)
|
||||
return "volume_status"
|
||||
if self.container.getType() != self.container.Types["plain"]:
|
||||
## not a plain container - fail silently
|
||||
|
@ -61,11 +61,11 @@ class volume_mount(CryptoBoxPlugin.CryptoBoxPlugin):
|
|||
def __doMountLuks(self, pw):
|
||||
if self.container.isMounted():
|
||||
self.hdf["Data.Warning"] = "Plugins.volume_mount.IsAlreadyMounted"
|
||||
self.cbox.log.info("the device (%s) is already mounted" % device)
|
||||
self.cbox.log.info("the device (%s) is already mounted" % self.device)
|
||||
return "volume_status"
|
||||
if not pw:
|
||||
self.dataset["Data.Warning"] = "EmptyPassword"
|
||||
self.log.info("no password was supplied for mounting of device: '%s'" % device)
|
||||
self.log.info("no password was supplied for mounting of device: '%s'" % self.device)
|
||||
return "volume_status"
|
||||
if self.container.getType() != self.container.Types["luks"]:
|
||||
## not a luks container - fail silently
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue