diff options
| -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... |
