]> git.openpandora.org Git - openembedded.git/commitdiff
initramfs-module-block: Accept additional FSTYPE param, handle mount failure.
authorPaul Sokolovsky <pmiscml@gmail.com>
Sun, 17 Feb 2008 02:54:44 +0000 (02:54 +0000)
committerPaul Sokolovsky <pmiscml@gmail.com>
Sun, 17 Feb 2008 02:54:44 +0000 (02:54 +0000)
* FSTYPE useful for FSes not automatically recognized by mount (e.g. jffs2).

packages/initrdscripts/files/85-blockboot.sh
packages/initrdscripts/initramfs-module-block_1.0.bb

index 567f7e29b37a73383fa0ba4922f8029fe7fdf748..fee9072d3a61efd17969192481c99c2218ba66e4 100644 (file)
@@ -3,6 +3,10 @@
 
 if [ -e "$ROOT_DEVICE" ]; then
     echo "booting from: $ROOT_DEVICE"
-    mount "$ROOT_DEVICE" /mnt
+    type=""
+    if [ -n "$FSTYPE" ]; then
+       type="-t $FSTYPE"
+    fi
+    mount $type "$ROOT_DEVICE" /mnt || fatal "Unable to mount rootfs device"
     BOOT_ROOT=/mnt
 fi
index 72812a2490158a75c839885adddc1b5d4169efdc..dcee113dd1a8bebf2adde98561c714e589596c7d 100644 (file)
@@ -1,5 +1,5 @@
 SRC_URI = "file://85-blockboot.sh"
-PR = "r1"
+PR = "r2"
 RDEPENDS = "initramfs-uniboot"
 DESCRIPTION = "An initramfs module for booting off normal block devices."