public inbox for gentoo-releng@lists.gentoo.org
 help / color / mirror / Atom feed
From: Martin Schlemmer <azarah@gentoo.org>
To: Gentoo-Releng <gentoo-releng@lists.gentoo.org>
Subject: Re: [gentoo-releng] x86-livecd - bugs and suggestions
Date: Tue, 27 Jan 2004 19:13:28 +0200	[thread overview]
Message-ID: <1075223435.7526.5.camel@nosferatu.lan> (raw)
In-Reply-To: <33018.209.251.159.140.1075142974.squirrel@mail.mainstreetsoftworks.com>


[-- Attachment #1.1: Type: text/plain, Size: 649 bytes --]

Hi

Ok, attached works for me (when edited in).  For the livecd I used
at least (zisofs) it still uses /newroot, so that was not caught
properly with that silly sed.  With hotplug not starting, its just
variables that should not be exported (although the 'env -i ...' works
but is ugly and not expected thing to try and do).

Oh, and I left the lvm shutdown stuff - I guess it will be safer, and
we could &>/dev/null if there are any bugs ... thoughts?

Please test and let me know - its against last baselayout.


Thanks,

-- 

Martin Schlemmer
Gentoo Linux Developer, Desktop/System Team Developer
Cape Town, South Africa



[-- Attachment #1.2: rc-scripts-livecd.patch --]
[-- Type: text/x-patch, Size: 5244 bytes --]

Index: init.d/checkfs
===================================================================
RCS file: /home/cvsroot/gentoo-src/rc-scripts/init.d/checkfs,v
retrieving revision 1.32
diff -u -r1.32 checkfs
--- init.d/checkfs	5 Jan 2004 23:50:42 -0000	1.32
+++ init.d/checkfs	27 Jan 2004 17:08:25 -0000
@@ -14,7 +14,7 @@
 	#
 	# EVMS2 summport for /usr, /var ....
 	#
-	if [ -f /sbin/evms_activate ]
+	if [ -z "${CDBOOT}" -a -f /sbin/evms_activate ]
 	then
 		ebegin "Activating EVMS2"
 		evms_activate
@@ -29,7 +29,7 @@
 	# NOTE: Add needed modules for LVM or RAID, etc
 	#       to /etc/modules.autoload if needed
 	
-	if [ -x /sbin/vgscan ] && \
+	if [ -z "${CDBOOT}" -a -x /sbin/vgscan ] && \
 	   [ -d /proc/lvm -o "$(grep device-mapper /proc/misc 2>/dev/null)" ]
 	then
 		ebegin "Setting up the Logical Volume Manager"
@@ -48,7 +48,7 @@
 	# properly configured /etc/mdadm.conf for mdadm usage. Devices in
 	# /etc/mdadm.conf are initialized first, so any duplicate devices in
 	# /etc/raidtab will not get initialized.
-	if [ -f /proc/mdstat ]
+	if [ -z "${CDBOOT}" -a -f /proc/mdstat ]
 	then
 		local mdadm_devices=
 		local raidtools_devices=
Index: init.d/halt.sh
===================================================================
RCS file: /home/cvsroot/gentoo-src/rc-scripts/init.d/halt.sh,v
retrieving revision 1.46
diff -u -r1.46 halt.sh
--- init.d/halt.sh	26 Nov 2003 19:16:18 -0000	1.46
+++ init.d/halt.sh	27 Jan 2004 17:08:26 -0000
@@ -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 | grep -v '/newroot' | 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 | grep -v '/newroot' | grep -v '/mnt/livecd'`"
 		[ -z "${remaining}" ] && break
 		
 		/bin/fuser -k -m ${sig} ${remaining} &>/dev/null
@@ -95,7 +97,8 @@
 		[ "${x}" = "${y}" ] && do_unmount="no"
 	done
 	
-	if [ "${do_unmount}" = "yes" -a "${x}" != "/mnt/livecd" ]
+	if [ "${do_unmount}" = "yes" -a \
+	     "${x}" != "/newroot" -a "${x}" != "/mnt/livecd" ]
 	then
 		umount ${x} &>/dev/null || {
 		
Index: init.d/modules
===================================================================
RCS file: /home/cvsroot/gentoo-src/rc-scripts/init.d/modules,v
retrieving revision 1.28
diff -u -r1.28 modules
--- init.d/modules	11 Aug 2003 01:27:16 -0000	1.28
+++ init.d/modules	27 Jan 2004 17:08:26 -0000
@@ -82,9 +82,12 @@
 		return 1
 	fi
 	
-	ebegin "Calculating module dependencies"
-	/sbin/modules-update &>/dev/null
-	eend $? "Failed to calculate dependencies"
+	if [ -z "${CDBOOT}" ]
+	then
+		ebegin "Calculating module dependencies"
+		/sbin/modules-update &>/dev/null
+		eend $? "Failed to calculate dependencies"
+	fi
 
 	if [ -f /etc/modules.autoload -a ! -L /etc/modules.autoload ]
 	then
Index: sbin/rc
===================================================================
RCS file: /home/cvsroot/gentoo-src/rc-scripts/sbin/rc,v
retrieving revision 1.71
diff -u -r1.71 rc
--- sbin/rc	21 Jan 2004 18:03:11 -0000	1.71
+++ sbin/rc	27 Jan 2004 17:08:26 -0000
@@ -168,7 +168,7 @@
 	# Read off the kernel commandline to see if there's any special settings
 	# especially check to see if we need to set the  CDBOOT environment variable
 	# Note: /proc MUST be mounted
-	livecd_read_commandline
+	[ -f /sbin/livecd-functions.sh ] && livecd_read_commandline
 
 	if [ -d /sys -a "$(get_KV)" -ge "$(KV_to_int '2.6.0')" ]
 	then
@@ -418,7 +418,7 @@
 	fi
 
 	# If booting off CD, we want to update inittab before setting the runlevel
-	if [ "${CDBOOT}" != "" ]
+	if [ -f "/sbin/livecd-functions.sh" -a -n "${CDBOOT}" ]
 	then
 		ebegin "Updating inittab"
 		livecd_fix_inittab
Index: src/awk/gendepends.awk
===================================================================
RCS file: /home/cvsroot/gentoo-src/rc-scripts/src/awk/gendepends.awk,v
retrieving revision 1.19
diff -u -r1.19 gendepends.awk
--- src/awk/gendepends.awk	29 Dec 2003 01:00:27 -0000	1.19
+++ src/awk/gendepends.awk	27 Jan 2004 17:08:26 -0000
@@ -466,14 +466,14 @@
 		print "" >> (CACHEDTREE)
 	}
 
-	print "export RC_DEPEND_TREE" >> (CACHEDTREE)
-	print "export RC_GOT_DEPTREE_INFO=\"yes\"" >> (CACHEDTREE)
+	# Do not export these, as we want them local
+	print "RC_GOT_DEPTREE_INFO=\"yes\"" >> (CACHEDTREE)
 	print "" >> (CACHEDTREE)
 
 	if (check_provide("logger"))
-		print "export LOGGER_SERVICE=\"" get_provide("logger") "\"" >> (CACHEDTREE)
+		print "LOGGER_SERVICE=\"" get_provide("logger") "\"" >> (CACHEDTREE)
 	else
-		print "export LOGGER_SERVICE=" >> (CACHEDTREE)
+		print "LOGGER_SERVICE=" >> (CACHEDTREE)
 		
 	close(CACHEDTREE)
 }

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

  reply	other threads:[~2004-01-27 17:31 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
2004-01-26 18:14                           ` Martin Schlemmer
2004-01-26 18:49                             ` Brad House
2004-01-27 17:13                               ` Martin Schlemmer [this message]
     [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=1075223435.7526.5.camel@nosferatu.lan \
    --to=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