A binary package tool. package a minimal filesystem to a single file.
ezbin targetexecutable buildinstrustion
print Hello world
warn It will be output to stderr
mktmpfs /tmp
bind /proc:/tmp/proc
chroot /tmp
chdir /
@data
exec-passthru /usr/bin/endpoint
@data
is means package all files in data directory to target executable
- Only support normal files
- Only perserve 9bit permission info, no owner uid/gid or SELinux context
print message
: print something to stdoutwarn message
: print something to stderrstrategy content
:
overwrite:0
means threat overwriting files as error
overwrite:1
means force overwrite files
overwrite:2
means skip exist fileschdir target
: just change current working directory
PS: will create target directory automaticallymkdir target
: create directorymktmpfs target
: mount tmpfs to target directory
PS: will create target directory automaticallychroot target
: change root directorypivot_root src:target
bind src:target
: just likemount --bind
commandexec cmdline
: execute commandexec-background cmdline
: execute command in backgroundrun cmdline
: execute command in background and waitchecked-run cmdline
: execute command in background and check the resultwait
: wait last background task to exitwaitstop
: wait last background task to stoppedwaitdir dir
: wait target dir to be changedwaitfile file
: wait target file to be existsexec-passthru executable
: execute command but passthrough all arguments to itfuse target
: use fuse to target directoryenv name=value
: set environment (overwrite)option name=value
: set enivironment (ignore if set already)vfork
: start a background task (end with any exec/exec-passthru/force-exit)fork
: start a background task (end with any exec/exec-passthru/force-exit)force-exit
: exit process immediatelyinclude xxx.ezpak
: include another ezpak file (build with ezio)daemon
: run as daemonpidfile
: create pidfile (failed if locked)pause
: wait for signalcheckfile target
: check target file existsfindexe env=cmd
: find command in PATH and set to env variabledelete-self
: delete selfhostname name
: set hostnamedelete path
: delete path recursiveumount path
: umount pathadd-path path
: append path to $PATH