--- trunk/installer-simple/bin/installer.sh.in 2014/07/03 08:01:05 2653 +++ trunk/installer-simple/bin/installer.sh.in 2014/07/03 08:24:39 2654 @@ -129,30 +129,30 @@ hwinfo="$(hwinfo --bios --storage --pci --gfxcard --sys)" - ## check for special devices/clients: - ## if zotac a zotac and the disk is a removeable device, then add rootdelay to kernelcmd - #local removable=0 - #if [[ ! -z $(echo "${hwinfo}" | grep -i zotac) ]] - #then + # check for special devices/clients: + # if zotac a zotac and the disk is a removeable device, then add rootdelay to kernelcmd + local removable=0 + if [[ ! -z $(echo "${hwinfo}" | grep -i zotac) ]] + then #for i in /sys/block/[hs]d*/removable #do - #if [[ $(< ${i}) = 1 ]] - #then - #removable=1 - #fi + # if [[ $(< ${i}) = 1 ]] + # then + # removable=1 + # fi #done - ## smartcard = udevadm info -n /dev/sda -a | grep -i 'configuration.*card' + # smartcard = udevadm info -n /dev/sda -a | grep -i 'configuration.*card' - ## only add this for grub legacy, grub2 detect these settings on its own - #export GRUBLEGACYOPTS="rootdelay=8" - ## there are to zotac types in the wild, nvidia based gfx and intel - #if [[ ! -z $(echo "${hwinfo}" | grep -i nouveau) ]] - #then - #export SPECIALDEVICE="zotac_nvidia" - #else - #export SPECIALDEVICE="zotac_intel" - #fi - #fi + # only add this for grub legacy, grub2 detect these settings on its own + export GRUBLEGACYOPTS="rootdelay=8" + # there are to zotac types in the wild, nvidia based gfx and intel + if [[ ! -z $(echo "${hwinfo}" | grep -i nouveau) ]] + then + export SPECIALDEVICE="zotac_nvidia" + else + export SPECIALDEVICE="zotac_intel" + fi + fi # check for special devices/clients: # if a rangee and disk ist smaller then 256mb move partion one block further ahead