nss-mysql-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Nss-mysql-users] File system unmount fails when nss_mysql is instal


From: Frédéric Trudeau
Subject: Re: [Nss-mysql-users] File system unmount fails when nss_mysql is installed (config in nsswitch.conf)
Date: Tue, 27 May 2003 11:38:30 -0400

Ok, I rebuild my RPM with those config options.

    --enable-group \
    --enable-shadow \
    --libdir=/lib \
    --enable-shadow \
    --with-mysql=%{_prefix} \
    --sysconfdir=/mnt/fileserver/config/nss_mysql


Now, it seams lib are getting installed in /libs ;

address@hidden SPECS]# rpm -ql nss_mysql-0.43cvs-zesolution_build_3
/lib/libnss_mysql.so
/lib/libnss_mysql.so.2
/lib/libnss_mysql.so.2.0.0
/mnt/fileserver/config/nss_mysql/nss-mysql-root.conf
/mnt/fileserver/config/nss_mysql/nss-mysql.conf
/usr/share/doc/nss_mysql-0.43cvs
/usr/share/doc/nss_mysql-0.43cvs/AUTHORS
/usr/share/doc/nss_mysql-0.43cvs/ChangeLog
/usr/share/doc/nss_mysql-0.43cvs/INSTALL
/usr/share/doc/nss_mysql-0.43cvs/NEWS
/usr/share/doc/nss_mysql-0.43cvs/README
/usr/share/doc/nss_mysql-0.43cvs/SHADOW
/usr/share/doc/nss_mysql-0.43cvs/THANKS
/usr/share/doc/nss_mysql-0.43cvs/TODO
/usr/share/doc/nss_mysql-0.43cvs/UPGRADE
/usr/share/doc/nss_mysql-0.43cvs/sample.sql


When I reboot, I still get the same error message unmounting file system.

Here is my entire spec file, if it can help you find the problem.

# $Revision: 1.8 $Date: 2002/11/21 18:45:46 $
Summary:    MySQL Name Service Switch Module
Name:       nss_mysql
Version:    0.43cvs
Release:    zesolution_build_3
License:    GPL
Group:      Base
Source0:
http://freesoftware.fsf.org/download/nss-mysql/nss-mysql.pkg/%{version}/nss-
mysql-%{version}.tar.gz
Patch0:     %{name}-m4.patch
URL:        http://www.freesoftware.fsf.org/nss-mysql/
BuildRequires:  autoconf
BuildRequires:  automake
BuildRequires:  libtool
BuildRequires:  mysql-devel
BuildRequires:  zlib-devel
BuildRoot:  %{tmpdir}/%{name}-%{version}-root-%(id -u -n)

%define     _libdir     /lib
%define     _sysconfigdir       /mnt/fileserver/config

%description
NSS MySQL is a NSS library for MySQL. It features full groups, passwd
and shadow support.

%prep
%setup -q -n nss-mysql-%{version}

# Make sure /export/config/nss_mysql exists, and if not, create it
#if [ ! -d "/export/config/nss_mysql" ] ; then
#   mkdir -p /export/config/nss_mysql
#fi

# Make sure /mnt/fileserver is a symlink, and if not, create it
#if [ ! -L "/mnt/fileserver" ] ; then
#   ln -s /export/ /mnt/fileserver
#fi

%patch0 -p1

%build
rm -f missing
%{__libtoolize}
%{__aclocal}
#%{__autoconf}
#%{__automake}
%configure \
    %{?debug:--enable-debug} \
    --enable-group \
    --enable-shadow \
    --libdir=/lib \
    --enable-shadow \
    --with-mysql=%{_prefix} \
    --sysconfdir=/mnt/fileserver/config/nss_mysql

%install

# Create dir for nss config
mkdir -p %{buildroot}/mnt/fileserver/config/nss_mysql

rm -rf $RPM_BUILD_ROOT
install -d $RPM_BUILD_ROOT{%{_sysconfdir},%{_libdir}}

%{__make} install \
    DESTDIR=$RPM_BUILD_ROOT

%clean
rm -rf $RPM_BUILD_ROOT

%post   -p /sbin/ldconfig
%postun -p /sbin/ldconfig

%files
%defattr(644,root,root,755)
%doc AUTHORS ChangeLog NEWS README SHADOW THANKS TODO UPGRADE INSTALL *.sql
%attr(755,root,root) %{_libdir}/*.so*
%attr(600,root,root) %config(noreplace) %verify(not md5 size mtime)
/mnt/fileserver/config/nss_mysql/nss*.conf



----- Original Message -----
From: "Guillaume Morin" <address@hidden>
To: "Frédéric Trudeau" <address@hidden>
Cc: <address@hidden>
Sent: Tuesday, May 27, 2003 8:39 AM
Subject: Re: [Nss-mysql-users] File system unmount fails when nss_mysql is
installed (config in nsswitch.conf)


> Dans un message du 26 mai à 19:33, Frédéric Trudeau écrivait :
> > Unmounting file system: umount2: Device or ressource busy
> > umount: /dev/sda3: not mounted
> > umount: /usr: Illegal seek
> > INIT: no more processes left in this runlevel
> >
> > Then, I got to manually shotdown the computer.
>
> This issue is distribution related, it really depends what it does after
> unmounting certain partitions. Moving /usr/lib/libnss_mysql.so.* to /lib
> should fix the problem.
>
> Regards,
>
> --
> Guillaume Morin <address@hidden>
>
>      Tu veux que les gens réagissent ? Alors commence par réagir
(Lofofora)
>





reply via email to

[Prev in Thread] Current Thread [Next in Thread]