MCPcopy Index your code
hub / github.com/archlinux/archinstall / save_user_config

Method save_user_config

archinstall/lib/args.py:418–426  ·  view source on GitHub ↗
(self, dest_path: Path)

Source from the content-addressed store, hash-verified

416 self.save_user_creds(save_path, password=password)
417
418 def save_user_config(self, dest_path: Path) -> None:
419 if not is_valid_path(dest_path):
420 error(f'Invalid path {dest_path}. User configuration could not be saved.')
421 return
422
423 target = dest_path / USER_CONFIG_FILE
424 data = self.user_config_to_json()
425 target.write_text(data)
426 target.chmod(stat.S_IRUSR | stat.S_IWUSR | stat.S_IRGRP)
427
428 def save_user_creds(
429 self,

Callers 2

saveMethod · 0.95
save_configFunction · 0.80

Calls 3

user_config_to_jsonMethod · 0.95
is_valid_pathFunction · 0.90
errorFunction · 0.90

Tested by

no test coverage detected