Opened 21 years ago

Closed 21 years ago

#818 closed defect (fixed)

missing quoting in chroot command

Reported by: lizardo@… Owned by: lfs-book@…
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.

Change History (1)

comment:1 by Matthew Burgess, 21 years ago

Resolution: fixed
Status: newclosed

Fixed in newxml.

Note: See TracTickets for help on using tickets.