Fixed reference positions of system.map & signing keys to ensure deletion | fixed read response with reboot

This commit is contained in:
optout 2024-04-11 19:19:06 +00:00
parent 7525888248
commit 08ad220f6c
No known key found for this signature in database
GPG Key ID: 13BA4BD4C14170C0
1 changed files with 8 additions and 10 deletions

View File

@ -130,17 +130,15 @@ case "${distroId,,}" in
# Remove sysmap/signing keys
rm /lib/modules/"$KVER"/source/certs/signing_key*
rm /lib/modules/"$KVER"/source/System.map
rm /lib/modules/"$KVER"/source
rm /lib/modules/"$KVER"/build
rm /usr/src/linux-hardened-"$KVER"/certs/signing_key*
rm /usr/src/linux-hardened-"$KVER"/System.map
echo "Congrats! Your custom kernel based on the PlagueOS kernel configuration has been installed."
echo "Reboot now? (y/N): "
read reboot_opt
if [[ "$reboot_opt" == "Y" ]]; then
reboot
read -p "Reboot now? (y/N): " response
response=$(echo $response | tr '[:upper:]' '[:lower:]')
if [[ $response == "y" ]]; then
reboot
else
exit
echo "Exiting..."
fi