- This patch adds rw-sync option when mounting the main root filesystem
from the recovery root filesystem, which fixes the rcovery kernel
crash problem
- Add license header to recvoverfs.sh

Signed-off-by: Sam Nelson <[email protected]>
---
 .../crash-recovery/crash-recovery.bb               |    3 ++-
 .../crash-recovery/files/recoveryfs.sh             |   26 +++++++++++++++++---
 2 files changed, 25 insertions(+), 4 deletions(-)

diff --git a/meta-arago-extras/recipes-support/crash-recovery/crash-recovery.bb 
b/meta-arago-extras/recipes-support/crash-recovery/crash-recovery.bb
index 3ee7cc1..9595909 100644
--- a/meta-arago-extras/recipes-support/crash-recovery/crash-recovery.bb
+++ b/meta-arago-extras/recipes-support/crash-recovery/crash-recovery.bb
@@ -2,7 +2,8 @@ DESCRIPTION = "Initscripts for kdump recovery mechanism"
 LICENSE = "BSD-3-Clause"
 
 COMPATIBLE_MACHINE = "keystone"
-LIC_FILES_CHKSUM = "file://recoveryfs.sh;md5=e1cea7fe03a879dfe71592798e89ed0d"
+LIC_FILES_CHKSUM = 
"file://recoveryfs.sh;beginline=1;endline=20;md5=83e9f5412fd9a0db2aee516b52c24535"
+PR ="r1"
 
 S = "${WORKDIR}"
 SRC_URI = "file://recoveryfs.sh"
diff --git 
a/meta-arago-extras/recipes-support/crash-recovery/files/recoveryfs.sh 
b/meta-arago-extras/recipes-support/crash-recovery/files/recoveryfs.sh
index 665b95e..d1b15e4 100755
--- a/meta-arago-extras/recipes-support/crash-recovery/files/recoveryfs.sh
+++ b/meta-arago-extras/recipes-support/crash-recovery/files/recoveryfs.sh
@@ -1,13 +1,33 @@
+#*
+#* Copyright (C) 2012-2014 Texas Instruments Incorporated - http://www.ti.com/
+#*
+#*
+#*  Redistribution and use in source and binary forms, with or without
+#*  modification, are permitted provided that the following conditions
+#*  are met:
+#*
+#*    Redistributions of source code must retain the above copyright
+#*    notice, this list of conditions and the following disclaimer.
+#*
+#*    Redistributions in binary form must reproduce the above copyright
+#*    notice, this list of conditions and the following disclaimer in the
+#*    documentation and/or other materials provided with the
+#*    distribution.
+#*
+#*    Neither the name of Texas Instruments Incorporated nor the names of
+#*    its contributors may be used to endorse or promote products derived
+#*    from this software without specific prior written permission.
+#*
+
 #!/bin/sh
 
 if [ -f /proc/vmcore ] ; then
   mkdir -p /mnt/boot2
-  mount -t ubifs /dev/ubi0_2 /mnt/boot2
+  mount -o rw,sync -t ubifs /dev/ubi0_2 /mnt/boot2
   if [ $? -eq 0 ] ; then
      if [ -f /usr/bin/makedumpfile ] ; then
        makedumpfile -E -d 31 /proc/vmcore /mnt/boot2/home/root/coredump.elf
-       gzip -c /mnt/boot2/home/root/coredump.elf > \
-           /mnt/boot2/home/root/coredump.elf.gz
+       gzip -c /mnt/boot2/home/root/coredump.elf > 
/mnt/boot2/home/root/coredump.elf.gz
        rm -rf /mnt/boot2/home/root/coredump.elf
        sync
        reboot
-- 
1.7.9.5

_______________________________________________
meta-arago mailing list
[email protected]
http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago

Reply via email to