libdevuansdk

common library for devuan's simple distro kits
git clone https://git.parazyd.org/libdevuansdk
Log | Files | Refs | Submodules | README | LICENSE

commit 0804679ca01283c558b8192bd6069c1a5c538374
parent 5ee872a2ab32a625952aee6f046634868515fecd
Author: parazyd <parazyd@dyne.org>
Date:   Thu, 25 Mar 2021 21:27:40 +0100

Fix cgpt calls.

Diffstat:
Mzlibs/imaging | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/zlibs/imaging b/zlibs/imaging @@ -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; }