Linux Archive

Linux Archive (http://www.linux-archive.org/)
-   ArchLinux General Discussion (http://www.linux-archive.org/archlinux-general-discussion/)
-   -   devtools:mkarchroot fails under sudo (http://www.linux-archive.org/archlinux-general-discussion/443692-devtools-mkarchroot-fails-under-sudo.html)

Baho Utot 10-24-2010 02:57 PM

devtools:mkarchroot fails under sudo
 
Following Building in a clean chroot I have encountered the following
issue, which is related to using sudo mkarchroot
The full path is not included (code posted from mkarchroot) should this
be fixed?

After patching mkarchroot it works with sudo.

BUILD=/home/devtools

$ sudo mkdir -vp ${BUILD}
mkdir: created directory `/home/devtools'

$ sudo /usr/sbin/mkarchroot "${BUILD}/root" base base-devel sudo
:: Synchronizing package databases...
....
[putolin]
....
/usr/sbin/mkarchroot: line 178: ldconfig: command not found
/usr/sbin/mkarchroot: line 191: chroot: command not found

/usr/sbin/mkarchroot

line 178:
if [ -d "${working_dir}/lib/modules" ]; then
ldconfig -r "${working_dir}"
fi

if [ -d "${working_dir}/lib/modules" ]; then
/sbin/ldconfig -r "${working_dir}"
fi


line 191:
if [ -e "${working_dir}/etc/locale.gen" ]; then
echo -e 'en_US.UTF-8 UTF-8
de_DE.UTF-8 UTF-8' >
"${working_dir}/etc/locale.gen"

chroot "${working_dir}" locale-gen

if [ -e "${working_dir}/etc/locale.gen" ]; then
echo -e 'en_US.UTF-8 UTF-8
de_DE.UTF-8 UTF-8' >
"${working_dir}/etc/locale.gen"

/usr/sbin/chroot "${working_dir}" /usr/sbin/locale-gen


All times are GMT. The time now is 07:11 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.