Skip to content
Snippets Groups Projects
Commit 2bc72ff3 authored by Moritz Holtz's avatar Moritz Holtz
Browse files

made grub cpuid secure-boot safe

parent 728294d5
No related branches found
No related tags found
2 merge requests!2Ss16,!1WIP: Ws16
...@@ -26,6 +26,9 @@ function set32 { ...@@ -26,6 +26,9 @@ function set32 {
function guesscpu { function guesscpu {
if insmod cpuid
then
echo "cpuid funktioniert, lasst uns die Architektur überprüfen!"
if cpuid -l if cpuid -l
then then
echo "Dein System scheint ein 64-bit System zu sein." echo "Dein System scheint ein 64-bit System zu sein."
...@@ -34,6 +37,11 @@ function guesscpu { ...@@ -34,6 +37,11 @@ function guesscpu {
echo "Dein System scheint ein 32-bit System zu sein." echo "Dein System scheint ein 32-bit System zu sein."
set32 set32
fi 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 "Die weiseste Wahl sollte $bits bits mit $iso und $isoinitrd zu sein"
echo echo
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment