Lines Matching +full:partition +full:-

36 uuid="........-....-....-....-............"
37 zero="00000000-0000-0000-0000-000000000000"
41 atf_check -s exit:0 -o empty -e empty "$@"
47 atf_check -s exit:0 -e empty -o inline:"$inline" "$@"
53 atf_check -s exit:0 -e empty -o match:"$match" "$@"
59 atf_check -s exit:0 -o empty -e match:"$match" "$@"
65 atf_check -s exit:0 -e empty -o file:"$file" "$@"
71 atf_check -s exit:0 -e empty -o save:"$save" "$@"
79 rm -f "$disk"
86 match "$(partaddmsg 1 34 1024)" gpt add -t efi -s 1024 "$disk"
93 file "$src/gpt.2part.show.uuid" gpt show -u "$disk"
97 echo "^$disk: Partition $1 added: $uuid $2 $3\$"
101 echo "^$disk: Partition $1 resized: $2 $3\$"
105 echo "^$disk: Partition $1 removed\$"
109 echo "^$disk: Partition $1 label changed\$"
113 echo "^$disk: Partition $1 marked as bootable\$"
117 echo "^$disk: Recovered $1 GPT [a-z]* from $2\$"
121 echo -n "^gpt: $disk: Partition $1 unknown type MSDOS, "
126 echo "^$disk: Partition $1 attributes updated\$"
130 echo "^$disk: Partition $1 type changed\$"
146 atf_set "descr" "Create 2 partition disk"
156 atf_set "descr" "Change the attribute of 2 partition disk"
161 match "$(attrmsg 1)" gpt set -i 1 -a biosboot,bootme "$disk"
162 save attr gpt show -i 1 "$disk"
163 match "^Attributes: biosboot, bootme\$" tail -1 attr
164 match "$(attrmsg 1)" gpt unset -i 1 -a biosboot,bootme "$disk"
165 save attr gpt show -i 1 "$disk"
166 match "^Attributes: None\$" tail -1 attr
171 atf_set "descr" "Change the partition type type of 2 partition disk"
176 match "$(typemsg 1)" gpt type -i 1 -T apple "$disk"
177 save type gpt show -i 1 "$disk"
178 inline "Type: apple (48465300-0000-11aa-aa11-00306543ecac)\n" \
180 match "$(typemsg 1)" gpt type -i 1 -T efi "$disk"
181 save type gpt show -i 1 "$disk"
182 inline "Type: efi (c12a7328-f81f-11d2-ba4b-00a0c93ec93b)\n" \
188 atf_set "descr" "Backup 2 partition disk"
194 file "$src/gpt.backup" sed -e "s/$uuid/$zero/g" "test.backup"
199 atf_set "descr" "Restore 2 partition disk"
206 silence gpt restore -i test.backup "$disk"
217 zerodd seek="$((size - shdr))" count="$shdr"
236 atf_set "descr" "Resize a 2 partition disk and partition"
244 match "$(partresmsg 2 1058 19390)" gpt resize -i 2 "$disk"
250 atf_set "descr" "Remove a partition from a 2 partition disk"
255 match "$(partremmsg 1)" -e empty gpt remove \
256 -i 1 "$disk"
263 atf_set "descr" "Label partitions in a 2 partition disk"
268 match "$(partlblmsg 1)" gpt label -i 1 -l potato "$disk"
269 match "$(partlblmsg 2)" gpt label -i 2 -l tomato "$disk"
271 gpt show -l "$disk"
276 atf_set "descr" "Make partition 2 bootable in a 2 partition disk"
282 match "$(partbootmsg 2)" gpt biosboot -i 2 "$disk"
283 local bootsz="$(ls -l "$bootblk" | awk '{ print $5 }')"
286 save bootattr gpt show -i 2 "$disk"
287 match "^Attributes: biosboot\$" tail -1 bootattr
297 silence fdisk -fi "$disk"
298 silence fdisk -fu0s "169/63/$((size / 10))" "$disk"
299 silence disklabel -R "$disk" "$src/gpt.disklabel"