Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/examples/only_hd.py
diff options
context:
space:
mode:
authorDaniel <blackrabbit256@gmail.com>2022-03-01 03:03:37 +1100
committerGitHub <noreply@github.com>2022-02-28 17:03:37 +0100
commit35a19a616aee602a849097411cc0254a27c3f9b7 (patch)
tree5b1db96f151fae55f7b76e06066fc747daf6b070 /examples/only_hd.py
parent04e3880d8f41a87889690609e20ab1220700c163 (diff)
Menu option save config (#1009)
* Add new save config menu option * Update * Fixed issue with merging * Fixed merge issue (I think) Co-authored-by: Daniel Girtler <girtler.daniel@gmail.com> Co-authored-by: Anton Hvornum <anton.feeds@gmail.com>
Diffstat (limited to 'examples/only_hd.py')
-rw-r--r--examples/only_hd.py10
1 files changed, 8 insertions, 2 deletions
diff --git a/examples/only_hd.py b/examples/only_hd.py
index 5d081b14..76a616db 100644
--- a/examples/only_hd.py
+++ b/examples/only_hd.py
@@ -4,6 +4,8 @@ import os
import pathlib
import archinstall
+from archinstall import ConfigurationOutput
+
class OnlyHDMenu(archinstall.GlobalMenu):
def _setup_selection_menu_options(self):
@@ -23,7 +25,7 @@ class OnlyHDMenu(archinstall.GlobalMenu):
self.enable(entry)
else:
self.option(entry).set_enabled(False)
- self._update_install()
+ self._update_install_text()
def _missing_configs(self):
""" overloaded method """
@@ -122,7 +124,11 @@ if not archinstall.check_mirror_reachable():
if not archinstall.arguments.get('silent'):
ask_user_questions()
-archinstall.output_configs(archinstall.arguments,show=False if archinstall.arguments.get('silent') else True)
+
+config_output = ConfigurationOutput(archinstall.arguments)
+if not archinstall.arguments.get('silent'):
+ config_output.show()
+config_output.save()
if archinstall.arguments.get('dry_run'):
exit(0)