summaryrefslogtreecommitdiffstats
path: root/meta
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:54:30 +0100
commit809350a23ff2901d90683de52822a715b93a0d41 (patch)
tree0914f62389c5e8c31be7ab0b2f3bb92e556a1849 /meta
parenta8f453d5b2169d4144133b5c469d904f4e4f3ddc (diff)
downloadpoky-809350a23ff2901d90683de52822a715b93a0d41.tar.gz
init-install-testfs: create signature file for master image
Also small cosmetic changes. (From OE-Core rev: 33c464269155f268cb08f086e530187bac61c299) Signed-off-by: Cristian Iorga <cristian.iorga@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-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 cf290a5bef..618a53d436 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
154# Handling of the target root partition 154# Handling of the target root partition
155mount $rootfs /tgt_root 155mount $rootfs /tgt_root
156mount -o rw,loop,noatime,nodiratime /run/media/$1/$2 /src_root 156mount -o rw,loop,noatime,nodiratime /run/media/$1/$2 /src_root
157
157echo "Copying rootfs files..." 158echo "Copying rootfs files..."
158cp -a /src_root/* /tgt_root 159cp -a /src_root/* /tgt_root
160
161touch /tgt_root/etc/masterimage
162
159if [ -d /tgt_root/etc/ ] ; then 163if [ -d /tgt_root/etc/ ] ; then
160 echo "$bootfs /boot ext3 defaults 1 2" >> /tgt_root/etc/fstab 164 echo "$bootfs /boot ext3 defaults 1 2" >> /tgt_root/etc/fstab
161 # We dont want udev to mount our root device while we're booting... 165 # We dont want udev to mount our root device while we're booting...