SliTaz GNU/Linux official and community documentation wiki.
.png

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
en:handbook:chroot [2010/07/08 17:14]
127.0.0.1 external edit
en:handbook:chroot [2011/05/03 22:47] (current)
domcox old revision restored
Line 35: Line 35:
 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.
Line 66: Line 67:
  
 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:
 
en/handbook/chroot.1278602063.txt.gz · Last modified: 2010/08/17 22:16 (external edit)