diff options
author | Cristian Iorga <cristian.iorga@intel.com> | 2014-06-20 18:42:19 +0300 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-06-23 17:54:30 +0100 |
commit | 809350a23ff2901d90683de52822a715b93a0d41 (patch) | |
tree | 0914f62389c5e8c31be7ab0b2f3bb92e556a1849 /meta | |
parent | a8f453d5b2169d4144133b5c469d904f4e4f3ddc (diff) | |
download | poky-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.sh | 4 |
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 |
155 | mount $rootfs /tgt_root | 155 | mount $rootfs /tgt_root |
156 | mount -o rw,loop,noatime,nodiratime /run/media/$1/$2 /src_root | 156 | mount -o rw,loop,noatime,nodiratime /run/media/$1/$2 /src_root |
157 | |||
157 | echo "Copying rootfs files..." | 158 | echo "Copying rootfs files..." |
158 | cp -a /src_root/* /tgt_root | 159 | cp -a /src_root/* /tgt_root |
160 | |||
161 | touch /tgt_root/etc/masterimage | ||
162 | |||
159 | if [ -d /tgt_root/etc/ ] ; then | 163 | if [ -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... |