Opened 21 years ago
Closed 21 years ago
#818 closed defect (fixed)
missing quoting in chroot command
Reported by: | Owned by: | ||
---|---|---|---|
Priority: | lowest | Milestone: | |
Component: | Book | Version: | CVS |
Severity: | normal | Keywords: | |
Cc: |
Description
Reported by Seth W. Klein: In the chroot command in http://www.linuxfromscratch.org/lfs/view/cvs/chapter06/chroot.html several environment variable references are unquoted. This leads to misleading error messages such as: chroot: cannot change root directory to /tools/bin/env: Not a directory when $LFS is not set. It is also broken if $LFS contains spaces. The correct form is: chroot "$LFS" /tools/bin/env -i \
HOME=/root TERM="$TERM" PS1='\u:\w\$ ' \ PATH=/bin:/usr/bin:/sbin:/usr/sbin:/tools/bin \ /tools/bin/bash +h
Other chroot commands probably have similar bugs.
Fixed in newxml.