#search --label --set rootfat HBCD152
#search --label --set rootntfs NTFS
#search --label --set rootkrd KRD
#se face boot din stick ,va fi hd0 iar partitiile sunt msdos1..3, evit erori de search cu if-uri
#export root-uri pentru urmatoarele cfg-uri, eventual sleep pentru UEFI cu USB3
set rootfat=x
set rootntfs=x
set rootkrd=x
if [ -d "(hd0,msdos1)/" ]; then rootfat=hd0,msdos1; fi
if [ -d "(hd0,msdos2)/" ]; then rootntfs=hd0,msdos2; fi
if [ -d "(hd0,msdos3)/" ]; then rootkrd=hd0,msdos3; fi
export rootfat
export rootntfs
export rootkrd
if [ "$grub_platform" = "pc" ]; then
if cpuid -l ; then
configfile /boot/grub/grubpc.cfg
else
configfile /boot/grub/grubpc32.cfg
fi
else
set root=$rootntfs
set prefix=($root)'/boot/grub'
#sleep 1
if [ -z $lockdown ];then
configfile /boot/grub/grubefi.cfg
else
configfile /boot/grub/grubefisec.cfg
fi
fi