diff options
Diffstat (limited to 'snippets/pre_partition_select')
-rw-r--r-- | snippets/pre_partition_select | 26 |
1 files changed, 24 insertions, 2 deletions
diff --git a/snippets/pre_partition_select b/snippets/pre_partition_select index a4e1bf52..f9cac1e6 100644 --- a/snippets/pre_partition_select +++ b/snippets/pre_partition_select @@ -1,11 +1,33 @@ +# partition details calculation + # Determine how many drives we have set \$(list-harddrives) let numd=\$#/2 d1=\$1 d2=\$3 +# Determine architecture-specific partitioning needs +EFI_PART="" +PPC_PREP_PART="" +BOOT_PART="" + +case $(uname -m) in + ia64) + EFI_PART="part /boot/efi --fstype vfat --size 200 --recommended" + ;; + ppc*) + PPC_PREP_PART="part None --fstype 'PPC PReP Boot' --size 8" + BOOT_PART="part /boot --fstype ext3 --size 200 --recommended" + ;; + *) + BOOT_PART="part /boot --fstype ext3 --size 200 --recommended" + ;; +esac + cat << EOF > /tmp/partinfo +\$EFI_PART +\$PPC_PREP_PART +\$BOOT_PART part / --fstype ext3 --size=1024 --grow --ondisk=\$d1 --asprimary -part swap --size=1024 --ondisk=\$d1 --asprimary +part swap --recommended --ondisk=\$d1 --asprimary EOF - |