X-Git-Url: http://git.linux-vserver.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=util-vserver%2Fscripts%2Fvrpm-preload;h=1036e5cd40c840373824fd05fb3f5c600a17b871;hb=ab198dcb10b2c6b0e445a59af00dc292207454f3;hp=574ec53577aac9ba124e04cc2ca96aafd13a975c;hpb=40f292b24a4eeaa7c46d445ab0375a421bfec044;p=util-vserver.git diff --git a/util-vserver/scripts/vrpm-preload b/util-vserver/scripts/vrpm-preload index 574ec53..1036e5c 100755 --- a/util-vserver/scripts/vrpm-preload +++ b/util-vserver/scripts/vrpm-preload @@ -20,7 +20,7 @@ set -e : ${UTIL_VSERVER_VARS:=/usr/lib/util-vserver/util-vserver-vars} test -e "$UTIL_VSERVER_VARS" || { - echo "Can not find util-vserver installation; aborting..." + echo "Can not find util-vserver installation; aborting..." >&2 exit 1 } . "$UTIL_VSERVER_VARS" @@ -36,7 +36,7 @@ test -d "$vdir" || { echo $"Can not find chroot environment at '$vdir' for '$CUR_VSERVER'" >&2 exit 1 } -for bin in `which rpm` /bin/rpm /usr/lib/rpm/rpmi ""; do +for bin in `which rpm` /bin/rpm /usr/lib/rpm/rpm${RPM_FLAVOR:-i} ""; do ldd "$bin" &>/dev/null && break done