From 397d1828cc7b5300a9d1ec98ac0fd3f623629e03 Mon Sep 17 00:00:00 2001 From: Kay Sievers Date: Tue, 27 Aug 2013 01:00:00 +0200 Subject: [PATCH] test-create-disk.sh: format the partition, not the disk --- test/test-create-disk.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/test-create-disk.sh b/test/test-create-disk.sh index ee8f059..b351795 100755 --- a/test/test-create-disk.sh +++ b/test/test-create-disk.sh @@ -3,13 +3,13 @@ # create GPT table with EFI System Partition rm -f test-disk.img dd if=/dev/null of=test-disk.img bs=1M seek=512 count=1 -parted --script test-disk.img "mklabel gpt" "mkpart ESP fat32 1M 512M" "set 1 boot on" "print" +parted --script test-disk.img "mklabel gpt" "mkpart ESP fat32 1MiB 511MiB" "set 1 boot on" # create FAT32 file system LOOP=$(losetup --show -f -P test-disk.img) -mkfs.vfat -F32 $LOOP +mkfs.vfat -F32 ${LOOP}p1 mkdir -p mnt -mount $LOOP mnt +mount ${LOOP}p1 mnt # install gummiboot mkdir -p mnt/EFI/Boot -- 2.7.4