newdisk-automator.sh 331 B

1234567891011121314151617
  1. DEVICE=$1
  2. SWAP_SIZE=$2
  3. CONDOR_SIZE=$3
  4. TEMP_SIZE=$4
  5. VM_SIZE=$5
  6. # oartitioning the disk
  7. sfdisk $DEVICE <<-sfdisk-script-end
  8. # Create a new partition table on the specified disk, and create a new Linux LVM partition
  9. #
  10. # partition table info
  11. label: gpt
  12. #
  13. # partitions info
  14. #start size type bootable
  15. , ,31 ,
  16. sfdisk-script-end