public inbox for gentoo-releng@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Brad House" <brad_mssw@gentoo.org>
To: gentoo-releng@lists.gentoo.org
Cc: "Martin Schlemmer" <azarah@gentoo.org>,
	"Gentoo-Releng" <gentoo-releng@lists.gentoo.org>
Subject: Re: [gentoo-releng] x86-livecd - bugs and suggestions
Date: Sun, 1 Feb 2004 23:48:42 -0500 (EST)	[thread overview]
Message-ID: <64611.68.105.173.45.1075697322.squirrel@mail.mainstreetsoftworks.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 1312 bytes --]

figures I forgot to attach it.
-Brad

> I have attached a new patch against the p3 rc-scripts.
> This incorporate's azarah's fixes, as well as another patch
> for halt.sh which resolves the no-reboot issue for zisofs
> cds.  As usual, I have updated the baselayout-1.8.6.12-r4.ebuild
> with my patches, so anyone building livecd's needs to mark
> that stable for their arch for testing.
>
> -Brad
>
>> On Thu, 2004-01-29 at 19:19, Benjamin Judas wrote:
>>> Am Mi, den 28.01.2004 schrieb Martin Schlemmer um 18:44:
>>> > On Tue, 2004-01-27 at 19:13, Martin Schlemmer wrote:
>>> >
>>> > Brad, did you see/could you test this?  Benjamin?
>>> >
>>>
>>> Hi Martin,
>>>
>>> I tried you patch today and it looks like bootup is running fine now -
>>> no errors anymore in this part. All my hardware got detected and is
>>> working (we might need some kernel-tweaking -- but that shouldn't
>>> affect
>>> baselayout in the startup-stage anymore). Rebooting and halting however
>>> still don't work - I am also using zisofs. But it really looks good so
>>> far :)
>>
>> Could you please put the new version of the iso up again?
>>
>>
>> Thanks,
>> --
>>
>> Martin Schlemmer
>> Gentoo Linux Developer, Desktop/System Team Developer
>> Cape Town, South Africa
>>
>>
>>
>
>
> --
> gentoo-releng@gentoo.org mailing list
>
>
>

[-- Attachment #2: rc-scripts-livecd-02012004.diff --]
[-- Type: application/octet-stream, Size: 5852 bytes --]

diff -ruN rc-scripts-1.4.3.12p3/init.d/checkfs rc-scripts-1.4.3.12p9/init.d/checkfs
--- rc-scripts-1.4.3.12p3/init.d/checkfs	2004-01-05 18:50:42.000000000 -0500
+++ rc-scripts-1.4.3.12p9/init.d/checkfs	2004-01-25 02:16:11.000000000 -0500
@@ -14,7 +14,7 @@
 	#
 	# EVMS2 summport for /usr, /var ....
 	#
-	if [ -f /sbin/evms_activate ]
+	if [ "${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 [ "${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 [ "${CDBOOT}" = "" -a -f /proc/mdstat ]
 	then
 		local mdadm_devices=
 		local raidtools_devices=
diff -ruN rc-scripts-1.4.3.12p3/init.d/halt.sh rc-scripts-1.4.3.12p9/init.d/halt.sh
--- rc-scripts-1.4.3.12p3/init.d/halt.sh	2003-11-26 14:16:18.000000000 -0500
+++ rc-scripts-1.4.3.12p9/init.d/halt.sh	2004-02-01 17:37:07.000000000 -0500
@@ -2,6 +2,10 @@
 # Distributed under the terms of the GNU General Public License v2
 # $Header: /home/cvsroot/gentoo-src/rc-scripts/init.d/halt.sh,v 1.46 2003/11/26 19:16:18 azarah Exp $
 
+# Check to see if this is a livecd, if it is read the commandline
+# this mainly makes sure $CDBOOT is defined if it's a livecd
+[ -f "/sbin/livecd-functions.sh" ] && source /sbin/livecd-functions.sh && \
+	livecd_read_commandline
 
 # Reset pam_console permissions
 [ -x /sbin/pam_console_apply -a ! -c /dev/.devfsd ] && \
@@ -48,7 +52,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 +71,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 +100,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 +128,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"
diff -ruN rc-scripts-1.4.3.12p3/init.d/modules rc-scripts-1.4.3.12p9/init.d/modules
--- rc-scripts-1.4.3.12p3/init.d/modules	2003-08-10 21:27:16.000000000 -0400
+++ rc-scripts-1.4.3.12p9/init.d/modules	2004-01-25 02:12:55.000000000 -0500
@@ -81,11 +81,12 @@
 		eerror "ERROR:  system is missing /sbin/depmod !"
 		return 1
 	fi
-	
-	ebegin "Calculating module dependencies"
-	/sbin/modules-update &>/dev/null
-	eend $? "Failed to calculate dependencies"
-
+	if [ "${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
 		# Loop over every line in /etc/modules.autoload.
diff -ruN rc-scripts-1.4.3.12p3/sbin/rc rc-scripts-1.4.3.12p9/sbin/rc
--- rc-scripts-1.4.3.12p3/sbin/rc	2004-01-21 13:03:11.000000000 -0500
+++ rc-scripts-1.4.3.12p9/sbin/rc	2004-01-24 22:57:11.000000000 -0500
@@ -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 "${CDBOOT}" != "" ]
 	then
 		ebegin "Updating inittab"
 		livecd_fix_inittab
diff -ruN rc-scripts-1.4.3.12p3/src/awk/gendepends.awk rc-scripts-1.4.3.12p9/src/awk/gendepends.awk
--- rc-scripts-1.4.3.12p3/src/awk/gendepends.awk	2003-12-28 20:00:27.000000000 -0500
+++ rc-scripts-1.4.3.12p9/src/awk/gendepends.awk	2004-02-01 17:34:36.000000000 -0500
@@ -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 #3: Type: text/plain, Size: 40 bytes --]

--
gentoo-releng@gentoo.org mailing list

             reply	other threads:[~2004-02-02  4:48 UTC|newest]

Thread overview: 39+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-02-02  4:48 Brad House [this message]
2004-02-02 19:37 ` [gentoo-releng] x86-livecd - bugs and suggestions 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
  -- strict thread matches above, loose matches on Subject: below --
2004-01-23 15:04 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
     [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

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=64611.68.105.173.45.1075697322.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