From 825b3c7e152912e8e50e347f27db2d750e1fe3a8 Mon Sep 17 00:00:00 2001 From: jack Date: Thu, 14 Nov 2024 14:56:08 -0500 Subject: [PATCH 1/3] Add helpful tips for saving config files in a directory --- archinstall/lib/configuration.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/archinstall/lib/configuration.py b/archinstall/lib/configuration.py index 8cac7ffaff..7786a2ef4b 100644 --- a/archinstall/lib/configuration.py +++ b/archinstall/lib/configuration.py @@ -148,7 +148,7 @@ def preview(selection: str) -> Optional[str]: while True: path = input( _( - "Enter a directory for the configuration(s) to be saved (tab completion enabled)\nSave directory: " + 'Into which DIRECTORY should the configuration(s) be saved?\n\n TIPS\n 1. Tab completion is enabled to help you locate a full directory name.\n 2. To persist a configuration file through a reboot, mount a separate drive before running `archinstall`.\n 3. If you are not sure what to choose, try "." or "/"\n\nSave Directory: ' ) ).strip(" ") dest_path = Path(path) From 4f07aba64e0ffb6e0b364bbb4bbbf0b427ebe7d8 Mon Sep 17 00:00:00 2001 From: jack Date: Thu, 14 Nov 2024 15:34:52 -0500 Subject: [PATCH 2/3] flake8 --- archinstall/lib/configuration.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/archinstall/lib/configuration.py b/archinstall/lib/configuration.py index 7786a2ef4b..0f54f827a8 100644 --- a/archinstall/lib/configuration.py +++ b/archinstall/lib/configuration.py @@ -148,7 +148,15 @@ def preview(selection: str) -> Optional[str]: while True: path = input( _( - 'Into which DIRECTORY should the configuration(s) be saved?\n\n TIPS\n 1. Tab completion is enabled to help you locate a full directory name.\n 2. To persist a configuration file through a reboot, mount a separate drive before running `archinstall`.\n 3. If you are not sure what to choose, try "." or "/"\n\nSave Directory: ' + '''\ +Into which DIRECTORY should the configuration(s) be saved? + + TIPS + 1. Tab completion is enabled to help you locate a full directory name. + 2. To persist a configuration file through a reboot, mount a separate drive before running `archinstall`. + 3. If you are not sure what to choose, try "." or "/" + +Save Directory: ''' ) ).strip(" ") dest_path = Path(path) From 3ba7c147538c9630231220d6c4ff7deccaeecf43 Mon Sep 17 00:00:00 2001 From: jack Date: Thu, 14 Nov 2024 15:37:24 -0500 Subject: [PATCH 3/3] Remove periods --- archinstall/lib/configuration.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/archinstall/lib/configuration.py b/archinstall/lib/configuration.py index 0f54f827a8..3021881f85 100644 --- a/archinstall/lib/configuration.py +++ b/archinstall/lib/configuration.py @@ -152,8 +152,8 @@ def preview(selection: str) -> Optional[str]: Into which DIRECTORY should the configuration(s) be saved? TIPS - 1. Tab completion is enabled to help you locate a full directory name. - 2. To persist a configuration file through a reboot, mount a separate drive before running `archinstall`. + 1. Tab completion is enabled to help you locate a full directory name + 2. To persist a configuration file through a reboot, mount a separate drive before running `archinstall` 3. If you are not sure what to choose, try "." or "/" Save Directory: '''