ALT Linux Bugzilla
– Attachment 1471 Details for
Bug 9488
RAID-related failures should not block startup process
New bug
|
Search
|
[?]
|
Help
Register
|
Log In
[x]
|
Forgot Password
Login:
[x]
|
EN
|
RU
[patch]
Мой вариант заплатки на rc.sysinit
rc.sysinit-onraiderror.patch (text/plain), 1.30 KB, created by
evseev
on 2006-04-28 18:40:33 MSD
(
hide
)
Description:
Мой вариант заплатки на rc.sysinit
Filename:
MIME Type:
Creator:
evseev
Created:
2006-04-28 18:40:33 MSD
Size:
1.30 KB
patch
obsolete
>--- rc.sysinit.orig 2005-10-07 16:27:33 +0400 >+++ rc.sysinit 2006-04-28 18:05:53 +0400 >@@ -286,18 +286,35 @@ > if ! /etc/rc.d/scripts/raidstart; then > echo > echo >- echo "*** An error occurred during the RAID startup" >- echo "*** Dropping you to a shell; the system will reboot" >- echo "*** when you leave the shell." >+ echo "*** An error occurred during the RAID startup:" >+ stop= >+ if grep -iqws 'onraiderror=ignore' /proc/cmdline; then >+ echo >+ echo "TRY TO CONTINUE NORMAL STARTUP" >+ echo >+ elif grep -iqws 'onraiderror=stop' /proc/cmdline; then >+ stop=1 >+ else >+ echo "*** - Press ENTER for dropping you to a shell;" >+ echo "*** the system will reboot when you leave the shell." >+ echo "*** - Or wait 60 seconds for trying to continue normal startup." >+ read -t 60 && stop=1 >+ fi > >- PS1="(RAID Repair) \# # "; export PS1 >- sulogin >+ if [ -n "$stop" ]; then >+ echo >+ echo "DROP TO SHELL, REBOOT WHEN YOU LEAVE THE SHELL..." >+ echo >+ PS1="(RAID Repair) \# # "; export PS1 >+ sulogin > >- echo "Unmounting file systems" >- umount -arnf >- mount -n -o remount,ro / >- echo "Automatic reboot in progress." >- reboot -f >+ echo "Unmounting file systems" >+ umount -arnf >+ mount -n -o remount,ro / >+ echo "Automatic reboot in progress." >+ reboot -f >+ sulogin_reboot >+ fi > fi > fi >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 9488
: 1471