aboutsummaryrefslogtreecommitdiffstats
path: root/meta/recipes-core
diff options
context:
space:
mode:
authorCristian Iorga <cristian.iorga@intel.com>2014-06-20 18:42:19 +0300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2014-06-23 17:51:22 +0100
commit33c464269155f268cb08f086e530187bac61c299 (patch)
tree610ea7c59bc9a6c0400e68dbaca8ed238fe05c00 /meta/recipes-core
parent913fd224499c57c7596bd49e1eec5f570c3edf68 (diff)
downloadopenembedded-core-contrib-33c464269155f268cb08f086e530187bac61c299.tar.gz
init-install-testfs: create signature file for master image
Also small cosmetic changes. Signed-off-by: Cristian Iorga <cristian.iorga@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-core')
-rw-r--r--meta/recipes-core/initrdscripts/files/init-install-testfs.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/meta/recipes-core/initrdscripts/files/init-install-testfs.sh b/meta/recipes-core/initrdscripts/files/init-install-testfs.sh
index cf290a5befd..618a53d436b 100644
--- a/meta/recipes-core/initrdscripts/files/init-install-testfs.sh
+++ b/meta/recipes-core/initrdscripts/files/init-install-testfs.sh
@@ -154,8 +154,12 @@ mkdir -p /boot
# Handling of the target root partition
mount $rootfs /tgt_root
mount -o rw,loop,noatime,nodiratime /run/media/$1/$2 /src_root
+
echo "Copying rootfs files..."
cp -a /src_root/* /tgt_root
+
+touch /tgt_root/etc/masterimage
+
if [ -d /tgt_root/etc/ ] ; then
echo "$bootfs /boot ext3 defaults 1 2" >> /tgt_root/etc/fstab
# We dont want udev to mount our root device while we're booting...