fixed guid partsize to 2, 1 is not enough

This commit is contained in:
Tobias Powalowski 2010-08-15 09:53:16 +02:00
parent d6677399df
commit e64de6ec76

View file

@ -1620,7 +1620,7 @@ autoprepare() {
[ "$(which mkfs.jfs 2>/dev/null)" ] && FSOPTS="$FSOPTS jfs JFS" [ "$(which mkfs.jfs 2>/dev/null)" ] && FSOPTS="$FSOPTS jfs JFS"
# create 10MB bios_grub partition for grub2 support # create 10MB bios_grub partition for grub2 support
if [ "$GUIDPARAMETER" = "yes" ]; then if [ "$GUIDPARAMETER" = "yes" ]; then
GUID_PART_SIZE="1" GUID_PART_SIZE="2"
else else
GUID_PART_SIZE="0" GUID_PART_SIZE="0"
fi fi
@ -1826,7 +1826,7 @@ parted_gpt() {
if [ "$CREATE_BIOS_GRUB" = "1" -a "$GUID_DETECTED" = "" ]; then if [ "$CREATE_BIOS_GRUB" = "1" -a "$GUID_DETECTED" = "" ]; then
# assume new partitiontable,if no GUID was already there, # assume new partitiontable,if no GUID was already there,
# no user interaction needed for bios_grub partition, jippie # no user interaction needed for bios_grub partition, jippie
GUID_PART_SIZE="1" GUID_PART_SIZE="2"
parted -s $DISC mkpart 1 ext2 0 $GUID_PART_SIZE >$LOG parted -s $DISC mkpart 1 ext2 0 $GUID_PART_SIZE >$LOG
parted -s $DISC set 1 bios_grub on >$LOG parted -s $DISC set 1 bios_grub on >$LOG
else else