diff options
author | Kay Sievers <kay@vrfy.org> | 2013-08-27 01:00:00 +0200 |
---|---|---|
committer | Kay Sievers <kay@vrfy.org> | 2013-09-09 13:11:55 +0200 |
commit | 397d1828cc7b5300a9d1ec98ac0fd3f623629e03 (patch) | |
tree | 8060e0524a53e3e0cb169d501e6f5ad31d6ed4e9 | |
parent | f43c1cc39f6c6176ea17bc747211f35ecd590017 (diff) |
test-create-disk.sh: format the partition, not the disk
-rwxr-xr-x | test/test-create-disk.sh | 6 |
1 files 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 |