We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 19a0d49 commit c1c46aeCopy full SHA for c1c46ae
archinstall/lib/installer.py
@@ -526,8 +526,7 @@ def genfstab(self, flags: str = '-pU') -> None:
526
fp.write(f'{entry}\n')
527
528
def set_hostname(self, hostname: str) -> None:
529
- with open(f'{self.target}/etc/hostname', 'w') as fh:
530
- fh.write(hostname + '\n')
+ (self.target / 'etc/hostname').write_text(hostname + '\n')
531
532
def set_locale(self, locale_config: LocaleConfiguration) -> bool:
533
modifier = ''
0 commit comments