View | Details | Raw Unified | Return to bug 9488
Collapse All | Expand All

(-)rc.sysinit.orig (-10 / +27 lines)
Lines 286-303 Link Here
286
	if ! /etc/rc.d/scripts/raidstart; then
286
	if ! /etc/rc.d/scripts/raidstart; then
287
		echo
287
		echo
288
		echo
288
		echo
289
		echo "*** An error occurred during the RAID startup"
289
		echo "*** An error occurred during the RAID startup:"
290
		echo "*** Dropping you to a shell; the system will reboot"
290
		stop=
291
		echo "*** when you leave the shell."
291
		if grep -iqws 'onraiderror=ignore' /proc/cmdline; then
292
			echo
293
			echo "TRY TO CONTINUE NORMAL STARTUP"
294
			echo
295
		elif grep -iqws 'onraiderror=stop' /proc/cmdline; then
296
			stop=1
297
		else
298
			echo "*** - Press ENTER for dropping you to a shell;"
299
			echo "***   the system will reboot when you leave the shell."
300
			echo "*** - Or wait 60 seconds for trying to continue normal startup."
301
			read -t 60 && stop=1
302
		fi
292
303
293
		PS1="(RAID Repair) \# # "; export PS1
304
		if [ -n "$stop" ]; then
294
		sulogin
305
			echo
306
			echo "DROP TO SHELL, REBOOT WHEN YOU LEAVE THE SHELL..."
307
			echo
308
			PS1="(RAID Repair) \# # "; export PS1
309
			sulogin
295
310
296
		echo "Unmounting file systems"
311
			echo "Unmounting file systems"
297
		umount -arnf
312
			umount -arnf
298
		mount -n -o remount,ro /
313
			mount -n -o remount,ro /
299
		echo "Automatic reboot in progress."
314
			echo "Automatic reboot in progress."
300
		reboot -f
315
			reboot -f
316
			sulogin_reboot
317
		fi
301
	fi
318
	fi
302
fi
319
fi
303
320

Return to bug 9488