samba remote share feature is broken in F8

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

 



Hi,
I have tried solving this issue on fedoraforum.org and fedora-user
lists without sucess.

This the case:
* samba mount points are defined in /etc/fstab
* on bootup they aren't mounted because networkmanager is started too
late in init process (in Gnome actually)
* if you mount samba shares manually or by starting netfs service then it works
* unmounting samba shares doesn't work during reboot and shutdown
because NetworkManager service is killed much earlier that netfs
service

I have dealt with samba shares mounting automatically by puting a script in:
/etc/NetworkManager/dispatcher.d/

# cat /etc/NetworkManager/dispatcher.d/samba.sh
#!/bin/bash
# Script to dispatch NetworkManager events
#
# mount samba shares on network up

if [ "$1" = "eth0" ]
then
if [ "$2" = "up" ]
then
/sbin/service netfs start
fi
if [ "$2" = "down" ]
then
/sbin/service netfs stop
fi
fi


This works for mounting but not for unmounting samba shares :(
One other thing I thought of it rearranging order of services in
/etc/rc6.d/ and /etc/rc0.d/ in order to make possible for netfs to
stop before NetworkManager

/etc/rc0.d/
K01NetworkManager
K02NetworkManagerDispatcher
K75netfs

/etc/rc6.d/
K01NetworkManager
K02NetworkManagerDispatcher
K75netfs

So in /etc/rc6.d/ and /etc/dc0.d/ I did this:
mv K02NetworkManagerDispatcher K03NetworkManagerDispatcher
mv K01NetworkManager K02NetworkManager
mv K75netfs K01netfs

I'm not sure how smart is it do this so I wanted you to look at this
issue and figure out a way that would be best to fix this issue in
Fedora 8 and so that it JustWorks in Fedora 9.

Cheers,
Valent.

--
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux