Might help someone.

https://www.mediafire.com/file/bul5n5ik ... r.xzm/file
It could lead to trouble, but that is the case with some other programs as well. e.g. rm itself when used wrong can be disastrous.gnintilgyes wrote: ↑09 Nov 2022, 17:32This is just going to cause trouble. This should be categorized "for advanced users only."
Code: Select all
root@porteus:/Porteus_modules/Chroot-Rescue-MXBoot-Repair# file usr/local/bin/chroot-rescue*
usr/local/bin/chroot-rescue: Bourne-Again shell script, ASCII text executable
usr/local/bin/chroot-rescue-scan: Bourne-Again shell script, ASCII text executable
usr/local/bin/chroot-rescue-select: symbolic link to chroot-rescue-scan
Code: Select all
#==============================================================================
# cli-shell-utils.bash
# An integrated collection of utilites for shell scripting.
# The .bash version uses $"..." for translation and another bashism in cmd().
#
# (C) 2016 -- 2019 Paul Banham <[email protected]>
# License: GPLv3 or later
#
# Note regarding reading command-line arguments and options:
#
# This is the oldest part of the code base. Thie idea is to make it easy for
# programs that use this library to provide an easy, intuitive, and clear
# command line user interface.
#
# SHORT_STACK variable, list of single chars that stack
# fatal(msg) routine, fatal([errnum] [errlabel] "error message")
# takes_param(arg) routine, true if arg takes a value
# eval_argument(arg, [val]) routine, do whatever you want with $arg and $val
#==============================================================================
Beny, Thanks for the info. How can we do that. Any posts or link for that info in detail ?
Code: Select all
cd /mnt/sdb2/tmp
mkdir my-test-module
xzm2dir /path/to/module.xzm my-test-module
Code: Select all
ROOT=my-test-module removepkg package-name
Code: Select all
ROOT=my-test-module removepkg celluloid
Code: Select all
ROOT=my-test-module installpkg WHATEVER.txz
Code: Select all
cd my-test-module
Code: Select all
find . -name '*celluloid*' -exec ls -lo {} \;
Code: Select all
find . -name '*celluloid*' -exec rm -vf {} \;
Code: Select all
cd /mnt/sdb2/tmp
dir2xzm my-test-module my-test-module.xzm
Code: Select all
mksquashfs /root/db-5.3.28-5 /root/db-5.3.28-5-x86_64.xzm
Parallel mksquashfs: Using 6 processors
Creating 4.0 filesystem on /root/db-5.3.28-5-x86_64.xzm, block size 131072.
[============================================================-] 77/77 100%
Exportable Squashfs 4.0 filesystem, xz compressed, data block size 131072
compressed data, compressed metadata, compressed fragments,
compressed xattrs, compressed ids
duplicates are removed
Filesystem size 2359.16 Kbytes (2.30 Mbytes)
35.93% of uncompressed filesystem size (6565.83 Kbytes)
Inode table size 602 bytes (0.59 Kbytes)
33.56% of uncompressed inode table size (1794 bytes)
Directory table size 602 bytes (0.59 Kbytes)
59.78% of uncompressed directory table size (1007 bytes)
Number of duplicate files found 0
Number of inodes 49
Number of files 34
Number of fragments 8
Number of symbolic links 6
Number of device nodes 0
Number of fifo nodes 0
Number of socket nodes 0
Number of directories 9
Number of hard-links 0
Number of ids (unique uids + gids) 1
Number of uids 1
root (0)
Number of gids 1
root (0)
root@porteus:~#