-
Notifications
You must be signed in to change notification settings - Fork 697
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #12531 from jan-cerny/bootc_bash_remediation_condi…
…tions Add special conditions for bootable containers
- Loading branch information
Showing
2 changed files
with
23 additions
and
2 deletions.
There are no files selected for viewing
9 changes: 7 additions & 2 deletions
9
linux_os/guide/system/accounts/accounts-physical/disable_ctrlaltdel_reboot/bash/shared.sh
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 |
---|---|---|
@@ -1,3 +1,8 @@ | ||
# platform = multi_platform_all | ||
systemctl disable --now ctrl-alt-del.target | ||
systemctl mask --now ctrl-alt-del.target | ||
if {{{ bash_bootc_build() }}} ; then | ||
systemctl disable ctrl-alt-del.target | ||
systemctl mask ctrl-alt-del.target | ||
else | ||
systemctl disable --now ctrl-alt-del.target | ||
systemctl mask --now ctrl-alt-del.target | ||
fi |
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