Skip to content

Latest commit

 

History

History
31 lines (22 loc) · 566 Bytes

README.md

File metadata and controls

31 lines (22 loc) · 566 Bytes

Example

Build the program

cc -O2 -Wall -Werror -pedantic -std=c99 -o main main.c

Turn it into a portable service (it embeds the main.service, main and main.c).

../portabledize.sh -s main.service -f files

Then you can attach the created image. It does all the systemd magic behind the scene.

sudo portablectl attach ./main.raw
sudo portablectl detach main

If you want to inpect the raw image, you can mount it

mkdir -p /tmp/main
sudo mount -o loop main.raw /tmp/main
ls -alh /tmp/main