From 3cd7dc24c7ebe8911978380d75fd79e0c581060a Mon Sep 17 00:00:00 2001 From: Werner Llácer Date: Thu, 3 Feb 2022 00:02:30 +0100 Subject: Command locales (second batch) (#886) * flexibilize the definition of execution locale for OS commands executed via the SysCommand* interface. Defined a storage argument which holds the default Added functions to unset the program own locales reset to the program default locales set a specific locale A decorator to execute functions in the host locale environment * rename decorator local_environ to host_locale_environ created a simmetric decorator c_locale_environ, to make a routine work with the C locale whatever is set * Correct definition of btrfs standard layout * Added error handling * Fixed issue where archinstall.Boot() would raise an exception in vain * Added debugging for SysCommandWorker() * Added some debugging * Tweaking debug a bit * Tweaking debug * Adding more debug * Adding more debug * Removed some debugging * Adding more debug * Adding more debug * Adding more debug * Adding more debug * Adding more debug * Adding more debug * Adding more debug * Adding more debug * Adding more debug * Adding more debug * Adding more debug * Removed soem debugging * Removed soem debugging * Testing a revert * Adding back the reverted change, adding lofile * Redirecting stdout to /dev/null for testing (to avoid interrupting the fork) * Reverted debug changes * Testing os.system() Co-authored-by: Anton Hvornum --- archinstall/lib/storage.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'archinstall/lib/storage.py') diff --git a/archinstall/lib/storage.py b/archinstall/lib/storage.py index d6380de3..aa4a3667 100644 --- a/archinstall/lib/storage.py +++ b/archinstall/lib/storage.py @@ -22,4 +22,6 @@ storage = { 'ENC_IDENTIFIER': 'ainst', 'DISK_TIMEOUTS' : 1, # seconds 'DISK_RETRY_ATTEMPTS' : 20, # RETRY_ATTEMPTS * DISK_TIMEOUTS is used in disk operations + 'CMD_LOCALE':{'LC_ALL':'C'}, # default locale for execution commands. Can be overriden with set_cmd_locale() + 'CMD_LOCALE_DEFAULT':{'LC_ALL':'C'}, # should be the same as the former. Not be used except in reset_cmd_locale() } -- cgit v1.2.3-70-g09d2