Merge modules in Porteux
Merge modules in Porteux
How to merge modules in porteux? Command "for a in /tmp/merge/*.xzm;do xzm2dir $a /tmp/bundle;done" not working...
- Blaze
- DEV Team
- Posts: 3885
- Joined: 28 Dec 2010, 11:31
- Distribution: ⟰ Porteus current ☯ all DEs ☯
- Location: ☭ Russian Federation, Lipetsk region, Dankov
- Contact:
Merge modules in Porteux
Code: Select all
for i in `find -type f | fgrep .xzm | sort`; do unsquashfs -n -f $i >/dev/null; done
Linux 6.6.11-porteus #1 SMP PREEMPT_DYNAMIC Sun Jan 14 12:07:37 MSK 2024 x86_64 Intel(R) Xeon(R) CPU E3-1270 v6 @ 3.80GHz GenuineIntel GNU/Linux
MS-7A12 » [AMD/ATI] Navi 23 [Radeon RX 6600] [1002:73ff] (rev c7) » Vengeance LPX 16GB DDR4 K2 3200MHz C16
MS-7A12 » [AMD/ATI] Navi 23 [Radeon RX 6600] [1002:73ff] (rev c7) » Vengeance LPX 16GB DDR4 K2 3200MHz C16
- Ed_P
- Contributor
- Posts: 8374
- Joined: 06 Feb 2013, 22:12
- Distribution: Cinnamon 5.01 ISO
- Location: Western NY, USA
Merge modules in Porteux
Where are the .xzm files "unsquashfs"ed to?
Added in 5 minutes 21 seconds:
Need a -d parm for the destination. -d /tmp/bundle
Added in 5 minutes 21 seconds:
Need a -d parm for the destination. -d /tmp/bundle
Ed
- Blaze
- DEV Team
- Posts: 3885
- Joined: 28 Dec 2010, 11:31
- Distribution: ⟰ Porteus current ☯ all DEs ☯
- Location: ☭ Russian Federation, Lipetsk region, Dankov
- Contact:
Merge modules in Porteux
Try and you will see
Linux 6.6.11-porteus #1 SMP PREEMPT_DYNAMIC Sun Jan 14 12:07:37 MSK 2024 x86_64 Intel(R) Xeon(R) CPU E3-1270 v6 @ 3.80GHz GenuineIntel GNU/Linux
MS-7A12 » [AMD/ATI] Navi 23 [Radeon RX 6600] [1002:73ff] (rev c7) » Vengeance LPX 16GB DDR4 K2 3200MHz C16
MS-7A12 » [AMD/ATI] Navi 23 [Radeon RX 6600] [1002:73ff] (rev c7) » Vengeance LPX 16GB DDR4 K2 3200MHz C16
-
- Black ninja
- Posts: 62
- Joined: 23 Jul 2022, 07:42
- Distribution: Porteus 5.01_x86_64 Xfce
Merge modules in Porteux
Hi,
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.
why would it not work? for me it works when all conditions are met.(ok Porteus 5.0)
also works, but is more impractical, because in this form it has to be executed in the directory of the .xzm filesBlaze wrote: ↑30 Aug 2023, 15:21Code: Select all
for i in `find -type f | fgrep .xzm | sort`; do unsquashfs -n -f $i >/dev/null; done
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.
- Ed_P
- Contributor
- Posts: 8374
- Joined: 06 Feb 2013, 22:12
- Distribution: Cinnamon 5.01 ISO
- Location: Western NY, USA
Merge modules in Porteux
Did you not read what the OP posted?itrukrakso wrote: ↑30 Aug 2023, 19:07why would it not work? for me it works when all conditions are met.(ok Porteus 5.0)
porteux apparently uses a different formula making it's modules or doesn't have the dependencies xzm2dir requires.
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. imhoitrukrakso wrote: ↑30 Aug 2023, 19:07You find it out of course, in this case under /tmp/bundle/squashfs-root.
Ed
Merge modules in Porteux
Try this:
Code: Select all
for a in /tmp/merge/*.xzm;do xzm2dir $a -o=/tmp/bundle;done
- Ed_P
- Contributor
- Posts: 8374
- Joined: 06 Feb 2013, 22:12
- Distribution: Cinnamon 5.01 ISO
- Location: Western NY, USA
Merge modules in Porteux
Ah yes. I remember encountering the -o= problem myself on something. While a good option, having it default if omitted would be convenient.
Ed
Merge modules in Porteux
The divine comand, thanks Blaze!Blaze wrote: ↑30 Aug 2023, 15:21Code: Select all
for i in `find -type f | fgrep .xzm | sort`; do unsquashfs -n -f $i >/dev/null; done
Merge modules in Porteux
It works. Thanks! We are waiting for Porteux 0.6: merge-and-create-xzm.desktopporteux wrote: ↑30 Aug 2023, 19:55Try this:
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.Code: Select all
for a in /tmp/merge/*.xzm;do xzm2dir $a -o=/tmp/bundle;done