Page 1 of 1

patch to make txz2lzm work (--root instead of bogus -root)

Posted: 28. Jun 2010, 17:26
by phly
txz2lzm gives this error

ERROR: Invalid argument: unknown option (-root)

Thanks to the excellent "Salix Live Startup Guide" p 33 I easily founded the culprit:

This patch solves the bug

Code: Select all

--- /usr/bin/txz2lzm	2010-06-28 16:55:35.108422545 +0000
+++ /mnt/live/mnt/tmp/salixlive/tools/txz2lzm	2010-04-08 14:59:00.000000000 +0000
@@ -17,7 +17,7 @@
 
 TMPDIR=/tmp/tgz2lzm$$
 
-installpkg --root $TMPDIR $1
+installpkg -root $TMPDIR $1
 if [ $? != 0 ]; then echo "error installing package"; exit; fi
 
 # optimalization procedures, this doesn't hurt
It's important for me to be able to easily add modules to salix live, and gslapt seams perfect, but one need to convert to lzm. With this patch, it is possible.

Ph.L.

Re: patch to make txz2lzm work (--root instead of bogus -root)

Posted: 28. Jun 2010, 17:32
by phly
Same error in /usr/bin/tgz2lzm

Ph.L

Re: patch to make txz2lzm work (--root instead of bogus -root)

Posted: 1. Jul 2010, 07:52
by Akuna
Thanks for catching this phly :)

Re: patch to make txz2lzm work (--root instead of bogus -root)

Posted: 1. Jul 2010, 08:33
by JRD
Hi !
I had the same problem two days ago. But I patched it differently.

Code: Select all

-installpkg --root $TMPDIR $1
+export ROOT=$TMPDIR
+installpkg $1
+unset ROOT
This way, it is ok with both "installpkg" from slackware and the one we use : "spkg"