Skip to content

Commit

Permalink
Update template for anaconda webui to start as user
Browse files Browse the repository at this point in the history
This commit is about adding the pkexec command to the lorax build to make it possible to run anaconda webui as a nonroot user and creating a new user to run the installer under.
  • Loading branch information
adamkankovsky authored and bcl committed Oct 9, 2024
1 parent 27d250d commit f46f2a6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 0 additions & 1 deletion share/templates.d/99-generic/runtime-cleanup.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,6 @@ removefrom openssh-clients /usr/libexec/*
removefrom openssh-server /etc/ssh/* /usr/libexec/openssh/sftp-server
removefrom pam /usr/share/locale/*
removefrom policycoreutils /etc/* /usr/bin/* /usr/share/locale/*
removefrom polkit /usr/bin/*
removefrom popt /usr/share/locale/*
removefrom procps-ng /usr/bin/free /usr/bin/pgrep /usr/bin/pkill
removefrom procps-ng /usr/bin/pmap /usr/bin/pwdx /usr/bin/skill /usr/bin/slabtop
Expand Down
3 changes: 3 additions & 0 deletions share/templates.d/99-generic/runtime-postinstall.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,9 @@ symlink /etc/systemd/system/inst.rngd.service etc/systemd/system/basic.target.wa
## set up "install" user account
append etc/passwd "install:x:0:0:root:/root:/usr/libexec/anaconda/run-anaconda"
append etc/shadow "install::14438:0:99999:7:::"
## set up "install-user" who is needed to start webui without root permission in boot iso.
append etc/passwd "install-user:x:1001:1001::/tmp/install-user:/usr/bin/bash"
append etc/shadow "install-user::14438:0:99999:7:::"
## remove root password
replace "root:\*:" "root::" etc/shadow

Expand Down

0 comments on commit f46f2a6

Please sign in to comment.