You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
rascul 13811011f9
set permissions
5 years ago
src set permissions 5 years ago
.editorconfig editorconfig 5 years ago
.gitignore gitignore 5 years ago
Cargo.lock cargo 5 years ago
Cargo.toml cargo 5 years ago
README.md add note for systemd-nspawn and rename target to rootfs in examples because cargo has a target directory 5 years ago
rustfmt.toml rustfmt 5 years ago

README.md

build a minimal chroot/container/vm filesystem by taking a list of files and putting them and their necessary libs into a target rootfs directory

example:

cargo run -- -v rootfs/ /bin/bash /bin/ls

# chroot
sudo chroot rootfs /bin/bash

# systemd nspawn
wget -O rootfs/sbin/init https://github.com/Yelp/dumb-init/releases/download/v1.2.2/dumb-init_1.2.2_amd64
systemd-nspawn -D rootfs /sbin/init /bin/bash