tFix cgpt calls. - libdevuansdk - common library for devuan's simple distro kits HTML git clone https://git.parazyd.org/libdevuansdk DIR Log DIR Files DIR Refs DIR Submodules DIR README DIR LICENSE --- DIR commit 0804679ca01283c558b8192bd6069c1a5c538374 DIR parent 5ee872a2ab32a625952aee6f046634868515fecd HTML Author: parazyd <parazyd@dyne.org> Date: Thu, 25 Mar 2021 21:27:40 +0100 Fix cgpt calls. Diffstat: M zlibs/imaging | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) --- DIR diff --git a/zlibs/imaging b/zlibs/imaging t@@ -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; }