Gentoo Logo
Gentoo Spaceship




Note: Due to technical difficulties, the Archives are currently not up to date. GMANE provides an alternative service for most mailing lists.
c.f. bug 424647
List Archive: gentoo-releng
Navigation:
Lists: gentoo-releng: < Prev By Thread Next > < Prev By Date Next >
Headers:
To: "Martin Schlemmer" <azarah@g.o>
From: "Brad House" <brad_mssw@g.o>
Subject: Re: x86-livecd - bugs and suggestions
Date: Mon, 26 Jan 2004 13:02:10 -0500 (EST)
>
> 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

Replies:
Re: x86-livecd - bugs and suggestions
-- Martin Schlemmer
References:
x86-livecd - bugs and suggestions
-- Benjamin Judas
Re: x86-livecd - bugs and suggestions
-- Martin Schlemmer
Re: x86-livecd - bugs and suggestions
-- Martin Schlemmer
Re: x86-livecd - bugs and suggestions
-- Martin Schlemmer
Re: x86-livecd - bugs and suggestions
-- Martin Schlemmer
Re: x86-livecd - bugs and suggestions
-- Benjamin Judas
Re: x86-livecd - bugs and suggestions
-- Martin Schlemmer
Re: x86-livecd - bugs and suggestions
-- Brad House
Re: x86-livecd - bugs and suggestions
-- Martin Schlemmer
Re: x86-livecd - bugs and suggestions
-- Brad House
Re: x86-livecd - bugs and suggestions
-- Martin Schlemmer
Navigation:
Lists: gentoo-releng: < Prev By Thread Next > < Prev By Date Next >
Previous by thread:
Re: x86-livecd - bugs and suggestions
Next by thread:
Re: x86-livecd - bugs and suggestions
Previous by date:
Re: x86-livecd - bugs and suggestions
Next by date:
specifying genkernel args in catalyst?


Updated Jun 17, 2009

Summary: Archive of the gentoo-releng mailing list.

Donate to support our development efforts.

Copyright 2001-2013 Gentoo Foundation, Inc. Questions, Comments? Contact us.