diff --git a/README.md b/README.md index 19bf6e9..e6a9360 100644 --- a/README.md +++ b/README.md @@ -12,7 +12,7 @@ Is constituted by: PESTO is a utility software that allows you to make some operations on hard disks or SSDs, like: - ERASE: Wipe all data on the selected drive. - SMART: Check SMART data of the selected drive to give an estimate of the operating status of the device. -- mountISO: Load an operating system image on the selected drive. +- WRITE: Load an operating system image on the selected drive. - LOAD TO TARALLO: Utility that can communicate with TARALLO, sending all the necessary data to add the selected device to the inventory. `pinolo.py` is the user interface of the software with which the user can perform all the operations on the drives. This program by itself will be useless if not coupled with the server `basilico.py`. This one is the heart of PESTO: it performs all the commands that the user send to him, constantly sending back informations to the client that shows them to the user in a more human friendly way. @@ -83,7 +83,7 @@ LOCKFILE_PATH=/var/run/basilico.pid TARALLO_URL=http://127.0.0.1:8080 # Tarallo token, default none. This is an example token. TARALLO_TOKEN=yoLeCHmEhNNseN0BlG0s3A:ksfPYziGg7ebj0goT0Zc7pbmQEIYvZpRTIkwuscAM_k -# If true, no destructive actions will be performed: no badblocks, no trimming, no mountISO. Default false. +# If true, no destructive actions will be performed: no badblocks, no trimming, no write. Default false. TEST_MODE=1 ``` diff --git a/basilico.py b/basilico.py index 827249d..6e50b3a 100755 --- a/basilico.py +++ b/basilico.py @@ -330,7 +330,7 @@ def dispatch_command(self, cmd: str, args: str) -> (Optional[Callable[[str, str] "smartctl": self.get_smartctl, "queued_smartctl": self.queued_get_smartctl, "queued_badblocks": self.badblocks, - "queued_mountISO": self.mountISO, + "queued_write": self.write, "queued_sleep": self.sleep, "queued_umount": self.umount, "upload_to_tarallo": self.upload_to_tarallo, @@ -617,7 +617,7 @@ def _get_last_linux_partition_path_and_number_from_lsblk(lsblk_json: dict) -> tu last_linux_entry = entry["path"], (entry["partn"] if "partn" in entry else i) return last_linux_entry - def mountISO(self, _cmd: str, dev_and_iso: str): + def write(self, _cmd: str, dev_and_iso: str): parts: list[Optional[str]] = dev_and_iso.split(" ", 1) while len(parts) < 2: parts.append(None) diff --git a/constants.py b/constants.py index 493b680..a75f69c 100644 --- a/constants.py +++ b/constants.py @@ -59,7 +59,7 @@ "queued_badblocks": "Erase", "queued_smartctl": "Smart Check", "smartctl": "Smart Check", - "queued_mountISO": "Load System", + "queued_write": "Load System", "queued_sleep": "HDD Stop", "queued_upload_to_tarallo": "Upload Data", } diff --git a/dialogs/NetworkSettings.py b/dialogs/NetworkSettings.py index e597182..7016414 100644 --- a/dialogs/NetworkSettings.py +++ b/dialogs/NetworkSettings.py @@ -192,7 +192,7 @@ def autocomplete_port(self, completion): def find_image(self): """ This function opens a different dialog if - the user is in local or remote mode to search for a mountISO image. + the user is in local or remote mode to search for a write image. """ if self.serverModeComboBox.currentText() == REMOTE_MODE: diff --git a/pinolo.py b/pinolo.py index 13ae2a6..a647fc6 100644 --- a/pinolo.py +++ b/pinolo.py @@ -382,7 +382,7 @@ def standard_procedure(self): """This function send to the server a sequence of commands: - queued_badblocks - queued_smartctl - - queued_mountISO (if the mountISO flag on the dialog is checked) + - queued_write (if the write flag on the dialog is checked) - queued_sleep """ @@ -431,8 +431,8 @@ def smart_check(self): self.send_command(f"queued_smartctl {drive.name}") def load_system(self, standard_procedure=False): - """This function send to the server a queued_mountISO command. - If "std" is True it will skip the mountISO dialog.""" + """This function send to the server a queued_write command. + If "std" is True it will skip the write dialog.""" rows = self.drivesTableView.selectionModel().selectedRows() if len(rows) == 0: return @@ -453,7 +453,7 @@ def load_system(self, standard_procedure=False): for drive in drives: print(f"GUI: Mounting {image} to {drive.name}") - self.send_command(f"queued_mountISO {drive.name} {image}") + self.send_command(f"queued_write {drive.name} {image}") def _clear_tables(self): self.drivesTableViewModel.clear() @@ -600,7 +600,7 @@ def _format_process_type(command: str): return "Erase" case "queued_smartctl": return "Smart check" - case "queued_mountISO": + case "queued_write": return "Load system" case "queued_umount": return "Umount"