MCPcopy Create free account
hub / github.com/archlinux/archinstall / unsafe_config

Method unsafe_config

archinstall/lib/args.py:177–192  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

175 custom_commands: list[str] = field(default_factory=list)
176
177 def unsafe_config(self) -> dict[ArchConfigType, Any]:
178 config: dict[ArchConfigType, list[UserSerialization] | str | None] = {}
179
180 if self.auth_config:
181 if self.auth_config.users:
182 config[ArchConfigType.USERS] = [user.json() for user in self.auth_config.users]
183
184 if self.auth_config.root_enc_password:
185 config[ArchConfigType.ROOT_ENC_PASSWORD] = self.auth_config.root_enc_password.enc_password
186
187 if self.disk_config:
188 disk_encryption = self.disk_config.disk_encryption
189 if disk_encryption and disk_encryption.encryption_password:
190 config[ArchConfigType.ENCRYPTION_PASSWORD] = disk_encryption.encryption_password.plaintext
191
192 return config
193
194 def safe_config(self) -> dict[ArchConfigType, Any]:
195 base_config: dict[ArchConfigType, Any] = {

Callers 1

Calls 1

jsonMethod · 0.45

Tested by

no test coverage detected