chroot: add chroot.add_sudo_config()
This commit is contained in:
parent
5329f7a5b0
commit
1cac36b73a
2 changed files with 9 additions and 1 deletions
2
image.py
2
image.py
|
@ -319,6 +319,7 @@ def install_rootfs(
|
|||
user=user,
|
||||
password=profile['password'],
|
||||
)
|
||||
chroot.add_sudo_config(config_name='wheel', privilegee='%wheel', password_required=True)
|
||||
copy_ssh_keys(
|
||||
chroot.path,
|
||||
user=user,
|
||||
|
@ -329,7 +330,6 @@ def install_rootfs(
|
|||
extra_repos=get_kupfer_https(arch).repos,
|
||||
in_chroot=True,
|
||||
),
|
||||
'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():
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue