Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 4151 | Differences between
and this patch

Collapse All | Expand All

(-)/sbin/rc (-3 / +57 lines)
Lines 42-50 Link Here
42
	PATH="/bin:/sbin:/usr/bin:/usr/sbin:${PATH}"
42
	PATH="/bin:/sbin:/usr/bin:/usr/sbin:${PATH}"
43
43
44
	echo
44
	echo
45
	echo -e "${GOOD}Gentoo Linux${GENTOO_VERS}; \e[34;01mhttp://www.gentoo.org${NORMAL}"
45
	echo -e "${GOOD}Gentoo Linux${GENTOO_VERS}; \e[34;01mhttp://www.gentoo.org/${NORMAL}"
46
	echo -e " Copyright 2001 Gentoo Technologies, Inc.; Distributed under the GPL"
46
	echo -e " Copyright 2001 Gentoo Technologies, Inc.; Distributed under the GPL"
47
	echo
47
	echo
48
	echo -e "Adapted by ${GOOD}Adelie Linux${GENTOO_VERS}; \e[34;01mhttp://www.adelielinux.com/${NORMAL}"
49
	echo -e "\e[33;01mFor a Linux distribution thoroughly optimized for Single System Image Clustering${NORMAL}"
50
	echo -e " Copyright 2002 CERCA and Cyberlogic, Inc.; Distributed under the GPL"
51
	echo
48
52
49
	ebegin "Mounting /proc"; \
53
	ebegin "Mounting /proc"; \
50
	try mount -n /proc; \
54
	try mount -n /proc; \
Lines 135-146 Link Here
135
	
139
	
136
	/sbin/depscan.sh
140
	/sbin/depscan.sh
137
141
138
	#swap needs to be activated *after* devfs has been mounted and *after*
142
	# Saving the kernel attributed hostname to a file for future
139
	#devfsd has been started, so that the fstab can be properly parsed
143
	# initialisation selection: see /etc/init.d/switch.
144
145
	cat /proc/sys/kernel/hostname > ${svcdir}/hostname
146
147
	#
148
	# Low-level Server/Node Initialisation 
149
	#
150
	echo -e -n "${GOOD} * ${NORMAL}Server/Node low-level initialisation : "
151
152
	if checkserver
153
	then
154
		echo "server detected."
155
		# swap needs to be activated *after* devfs has been mounted and *after*
156
		# devfsd has been started, so that the fstab can be properly parsed
157
		# and only if the server is initialized
140
158
141
	ebegin "Activating swap"
159
	ebegin "Activating swap"
142
	/sbin/swapon -a &>/dev/null
160
	/sbin/swapon -a &>/dev/null
143
	eend 0
161
	eend 0
162
	else
163
		echo "node detected."
164
		ebegin "Importing local userspace on node"
165
		try mount -t tmpfs none ${shmdir}
166
		for DIR in /etc /var /root; 
167
		do
168
			if [ -e /etc/conf.d/exclude/${DIR} ] 
169
			then
170
				find $DIR -type d | grep -v -f /etc/conf.d/exclude/${DIR} > ${shmdir}/${DIR}.lst
171
			else
172
				find $DIR -type d > ${shmdir}/${DIR}.lst
173
			fi
174
			for SUBDIR in `cat ${shmdir}/$DIR.lst`; 
175
			do
176
				mkdir ${shmdir}/${SUBDIR}
177
				chmod --reference=${SUBDIR} ${shmdir}/${SUBDIR}
178
				cp -dp ${SUBDIR}/* ${shmdir}/${SUBDIR} &>/dev/null
179
			done
180
			if [ -e /etc/conf.d/exclude/${DIR} ]
181
			then
182
				for EMPTYDIR in `cat /etc/conf.d/exclude/${DIR}`;
183
				do
184
					mkdir ${shmdir}/$EMPTYDIR
185
					chmod --reference=${SUBDIR} ${shmdir}/${SUBDIR}
186
				done
187
			fi
188
			mount -n -o bind ${shmdir}/${DIR} ${DIR}
189
		done
190
		mkdir ${shmdir}/tmp
191
		chmod 777 ${shmdir}/tmp
192
		mount -n -o bind ${shmdir}/tmp /tmp
193
		> /etc/mtab
194
		cp -f /etc/inittab.node /etc/inittab
195
		killall -1 init 
196
		eend 0
197
	fi
144
198
145
	#set the console loglevel to 1 for a cleaner boot
199
	#set the console loglevel to 1 for a cleaner boot
146
	#the logger should anyhow dump the ring-0 buffer at start to the
200
	#the logger should anyhow dump the ring-0 buffer at start to the

Return to bug 4151