Home | History | Annotate | Download | only in build

Lines Matching refs:chroot

7 # This script installs Debian-derived distributions in a chroot environment.
15 echo "-g group,... groups that can use the chroot unauthenticated"
19 echo "-c always copy 64bit helper binaries to 32bit chroot"
76 mkdir -p "$HOME/chroot/"
96 # Create directory for chroot
97 sudo mkdir -p /var/lib/chroot
99 # Find chroot environments that can be installed with debootstrap
104 echo "The following targets are available to be installed in a chroot:"
125 printf "32bit or a 64bit chroot environment. %s" \
136 [ -d /var/lib/chroot/"${target}" ] && {
137 echo "This chroot already exists on your machine." >&2
138 echo "Delete /var/lib/chroot/${target} if you want to start over." >&2
141 sudo mkdir -p /var/lib/chroot/"${target}"
148 echo -n "to the chroot's sources.list (y/n)? "
178 sudo debootstrap ${archflag} "${distname}" /var/lib/chroot/"${target}" \
191 directory=/var/lib/chroot/${target}
207 echo "$HOME/chroot/.${target} $HOME/chroot none rw,bind 0 0" |
209 mkdir -p "$HOME/chroot/.${target}"
211 # Install a helper script to launch commands in the chroot
227 -r "/var/lib/chroot/${target}/etc/apt/sources.list" ] &&
235 d' "/var/lib/chroot/${target}/etc/apt/sources.list"
237 # Add a few more repositories to the chroot
239 -r "/var/lib/chroot/${target}/etc/apt/sources.list" ] &&
246 d' "/var/lib/chroot/${target}/etc/apt/sources.list"
254 [ -d "/var/lib/chroot/${target}/usr/share/doc/$i" ] ||
276 # as 64bit. This is only done automatically if the chroot distro is the same as
293 sudo cp /usr/bin/gdb "/var/lib/chroot/${target}/usr/local/bin/"
294 sudo cp /usr/bin/ld "/var/lib/chroot/${target}/usr/local/bin/"
299 sudo cp "$lib" "/var/lib/chroot/${target}/usr/lib64/"
303 sudo cp /usr/lib/$lib* "/var/lib/chroot/${target}/usr/lib64/" || :
319 You can run programs inside of the chroot by invoking the "${target%bit}"
322 Your home directory is shared between the host and the chroot. But I configured
323 $HOME/chroot to be private to the chroot environment. You can use it