patch to make txz2lzm work (--root instead of bogus -root)
Posted: 28. Jun 2010, 17:26
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
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.
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
Ph.L.