rs: Update recovery policies for sched and mfs.
Edited by David van Moolenbroek. Change-Id: I7bbe543e2349dca3856a17abddc8366d1f19fe10
This commit is contained in:
parent
3837bb5c0b
commit
dc76d7e9da
2 changed files with 8 additions and 0 deletions
7
etc/rc
7
etc/rc
|
@ -158,6 +158,13 @@ autoboot|start)
|
||||||
edit memory
|
edit memory
|
||||||
edit pfs
|
edit pfs
|
||||||
edit init
|
edit init
|
||||||
|
#
|
||||||
|
# Keep a copy around to recover the root FS from crashes
|
||||||
|
#
|
||||||
|
rootline=`cat /etc/mtab | grep "on / "`
|
||||||
|
rootfs=fs_`echo "$rootline" | cut -d' ' -f1 | cut -d'/' -f3`
|
||||||
|
roottype=`echo "$rootline" | cut -d' ' -f5`
|
||||||
|
service -c edit /service/$roottype -label $rootfs
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$sflag" ]
|
if [ "$sflag" ]
|
||||||
|
|
|
@ -34,6 +34,7 @@ struct boot_image_sys boot_image_sys_table[] = {
|
||||||
{ RS_PROC_NR, SRVR_SF },
|
{ RS_PROC_NR, SRVR_SF },
|
||||||
{ VM_PROC_NR, VM_SF },
|
{ VM_PROC_NR, VM_SF },
|
||||||
{ PM_PROC_NR, SRVR_SF },
|
{ PM_PROC_NR, SRVR_SF },
|
||||||
|
{ SCHED_PROC_NR, SRVR_SF },
|
||||||
{ VFS_PROC_NR, SRVR_SF },
|
{ VFS_PROC_NR, SRVR_SF },
|
||||||
{ MFS_PROC_NR, 0 },
|
{ MFS_PROC_NR, 0 },
|
||||||
{ PFS_PROC_NR, SRV_SF },
|
{ PFS_PROC_NR, SRV_SF },
|
||||||
|
|
Loading…
Reference in a new issue