libdevuansdk

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

commit c9473e5f468dcfb2eb00a748eb72da18c423539b
parent e7d9cb5ceb9bb14390fd6fad34f4f92890149520
Author: parazyd <parazyd@dyne.org>
Date:   Mon, 15 May 2017 13:57:01 +0200

deprecate kpartx in favor of partx

Diffstat:
Mzlibs/helpers | 2+-
Mzlibs/imaging | 4++--
2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/zlibs/helpers b/zlibs/helpers @@ -151,7 +151,7 @@ findloopmapp() { notice "finding a free loopdevice" loopdevice=$(sudo losetup -f --show $workdir/${image_name}.img) - mappdevice=$(sudo kpartx -va $loopdevice | \ + mappdevice=$(sudo partx -va $loopdevice | \ sed -E 's/.*(loop[0-9])p.*/\1/g' | sed 1q) func "loopdevice: $loopdevice" diff --git a/zlibs/imaging b/zlibs/imaging @@ -105,8 +105,8 @@ image_pack_dist() { sleep 1 } - sudo kpartx -dv $loopdevice || { - die "kpartx failed to remove $loopdevice" + sudo partx -dv $loopdevice || { + die "partx failed to remove $loopdevice" zerr } sudo losetup -d $loopdevice || {