LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices



Reply
 
Search this Thread
Old 08-16-2011, 03:09 PM   #1
Linux.tar.gz
Senior Member
 
Registered: Dec 2003
Location: Paris
Distribution: Slackware forever.
Posts: 2,227

Rep: Reputation: 86
Question PXE Slackware shutdown. /etc/rc.d/rc.6 questions.


Hi !

/etc/rc.d/rc.6 extracts :

Code:
# Unmount any NFS, SMB, or CIFS filesystems:
echo "Unmounting remote filesystems."
/bin/umount -v -a -l -f -r -t nfs,smbfs,cifs
Why / isn't unmounted ?

Code:
# Bring down the networking system, but first make sure that this
# isn't a diskless client with the / partition mounted via NFS:
if ! /bin/mount | /bin/grep -q 'on / type nfs' ; then
  if [ -x /etc/rc.d/rc.inet1 ]; then
    . /etc/rc.d/rc.inet1 stop
  fi
fi
It does not work here... The network interface is put down so the system can not finish its shutdown :/

Any ideas ?

---EDIT : seems -q is a bad grep option

Last edited by Linux.tar.gz; 08-16-2011 at 03:13 PM.
 
Old 08-16-2011, 05:51 PM   #2
piratesmack
Member
 
Registered: Feb 2009
Distribution: Slackware, Arch
Posts: 518

Rep: Reputation: 133Reputation: 133
Quote:
Originally Posted by Linux.tar.gz View Post
Code:
# Unmount any NFS, SMB, or CIFS filesystems:
echo "Unmounting remote filesystems."
/bin/umount -v -a -l -f -r -t nfs,smbfs,cifs
Why / isn't unmounted ?
I don't know, "/" might be lazily unmounted by that command.
I'd try commenting those lines out and replacing them with code to unmount your non-/ remote filesystems (if any).

Last edited by piratesmack; 08-16-2011 at 05:53 PM.
 
Old 08-16-2011, 11:06 PM   #3
Linux.tar.gz
Senior Member
 
Registered: Dec 2003
Location: Paris
Distribution: Slackware forever.
Posts: 2,227

Original Poster
Rep: Reputation: 86
Yep.

Should be easy, but i mailed The Man about -q

Did you tried the command ?
 
Old 08-17-2011, 05:40 AM   #4
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 5,393

Rep: Reputation: Disabled
The Slackware init/shutdown scripts are not meant for diskless clients. You have to change the shutdown scripts so that your NFS root does not get unmounted.

Eric
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to boot Slackware via PXE ? Linux.tar.gz Slackware 33 12-19-2012 09:52 PM
slackware + other distros networks boot with PXE nass Slackware 4 10-03-2010 06:25 PM
[SOLVED] Questions about power saving on PXE desktop PC Linux.tar.gz Linux - Software 3 09-24-2010 11:46 AM
Installing Slackware via PXE using Windows trumpet_tom Slackware 0 04-06-2010 11:34 AM
[SOLVED] Slackware 13.0 PXE installation chicken76 Slackware 8 11-02-2009 06:42 AM


All times are GMT -5. The time now is 11:02 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration