Gentoo Archives: gentoo-releng

From: Brad House <brad_mssw@g.o>
To: Martin Schlemmer <azarah@g.o>
Cc: gentoo-releng@l.g.o
Subject: Re: [gentoo-releng] x86-livecd - bugs and suggestions
Date: Mon, 26 Jan 2004 18:07:27
Message-Id: 32941.209.251.159.140.1075140130.squirrel@mail.mainstreetsoftworks.com
In Reply to: Re: [gentoo-releng] x86-livecd - bugs and suggestions by Martin Schlemmer
1 >
2 > Could you try to change it to:
3 >
4 > env -i /etc/init.d/hotplug start
5 >
6 > just in case its an env full or whatever issue?
7 >
8
9 yep, I can try that. Also, it seems when using zisofs, it's
10 killing all processes, or something, so it won't reboot. I think
11 it's because it's trying to umount the cdrom, so I tried to do
12 the patch pasted onto the end of this e-mail. It didn't seem
13 to help. I need to add in some debugging, but I'm 99% sure
14 the error exists in this region as I see the fuser command
15 sending a signal 9 to all processes, so it needs to be prevented
16 I would assume :/
17
18 Any help on that would be appreciated as well. Thanks!
19
20 Oh yeah, if you use 'normal' for the cdfs type now, it works
21 great, and does not umount the loopback (reboots fine). It's just
22 zisofs I'm having an issue with now.
23
24 -Brad
25
26
27 --- rc-scripts-1.4.3.12p3/init.d/halt.sh 2003-11-26
28 14:16:18.000000000 -0500
29 +++ rc-scripts-1.4.3.12p8/init.d/halt.sh 2004-01-25
30 22:42:15.000000000 -0500
31 @@ -48,7 +48,8 @@
32 # Unmount file systems, killing processes if we have to.
33 # Unmount loopback stuff first
34 # Use `umount -d` to detach the loopback device
35 -remaining="`awk '!/^#/ && $1 ~ /^\/dev\/loop/ && $2 != "/" {print $2}'
36 /proc/mounts | sort -r`"
37 +remaining="`awk '!/^#/ && $1 ~ /^\/dev\/loop/ && $2 != "/" {print $2}'
38 /proc/mounts | \
39 + sort -r | sed -e 's:/newroot::g' | grep -v mnt/livecd`"
40 [ -n "${remaining}" ] && {
41 sig=
42 retry=3
43 @@ -66,7 +67,8 @@
44 eend $? "Failed to unmount filesystems"
45 fi
46
47 - remaining="`awk '!/^#/ && $1 ~ /^\/dev\/loop/ && $2 != "/"
48 {print $2}' /proc/mounts | sort -r`"
49 + remaining="`awk '!/^#/ && $1 ~ /^\/dev\/loop/ && $2 != "/"
50 {print $2}' /proc/mounts | \
51 + sort -r | sed -e 's:/newroot::g' | grep -v
52 mnt/livecd`"
53 [ -z "${remaining}" ] && break
54
55 /bin/fuser -k -m ${sig} ${remaining} &>/dev/null
56 @@ -94,8 +96,20 @@
57 do
58 [ "${x}" = "${y}" ] && do_unmount="no"
59 done
60 -
61 - if [ "${do_unmount}" = "yes" -a "${x}" != "/mnt/livecd" ]
62 +
63 + if [ "${CDBOOT}" != "" ]
64 + then
65 + case ${x} in
66 + *mnt/cdrom*)
67 + do_unmount="no"
68 + ;;
69 + *mnt/livecd*)
70 + do_unmount="no"
71 + ;;
72 + esac
73 + fi
74 +
75 + if [ "${do_unmount}" = "yes" ]
76 then
77 umount ${x} &>/dev/null || {
78
79 @@ -110,7 +124,7 @@
80 eend 0
81
82 # Stop LVM
83 -if [ -x /sbin/vgchange ] && [ -f /etc/lvmtab -o -d /etc/lvm ] && \
84 +if [ "${CDBOOT}" = "" ] && [ -x /sbin/vgchange ] && [ -f /etc/lvmtab -o
85 -d /etc/lvm ] && \
86 [ -d /proc/lvm -o "`grep device-mapper /proc/misc 2>/dev/null`" ]
87 then
88 ebegin "Shutting down the Logical Volume Manager"
89
90
91 --
92 gentoo-releng@g.o mailing list

Replies

Subject Author
Re: [gentoo-releng] x86-livecd - bugs and suggestions Martin Schlemmer <azarah@g.o>