-
Notifications
You must be signed in to change notification settings - Fork 353
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update lorax build for pkexec command
- Loading branch information
1 parent
9e0f72a
commit 8b3279e
Showing
4 changed files
with
49 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
From 963d74a7df9502112df4929ca48a5fb7c0910dc8 Mon Sep 17 00:00:00 2001 | ||
From: Adam Kankovsky <[email protected]> | ||
Date: Thu, 3 Oct 2024 09:52:26 +0200 | ||
Subject: [PATCH] Update cleanup for pkexec command | ||
|
||
--- | ||
share/templates.d/99-generic/runtime-cleanup.tmpl | 1 - | ||
share/templates.d/99-generic/runtime-postinstall.tmpl | 4 ++++ | ||
2 files changed, 4 insertions(+), 1 deletion(-) | ||
|
||
diff --git a/share/templates.d/99-generic/runtime-cleanup.tmpl b/share/templates.d/99-generic/runtime-cleanup.tmpl | ||
index 12c45189..200e3bed 100644 | ||
--- a/share/templates.d/99-generic/runtime-cleanup.tmpl | ||
+++ b/share/templates.d/99-generic/runtime-cleanup.tmpl | ||
@@ -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 | ||
diff --git a/share/templates.d/99-generic/runtime-postinstall.tmpl b/share/templates.d/99-generic/runtime-postinstall.tmpl | ||
index 93069746..1a35e4ad 100644 | ||
--- a/share/templates.d/99-generic/runtime-postinstall.tmpl | ||
+++ b/share/templates.d/99-generic/runtime-postinstall.tmpl | ||
@@ -85,6 +85,10 @@ 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" user account | ||
+mkdir -p /home/install-user | ||
+append etc/passwd "install-user:x:1001:1001::/home/install-user:/usr/bin/bash" | ||
+append etc/shadow "install-user::14438:0:99999:7:::" | ||
## remove root password | ||
replace "root:\*:" "root::" etc/shadow | ||
|
||
-- | ||
2.46.2 | ||
|