Patchwork [4/5] init-install-testfs: create signature file for master image

login
register
mail settings
Submitter Cristian Iorga
Date June 20, 2014, 3:42 p.m.
Message ID <177fbfb9c3466ddf63716d959b33fc18b71ae195.1403277454.git.cristian.iorga@intel.com>
Download mbox | patch
Permalink /patch/74177/
State New
Headers show

Comments

Cristian Iorga - June 20, 2014, 3:42 p.m.
Also small cosmetic changes.

Signed-off-by: Cristian Iorga <cristian.iorga@intel.com>
---
 meta/recipes-core/initrdscripts/files/init-install-testfs.sh | 4 ++++
 1 file changed, 4 insertions(+)

Patch

diff --git a/meta/recipes-core/initrdscripts/files/init-install-testfs.sh b/meta/recipes-core/initrdscripts/files/init-install-testfs.sh
index cf290a5..618a53d 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...