image.install_rootfs(): write /etc/hostname

This commit is contained in:
InsanePrawn 2022-08-11 07:14:55 +02:00
parent fe6fd7dfb5
commit bcf7450235

View file

@ -328,6 +328,7 @@ def install_rootfs(
files = {
'etc/pacman.conf': get_base_distro(arch).get_pacman_conf(check_space=True, extra_repos=get_kupfer_https(arch).repos),
'etc/sudoers.d/wheel': "# allow members of group wheel to execute any command\n%wheel ALL=(ALL:ALL) ALL\n",
'etc/hostname': profile['hostname'],
}
for target, content in files.items():
with open(os.path.join(chroot.path, target.lstrip('/')), 'w') as file: