Bug 68178 - /etc/init.d/halt fails to umount certain tmpfs filesystems
Summary: /etc/init.d/halt fails to umount certain tmpfs filesystems
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: initscripts
Version: 7.3
Hardware: i386
OS: Linux
medium
low
Target Milestone: ---
Assignee: Bill Nottingham
QA Contact: Brock Organ
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2002-07-07 14:59 UTC by Timo Kokkonen
Modified: 2014-03-17 02:28 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2002-07-07 14:59:52 UTC
Embargoed:


Attachments (Terms of Use)

Description Timo Kokkonen 2002-07-07 14:59:48 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 Galeon/1.2.0 (X11; Linux i686; U;) Gecko/20020408

Description of problem:
If tmpfs filesystems are mounted somewhere else than directly
under root (/) filesystem, then /etc/init.d/halt script fails to properly umount
the underlying filesystem when system goes to halt/reboot.

Version-Release number of selected component (if applicable):


How reproducible:
Always

Steps to Reproduce:
1. add "none   /var/temp  tmpfs defaults 0 0" to fstab
2. (mkdir /var/temp; mount /var/temp)
3. reboot or halt system
	

Actual Results:  umount: /dev/sda2: notmounted
umount: /var: Illegal seek
...
[repeated several times]

Expected Results:  [no errors from umount as normal]

Additional info:

Suggested fix:

*** /etc/init.d/halt.dist	Sun Jul  7 17:57:21 2002
--- /etc/init.d/halt	Sun Jul  7 17:57:47 2002
***************
*** 28,33 ****
--- 28,34 ----
  halt_get_remaining() {
  	awk '!/(^#|proc|loopfs|autofs|devfs|^none|^\/dev\/root| \/ )/ {print $2}'
/proc/mounts
  	awk '{ if ($3 ~ /^proc$/ && $2 !~ /^\/proc/) print $2; }' /proc/mounts
+ 	awk '{ if ($3 ~ /^tmpfs$/ && $2 !~ /^\/dev/) print $2; }' /proc/mounts
  }
  
  # See how we were called.

Comment 1 Bill Nottingham 2002-08-14 02:02:46 UTC
Thanks, will be in 6.89-1


Note You need to log in before you can comment on or make changes to this bug.