pox

command
v6.0.0+incompatible Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 14, 2019 License: BSD-3-Clause Imports: 11 Imported by: 0

Documentation

Overview

pox builds a portable executable as a squashfs image. It is intended to create files compatible with tinycore tcz files. One of more of the files can be programs but that is not required. This could have been a simple program but mksquashfs does not preserve path information. Yeah.

Synopsis:

pox [-[-debug]|d] -[-run|r file] [-[-create]|c]  [-[-file]|f tcz-file] file [...file]

Description:

pox makes portable executables in squashfs format compatible with
tcz format. We don't build in the execution code, rather, we set it
up so we can use the command itself. You can create, create and run a command,
mount a pox, or mount a pox and run a command in it.

Options:

debug|d: verbose
file|f file: file name (default /tmp/pox.tcz)
run|r: run a file by loopback mounting the squashfs and using the first arg as a command to run in a chroot
create|c: create the file.
both -c and -r can be used on the same command.

Example:

pox -d -r /bin/bash /bin/cat /bin/ls /etc/hosts
Will build a squashfs, mount it, and drop you into it running bash.
You can use ls and cat on /etc/hosts.
Simpler example:
pox -d -r /bin/ls /etc/hosts
will run ls and exit.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL