made rpm-flavor configurable (e.g. 'i' for install (default), 'q' for
authorEnrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
Mon, 16 Feb 2004 19:16:55 +0000 (19:16 +0000)
committerEnrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
Mon, 16 Feb 2004 19:16:55 +0000 (19:16 +0000)
query, 'd' for database)

git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@903 94cd875c-1c1d-0410-91d2-eb244daf1a30

util-vserver/scripts/vrpm-preload

index 574ec53..55cce0e 100755 (executable)
@@ -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