Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision |
| en:handbook:chroot [2010/07/08 15:14] – external edit 127.0.0.1 | en:handbook:chroot [2011/05/03 20:47] (current) – old revision restored domcox |
|---|
| To begin using the chrooted environment, you just need to mount some virtual filesystems and use the chroot command. To simplify things, we can write a small script automating the process. Example using the chroot directory ///home/slitaz/chroot-env// and creating a script chroot_in_env.sh in ///home/slitaz//. On any systems other than SliTaz you can uncomment the lines about ///dev// and ///tmp// - Note to save typing you can copy and paste: | To begin using the chrooted environment, you just need to mount some virtual filesystems and use the chroot command. To simplify things, we can write a small script automating the process. Example using the chroot directory ///home/slitaz/chroot-env// and creating a script chroot_in_env.sh in ///home/slitaz//. On any systems other than SliTaz you can uncomment the lines about ///dev// and ///tmp// - Note to save typing you can copy and paste: |
| |
| <code> # cat > /home/slitaz/chroot_in_env.sh << "EOF" | <code> # cat > /home/slitaz/chroot_in_env.sh << "EOF" </code> |
| |
| | <file> |
| #!/bin/sh | #!/bin/sh |
| # Chroot in SliTaz to hack. | # Chroot in SliTaz to hack. |
| |
| EOF | EOF |
| | </file> |
| </code> | |
| |
| To finish and test the environment, you just make the script executable and run: | To finish and test the environment, you just make the script executable and run: |