Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/archinstall/lib/general.py
diff options
context:
space:
mode:
Diffstat (limited to 'archinstall/lib/general.py')
-rw-r--r--archinstall/lib/general.py8
1 files changed, 3 insertions, 5 deletions
diff --git a/archinstall/lib/general.py b/archinstall/lib/general.py
index e22e7eed..71981fb6 100644
--- a/archinstall/lib/general.py
+++ b/archinstall/lib/general.py
@@ -69,8 +69,6 @@ def jsonify(obj: Any, safe: bool = True) -> Any:
# a dictionary representation of the object so that it can be
# processed by the json library.
return jsonify(obj.json(), safe)
- if hasattr(obj, '__dump__'):
- return obj.__dump__()
if isinstance(obj, (datetime, date)):
return obj.isoformat()
if isinstance(obj, (list, set, tuple)):
@@ -462,13 +460,13 @@ def run_custom_user_commands(commands :List[str], installation :Installer) -> No
for index, command in enumerate(commands):
script_path = f"/var/tmp/user-command.{index}.sh"
chroot_path = f"{installation.target}/{script_path}"
-
+
info(f'Executing custom command "{command}" ...')
with open(chroot_path, "w") as user_script:
user_script.write(command)
-
+
SysCommand(f"arch-chroot {installation.target} bash {script_path}")
-
+
os.unlink(chroot_path)