>
> Could you try to change it to:
>
> env -i /etc/init.d/hotplug start
>
> just in case its an env full or whatever issue?
>
yep, I can try that. Also, it seems when using zisofs, it's
killing all processes, or something, so it won't reboot. I think
it's because it's trying to umount the cdrom, so I tried to do
the patch pasted onto the end of this e-mail. It didn't seem
to help. I need to add in some debugging, but I'm 99% sure
the error exists in this region as I see the fuser command
sending a signal 9 to all processes, so it needs to be prevented
I would assume :/
Any help on that would be appreciated as well. Thanks!
Oh yeah, if you use 'normal' for the cdfs type now, it works
great, and does not umount the loopback (reboots fine). It's just
zisofs I'm having an issue with now.
-Brad
--- rc-scripts-1.4.3.12p3/init.d/halt.sh 2003-11-26
14:16:18.000000000 -0500
+++ rc-scripts-1.4.3.12p8/init.d/halt.sh 2004-01-25
22:42:15.000000000 -0500
@@ -48,7 +48,8 @@
# Unmount file systems, killing processes if we have to.
# Unmount loopback stuff first
# Use `umount -d` to detach the loopback device
-remaining="`awk '!/^#/ && $1 ~ /^\/dev\/loop/ && $2 != "/" {print $2}'
/proc/mounts | sort -r`"
+remaining="`awk '!/^#/ && $1 ~ /^\/dev\/loop/ && $2 != "/" {print $2}'
/proc/mounts | \
+ sort -r | sed -e 's:/newroot::g' | grep -v mnt/livecd`"
[ -n "${remaining}" ] && {
sig=
retry=3
@@ -66,7 +67,8 @@
eend $? "Failed to unmount filesystems"
fi
- remaining="`awk '!/^#/ && $1 ~ /^\/dev\/loop/ && $2 != "/"
{print $2}' /proc/mounts | sort -r`"
+ remaining="`awk '!/^#/ && $1 ~ /^\/dev\/loop/ && $2 != "/"
{print $2}' /proc/mounts | \
+ sort -r | sed -e 's:/newroot::g' | grep -v
mnt/livecd`"
[ -z "${remaining}" ] && break
/bin/fuser -k -m ${sig} ${remaining} &>/dev/null
@@ -94,8 +96,20 @@
do
[ "${x}" = "${y}" ] && do_unmount="no"
done
-
- if [ "${do_unmount}" = "yes" -a "${x}" != "/mnt/livecd" ]
+
+ if [ "${CDBOOT}" != "" ]
+ then
+ case ${x} in
+ *mnt/cdrom*)
+ do_unmount="no"
+ ;;
+ *mnt/livecd*)
+ do_unmount="no"
+ ;;
+ esac
+ fi
+
+ if [ "${do_unmount}" = "yes" ]
then
umount ${x} &>/dev/null || {
@@ -110,7 +124,7 @@
eend 0
# Stop LVM
-if [ -x /sbin/vgchange ] && [ -f /etc/lvmtab -o -d /etc/lvm ] && \
+if [ "${CDBOOT}" = "" ] && [ -x /sbin/vgchange ] && [ -f /etc/lvmtab -o
-d /etc/lvm ] && \
[ -d /proc/lvm -o "`grep device-mapper /proc/misc 2>/dev/null`" ]
then
ebegin "Shutting down the Logical Volume Manager"
--
gentoo-releng@g.o mailing list
|