public inbox for gentoo-releng@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Brad House" <brad_mssw@gentoo.org>
To: "Martin Schlemmer" <azarah@gentoo.org>
Cc: gentoo-releng@lists.gentoo.org
Subject: Re: [gentoo-releng] x86-livecd - bugs and suggestions
Date: Mon, 26 Jan 2004 13:02:10 -0500 (EST)	[thread overview]
Message-ID: <32941.209.251.159.140.1075140130.squirrel@mail.mainstreetsoftworks.com> (raw)
In-Reply-To: <1075139438.7548.4.camel@nosferatu.lan>


>
> 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@gentoo.org mailing list


  reply	other threads:[~2004-01-26 18:07 UTC|newest]

Thread overview: 39+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-01-23 15:04 [gentoo-releng] x86-livecd - bugs and suggestions Benjamin Judas
2004-01-23 17:16 ` Martin Schlemmer
     [not found]   ` <1074880273.20419.15.camel@antares.hausnetz>
2004-01-23 18:01     ` Martin Schlemmer
     [not found]       ` <1074883714.20415.29.camel@antares.hausnetz>
2004-01-24 16:38         ` Martin Schlemmer
2004-01-24 16:40           ` Martin Schlemmer
2004-01-24 22:51             ` Benjamin Judas
2004-01-25  6:26               ` Martin Schlemmer
2004-01-25  8:20                 ` Brad House
2004-01-25 11:17                   ` Martin Schlemmer
2004-01-25 15:52                     ` Brad House
2004-01-25 16:11                       ` Martin Schlemmer
2004-01-25 16:23                         ` Brad House
2004-01-25 16:14                   ` Martin Schlemmer
2004-01-25 16:24                     ` Brad House
2004-01-25 16:17                   ` Martin Schlemmer
2004-01-25 16:29                     ` Brad House
2004-01-26 17:50                       ` Martin Schlemmer
2004-01-26 18:02                         ` Brad House [this message]
2004-01-26 18:14                           ` Martin Schlemmer
2004-01-26 18:49                             ` Brad House
2004-01-27 17:13                               ` Martin Schlemmer
     [not found]                                 ` <1075311848.9415.1.camel@nosferatu.lan>
2004-01-28 18:09                                   ` Brad House
2004-01-29 17:19                                   ` Benjamin Judas
2004-01-29 18:42                                     ` Martin Schlemmer
2004-02-02  4:36                                       ` Brad House
2004-02-02  4:48                                         ` Brad House
2004-01-23 18:43   ` Brad House
2004-01-23 21:17     ` Martin Schlemmer
2004-01-23 21:38       ` Brad House
2004-01-23 22:26         ` Martin Schlemmer
2004-01-23 23:55           ` Daniel Robbins
2004-01-24 16:40             ` Martin Schlemmer
2004-01-24 21:01               ` Daniel Robbins
  -- strict thread matches above, loose matches on Subject: below --
2004-02-02  4:48 Brad House
2004-02-02 19:37 ` Martin Schlemmer
2004-02-02 19:54   ` Brad House
2004-02-02 20:51     ` Martin Schlemmer
     [not found]     ` <1075755072.6931.82.camel@nosferatu.lan>
2004-02-02 21:17       ` Brad House
2004-02-02 21:46         ` Martin Schlemmer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=32941.209.251.159.140.1075140130.squirrel@mail.mainstreetsoftworks.com \
    --to=brad_mssw@gentoo.org \
    --cc=azarah@gentoo.org \
    --cc=gentoo-releng@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox