first try to fix check_gpt and values

This commit is contained in:
Tobias Powalowski 2011-10-07 09:38:59 +02:00
parent 964a5e2847
commit e46aa49b5b

View file

@ -1904,7 +1904,7 @@ autoprepare() {
} }
check_gpt() { check_gpt() {
GUID_DETECTED=""
[[ "$(parted -s ${DISC} print | grep 'Partition Table: gpt')" ]] && GUID_DETECTED=1 [[ "$(parted -s ${DISC} print | grep 'Partition Table: gpt')" ]] && GUID_DETECTED=1
if [[ "${GUID_DETECTED}" = "" ]] ; then if [[ "${GUID_DETECTED}" = "" ]] ; then
@ -1961,9 +1961,7 @@ partition() {
fi fi
# Leave our loop if the user is done partitioning # Leave our loop if the user is done partitioning
[[ "${DISC}" = "DONE" ]] && break [[ "${DISC}" = "DONE" ]] && break
GUID_DETECTED=""
MSDOS_DETECTED="" MSDOS_DETECTED=""
BIOS_GRUB=""
CHECK_BIOS_BOOT_GRUB2="" CHECK_BIOS_BOOT_GRUB2=""
if ! [[ "${DISC}" = "" ]]; then if ! [[ "${DISC}" = "" ]]; then
if [[ "${GUIDPARAMETER}" = "yes" ]]; then if [[ "${GUIDPARAMETER}" = "yes" ]]; then