Skip to content
Snippets Groups Projects
Commit db13c698 authored by Moritz Holtz's avatar Moritz Holtz Committed by osak buildhauer user
Browse files

made grub cpuid secure-boot safe

parent b2175a69
No related branches found
No related tags found
1 merge request!3WIP: Ws16
......@@ -26,6 +26,9 @@ function set32 {
function guesscpu {
if insmod cpuid
then
echo "cpuid funktioniert, lasst uns die Architektur überprüfen!"
if cpuid -l
then
echo "Dein System scheint ein 64-bit System zu sein."
......@@ -34,6 +37,11 @@ function guesscpu {
echo "Dein System scheint ein 32-bit System zu sein."
set32
fi
else
echo "cpuid kann nicht geladen werden, wahrscheinlich ist Secure Boot an."
echo "Das System ist dann wahrscheinlich ein 64-bit System."
set64
fi
echo "Die weiseste Wahl sollte $bits bits mit $iso und $isoinitrd zu sein"
echo
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment