fix: remove redundant pkexec line in kargs commands (#539)

Co-authored-by: RoyalOughtness <129108030+RoyalOughtness@users.noreply.github.com>
This commit is contained in:
mintpilo
2024-11-10 17:28:25 -05:00
committed by GitHub
parent 29927c2db0
commit 290d1ec895

View File

@@ -1,6 +1,6 @@
# Add additional boot parameters for hardening (requires reboot)
set-kargs-hardening:
#!/usr/bin/pkexec /usr/bin/bash
#!/usr/bin/bash
read -p "Do you need support for 32-bit processes/syscalls? (This is mostly used by legacy software, with some exceptions, such as Steam) [y/N]: " YES
if [[ "$YES" == [Yy]* ]]; then
echo "Keeping 32-bit support."
@@ -51,7 +51,7 @@ set-kargs-hardening:
# Remove all hardening boot parameters (requires reboot)
remove-kargs-hardening:
#!/usr/bin/pkexec /usr/bin/bash
#!/usr/bin/bash
rpm-ostree kargs \
--delete-if-present="init_on_alloc=1" \
--delete-if-present="init_on_free=1" \