summaryrefslogtreecommitdiffstats
path: root/scripts/buildinstall.functions
diff options
context:
space:
mode:
authorChris Lumens <clumens@redhat.com>2008-01-12 15:41:12 -0500
committerChris Lumens <clumens@redhat.com>2008-01-12 15:41:12 -0500
commit123885aaeeaae2f757e1733194a427b4452417a2 (patch)
treed67dcf2b2fa59c5c9beb232981fcaa7343366eb0 /scripts/buildinstall.functions
parent600d03a10af7815c36c344074da523fd124d69b8 (diff)
downloadanaconda-123885aaeeaae2f757e1733194a427b4452417a2.tar.gz
anaconda-123885aaeeaae2f757e1733194a427b4452417a2.tar.xz
anaconda-123885aaeeaae2f757e1733194a427b4452417a2.zip
Fixup paths to chroot so we can run under sudo.
Diffstat (limited to 'scripts/buildinstall.functions')
-rwxr-xr-xscripts/buildinstall.functions8
1 files changed, 4 insertions, 4 deletions
diff --git a/scripts/buildinstall.functions b/scripts/buildinstall.functions
index fcc4e46cc..c17a0762e 100755
--- a/scripts/buildinstall.functions
+++ b/scripts/buildinstall.functions
@@ -30,8 +30,8 @@ get_dso_deps() {
FILES[$n]="$FILE"
let n++
done << EOF
- $(chroot $root env LD_TRACE_PRELINKING=1 LD_WARN= \
- LD_TRACE_LOADED_OBJECTS=1 $LDSO $bin)
+ $(/usr/sbin/chroot $root env LD_TRACE_PRELINKING=1 LD_WARN= \
+ LD_TRACE_LOADED_OBJECTS=1 $LDSO $bin)
EOF
[ ${#FILES[*]} -eq 0 ] && return 1
@@ -73,8 +73,8 @@ EOF
DSO_DEPS="${FILES[@]}"
- for l in $(chroot $root find /lib* -maxdepth 1 -type l -name ld*.so*); do
- [ "$(chroot $root readlink -f $l)" == "$LDSO" ] && DSO_DEPS="$DSO_DEPS $l"
+ for l in $(/usr/sbin/chroot $root find /lib* -maxdepth 1 -type l -name ld*.so*); do
+ [ "$(/usr/sbin/chroot $root readlink -f $l)" == "$LDSO" ] && DSO_DEPS="$DSO_DEPS $l"
done
[ -n "$DEBUG" ] && echo "DSO_DEPS for $bin are $DSO_DEPS"