#!/bin/bash #RPI partitionning : DEFAULT="" NEW_PART=n PRIMARY=p CHANGE_TYPE=t CHANGE_BOOTFLAG=a APPLY=w PART_BOOT=1 PART_BOOT_FIRST_SECTOR=${DEFAULT} PART_BOOT_SIZE="+128M" PART_ROOT=2 PART_ROOT_FIRST_SECTOR=${DEFAULT} PART_ROOT_SIZE=${DEFAULT} TYPE_FAT32LBA=c FDISK_SCRIPT="${NEW_PART}\n${PRIMARY}\n${PART_BOOT}\n${PART_BOOT_FIRST_SECTOR}\n${PART_BOOT_SIZE}\n${CHANGE_TYPE}\n${TYPE_FAT32LBA}\n${NEW_PART}\n${PRIMARY}\n${PART_ROOT}\n${PART_ROOT_FIRST_SECTOR}\n${PART_ROOT_SIZE}\n${CHANGE_BOOTFLAG}\n${PART_BOOT}\n${CHANGE_BOOTFLAG}\n${PART_ROOT}\n${APPLY}\n" function preImgCreation() { title "Creating Banana Pro image" return 0 } function postPrepareChroot() { #Nothing to do. (Except replacing default function.) return 0 } function bunrningBootloader() { #Nothing to do. (Except replacing default function.) return 0 } function copyingCustomSystem() { #Nothing to do. (Except replacing default function.) return 0 }