parted: drop not needed anymore

Signed-off-by: Robert Nelson <robertcnelson@gmail.com>
pull/22/head
Robert Nelson 12 years ago
parent 16fc4a46ea
commit 1939707f8a

@ -100,7 +100,6 @@ detect_software () {
check_for_command mkfs.vfat dosfstools check_for_command mkfs.vfat dosfstools
check_for_command wget wget check_for_command wget wget
check_for_command parted parted
check_for_command dpkg dpkg check_for_command dpkg dpkg
check_for_command patch patch check_for_command patch patch
check_for_command mkimage u-boot-tools check_for_command mkimage u-boot-tools
@ -108,9 +107,9 @@ detect_software () {
if [ "${NEEDS_COMMAND}" ] ; then if [ "${NEEDS_COMMAND}" ] ; then
echo "" echo ""
echo "Your system is missing some dependencies" echo "Your system is missing some dependencies"
echo "Ubuntu/Debian: sudo apt-get install wget dosfstools parted u-boot-tools" echo "Ubuntu/Debian: sudo apt-get install wget dosfstools u-boot-tools"
echo "Fedora: as root: yum install wget dosfstools parted dpkg patch uboot-tools" echo "Fedora: as root: yum install wget dosfstools dpkg patch uboot-tools"
echo "Gentoo: emerge wget dosfstools parted dpkg u-boot-tools" echo "Gentoo: emerge wget dosfstools dpkg u-boot-tools"
echo "" echo ""
exit exit
fi fi
@ -1089,7 +1088,6 @@ create_custom_netinstall_image () {
drive_error_ro () { drive_error_ro () {
echo "-----------------------------" echo "-----------------------------"
echo "Error: [LC_ALL=C parted --script ${MMC} mklabel msdos] failed..."
echo "Error: for some reason your SD card is not writable..." echo "Error: for some reason your SD card is not writable..."
echo "Check: is the write protect lever set the locked position?" echo "Check: is the write protect lever set the locked position?"
echo "Check: do you have another SD card reader?" echo "Check: do you have another SD card reader?"
@ -1114,8 +1112,7 @@ unmount_all_drive_partitions () {
done done
echo "Zeroing out Partition Table" echo "Zeroing out Partition Table"
dd if=/dev/zero of=${MMC} bs=1024 count=1024 dd if=/dev/zero of=${MMC} bs=1M count=16 || drive_error_ro
LC_ALL=C parted --script ${MMC} mklabel msdos || drive_error_ro
sync sync
} }
@ -1166,12 +1163,10 @@ create_partitions () {
unset bootloader_installed unset bootloader_installed
if [ "x${conf_boot_fstype}" = "xfat" ] ; then if [ "x${conf_boot_fstype}" = "xfat" ] ; then
parted_format="fat16"
mount_partition_format="vfat" mount_partition_format="vfat"
mkfs="mkfs.vfat -F 16" mkfs="mkfs.vfat -F 16"
mkfs_label="-n ${BOOT_LABEL}" mkfs_label="-n ${BOOT_LABEL}"
else else
parted_format="ext2"
mount_partition_format="ext2" mount_partition_format="ext2"
mkfs="mkfs.ext2" mkfs="mkfs.ext2"
mkfs_label="-L ${BOOT_LABEL}" mkfs_label="-L ${BOOT_LABEL}"
@ -1187,7 +1182,7 @@ create_partitions () {
;; ;;
dd_spl_uboot_boot) dd_spl_uboot_boot)
dd_spl_uboot_boot dd_spl_uboot_boot
LC_ALL=C parted --script ${MMC} mkpart primary ${parted_format} ${conf_boot_startmb} ${conf_boot_endmb} sfdisk_boot_partition
;; ;;
*) *)
sfdisk_boot_partition sfdisk_boot_partition

Loading…
Cancel
Save