Page 1 of 1
Merge modules in Porteux
Posted: 30 Aug 2023, 11:09
by Majestic
How to merge modules in porteux? Command "for a in /tmp/merge/*.xzm;do xzm2dir $a /tmp/bundle;done" not working...
Merge modules in Porteux
Posted: 30 Aug 2023, 15:21
by Blaze
Code: Select all
for i in `find -type f | fgrep .xzm | sort`; do unsquashfs -n -f $i >/dev/null; done
Merge modules in Porteux
Posted: 30 Aug 2023, 16:50
by Ed_P

Where are the .xzm files "unsquashfs"ed to?
Added in 5 minutes 21 seconds:
Need a -d parm for the destination. -d /tmp/bundle
Merge modules in Porteux
Posted: 30 Aug 2023, 18:19
by Blaze
Try and you will see

Merge modules in Porteux
Posted: 30 Aug 2023, 19:07
by itrukrakso
Hi,
Majestic wrote: ↑30 Aug 2023, 11:09
Command "for a in /tmp/merge/*.xzm;do xzm2dir $a /tmp/bundle;done" not working...
why would it not work? for me it works when all conditions are met.(ok Porteus 5.0)
Blaze wrote: ↑30 Aug 2023, 15:21
Code: Select all
for i in `find -type f | fgrep .xzm | sort`; do unsquashfs -n -f $i >/dev/null; done
also works, but is more impractical, because in this form it has to be executed in the directory of the .xzm files
and as Ed_P already noted the target directory is not known.
You find it out of course, in this case under /tmp/bundle/squashfs-root.
So for me the 1st variant would be the better solution.
Merge modules in Porteux
Posted: 30 Aug 2023, 19:47
by Ed_P
itrukrakso wrote: ↑30 Aug 2023, 19:07
why would it not work? for me it works when all conditions are met.(ok Porteus 5.0)
Did you not read what the OP posted?
Majestic wrote: ↑30 Aug 2023, 11:09
How to merge modules in porteux?
porteu
x apparently uses a different formula making it's modules or doesn't have the dependencies xzm2dir requires.
itrukrakso wrote: ↑30 Aug 2023, 19:07
You find it out of course, in this case under /tmp/bundle/squashfs-root.
Thank you but how does it know to use the /tmp/bundle/ folder? The script, or command, would need to be execute in that folder. Adding a -d option is easier and more specific. imho
Merge modules in Porteux
Posted: 30 Aug 2023, 19:55
by porteux
Majestic wrote: ↑30 Aug 2023, 11:09
How to merge modules in porteux? Command "for a in /tmp/merge/*.xzm;do xzm2dir $a /tmp/bundle;done" not working...
Try this:
Code: Select all
for a in /tmp/merge/*.xzm;do xzm2dir $a -o=/tmp/bundle;done
Explanation: to specify the output you need to use
-o=[PATH]. This has been discussed a couple of times in this forum. This was implemented this way to allow multiple files/folders to be converted/extracted in a single action.
Merge modules in Porteux
Posted: 30 Aug 2023, 20:03
by Ed_P
porteux wrote: ↑30 Aug 2023, 19:55
Explanation: to specify the output you need to use -o=[PATH]. This has been discussed a couple of times in this forum. This was implemented this way to allow multiple files/folders to be converted/extracted in a single action.
Ah yes.

I remember encountering the
-o= problem myself on something. While a good option, having it default if omitted would be convenient.
Merge modules in Porteux
Posted: 31 Aug 2023, 00:12
by Majestic
Blaze wrote: ↑30 Aug 2023, 15:21
Code: Select all
for i in `find -type f | fgrep .xzm | sort`; do unsquashfs -n -f $i >/dev/null; done
The divine comand, thanks Blaze!

Merge modules in Porteux
Posted: 31 Aug 2023, 00:21
by Majestic
porteux wrote: ↑30 Aug 2023, 19:55
Majestic wrote: ↑30 Aug 2023, 11:09
How to merge modules in porteux? Command "for a in /tmp/merge/*.xzm;do xzm2dir $a /tmp/bundle;done" not working...
Try this:
Code: Select all
for a in /tmp/merge/*.xzm;do xzm2dir $a -o=/tmp/bundle;done
Explanation: to specify the output you need to use
-o=[PATH]. This has been discussed a couple of times in this forum. This was implemented this way to allow multiple files/folders to be converted/extracted in a single action.
It works. Thanks! We are waiting for Porteux 0.6: merge-and-create-xzm.desktop