GitXplorerGitXplorer
p

chroot.sh

public
1 stars
0 forks
0 issues

Commits

List of commits on branch main.
Unverified
4b8766f8dfa7a7edf3ebd652a7416ac69db8a843

add README.md

ppaper42 committed 3 years ago
Unverified
2e26bfb80240b202ab1ad724ff552adb1b1091f5

specifies a chroot directory

ppaper42 committed 3 years ago
Unverified
f06c5a21400a9a7b644f01aef0dcb9ec4de702d3

add a makefile

ppaper42 committed 3 years ago
Unverified
fb67feb6833c8e70fff1e7c6d9d102a535489b97

sleep before unmounting

ppaper42 committed 3 years ago
Unverified
44ad5c8ad338ba84c29e4292f240f47aa27b0a01

allow running chroot.sh outside /home/michal/pro/chroot

ppaper42 committed 3 years ago
Unverified
84e994a74106e540da25cb1096093ed574ec9640

fail when chroot_dir doesn't exist

ppaper42 committed 3 years ago

README

The README file for this repository.

chroot.sh

usage:

  1. create directory with rootfs
  2. run chroot.sh DIRECTORY [CMD [ARGS...]]

if CMD is specified, this command will run in the chroot
if CMD is not specified, the most suitable shell will be selected and ran

example:

  • chroot.sh void runs a shell in void (probably bash)
  • chroot.sh ubuntu ls -la runs ls -la in an ubuntu chroot