You're invoking rpm incorrectly, the mode must be on the commandline
first.  Newer versions of RPM will start to enforce this.  You're also
using the 'operator' group for DEV, which isn't defined by the LSB.
This should probably be just 'root'.

Attached is a patch that adds a check to make sure the user is root
when running the script (required for proper RPM --root operation) and
a fix to the rpm invocation.

Cheers,

Matt

> > warning messages about groups and users missing on a system. Additionally,
> > a little more investigation should be done to determine why the rpm on
> > Redhat can't handle "--depends".
> 
> You probably mean "--nodeps", because this is the switch I use and
> this is the very strange thing that RedHat's RPM complains about
> dependencies when called with the "--nodeps" parameter where it
> should really not complain about any dependencies. I have
> informed Matt about it and he promised to forward this to
> the RedHat engineers and/or take a closer look into it.
--- LSB-sample-implementation-1.1.0-20020129/bin/mkLSBdist.rootonly     Wed Feb 
13 14:09:15 2002
+++ LSB-sample-implementation-1.1.0-20020129/bin/mkLSBdist      Wed Feb 13 
14:23:32 2002
@@ -28,6 +28,10 @@
        exit 1
 }
 
+if [ $EUID -ne 0 ]; then
+       Panic "mkLSBdist must be run as root"
+fi
+
 if [ $# -ne 3 ]; then
        Usage
 fi
@@ -122,7 +126,7 @@
 
        for i in `cat $FILE_PACKAGES` ; do
                echo "Installing $i ..."
-               rpm --noscripts --nodeps --root $DIR_TARGET -i 
$DIR_SOURCE/${i}.i386.rpm
+               rpm -i --noscripts --nodeps --root $DIR_TARGET 
$DIR_SOURCE/${i}.i386.rpm
        done
        return 0
 }

Reply via email to