Fix cgpt calls.

This commit is contained in:
parazyd 2021-03-25 21:27:40 +01:00
parent 5ee872a2ab
commit 0804679ca0
No known key found for this signature in database
GPG Key ID: 6B636BF0493EE747
1 changed files with 2 additions and 2 deletions

View File

@ -196,8 +196,8 @@ image_partition_gpt()
sudo cgpt add -i 1 -t kernel -b ${gpt_boot[1]} -s ${gpt_boot[2]} \
-l kernel -S 1 -T 5 -P 10 "$loopdevice" || { zerr; return 1; }
sudo cgpt add -i 2 -t data -b ${gpt_root[1]} -s
$(expr $(cgpt show "$loopdevice" \
sudo cgpt add -i 2 -t data -b ${gpt_root[1]} -s \
$(expr $(sudo cgpt show "$loopdevice" \
| awk '/Sec GPT table/ {print $1}') - ${gpt_root[1]}) \
-l Root "$loopdevice" || { zerr; return 1; }