diff options
author | Florian Fainelli <florian@openwrt.org> | 2010-03-21 17:16:50 +0000 |
---|---|---|
committer | Florian Fainelli <florian@openwrt.org> | 2010-03-21 17:16:50 +0000 |
commit | 7af8ee04812f647ce74adbe04f0d5d18a39bbd29 (patch) | |
tree | 9a50a2973e0866572e2cf8394d65dba645ac3c08 /package/base-files/files/lib/preinit | |
parent | e7f046805af93c3af6d318907033cf0d803e4b34 (diff) | |
download | upstream-7af8ee04812f647ce74adbe04f0d5d18a39bbd29.tar.gz upstream-7af8ee04812f647ce74adbe04f0d5d18a39bbd29.tar.bz2 upstream-7af8ee04812f647ce74adbe04f0d5d18a39bbd29.zip |
change from /jffs to /overlay, patch from Daniel Dickinson
SVN-Revision: 20356
Diffstat (limited to 'package/base-files/files/lib/preinit')
-rw-r--r-- | package/base-files/files/lib/preinit/40_mount_jffs2 | 3 | ||||
-rw-r--r-- | package/base-files/files/lib/preinit/70_pivot_jffs2_root | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/package/base-files/files/lib/preinit/40_mount_jffs2 b/package/base-files/files/lib/preinit/40_mount_jffs2 index 99fe262c68..cb743ea75c 100644 --- a/package/base-files/files/lib/preinit/40_mount_jffs2 +++ b/package/base-files/files/lib/preinit/40_mount_jffs2 @@ -3,7 +3,8 @@ # Copyright (C) 2010 Vertical Communications find_mount_jffs2() { - mount "$(find_mtd_part rootfs_data)" /jffs -t jffs2 + mkdir -p /tmp/overlay + mount "$(find_mtd_part rootfs_data)" /tmp/overlay -t jffs2 } jffs2_not_mounted() { diff --git a/package/base-files/files/lib/preinit/70_pivot_jffs2_root b/package/base-files/files/lib/preinit/70_pivot_jffs2_root index f0a2a5569a..821bfb14f3 100644 --- a/package/base-files/files/lib/preinit/70_pivot_jffs2_root +++ b/package/base-files/files/lib/preinit/70_pivot_jffs2_root @@ -5,7 +5,8 @@ rootfs_pivot() { check_skip || jffs2_not_mounted || { echo "switching to jffs2" - fopivot /jffs /rom && pi_mount_skip_next=true + mount -o move /tmp/overlay /overlay 2>&- + fopivot /overlay /rom && pi_mount_skip_next=true } } |