View | Details | Raw Unified | Return to bug 51235
Collapse All | Expand All

(-)a/startup/rc.d/init.d/halt (-2 / +4 lines)
Lines 160-166 UnmountFilesystems 3 5 \ Link Here
160
160
161
# Unmount all the rest.
161
# Unmount all the rest.
162
UnmountFilesystems 3 5 \
162
UnmountFilesystems 3 5 \
163
	'$2 != "/" && $2 !~ /^\/(dev|proc|sys)(\/.*)?$/ && $1 !~ /^none$/ {print $2}' \
163
	'$2 != "/" && $2 != "/usr" && $2 !~ /^\/(dev|proc|sys)(\/.*)?$/ && $1 !~ /^none$/ {print $2}' \
164
	'Unmounting filesystem' \
164
	'Unmounting filesystem' \
165
	'Unmounting filesystem (retry)'
165
	'Unmounting filesystem (retry)'
166
166
Lines 188-193 fi Link Here
188
# Unmount and remount read-only anything that's left mounted.
188
# Unmount and remount read-only anything that's left mounted.
189
action 'Remounting remaining filesystems (if any) read-only:' \
189
action 'Remounting remaining filesystems (if any) read-only:' \
190
	umount -afnr -t noproc,nosysfs,notmpfs,nodevfs,nodevtmpfs,nousbfs,norpc_pipefs,nonfsd
190
	umount -afnr -t noproc,nosysfs,notmpfs,nodevfs,nodevtmpfs,nousbfs,norpc_pipefs,nonfsd
191
if mountpoint -q /usr; then
192
	action 'Remounting usr filesystem read-only:' mount -n -o remount,ro /usr
193
fi
191
action 'Remounting root filesystem read-only:' mount -n -o remount,ro /
194
action 'Remounting root filesystem read-only:' mount -n -o remount,ro /
192
195
193
# See if this is a powerfail situation.
196
# See if this is a powerfail situation.
194
- 

Return to bug 51235