diff options
Diffstat (limited to 'meta')
-rw-r--r-- | meta/recipes-core/images/core-image-tiny-initramfs.bb | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/meta/recipes-core/images/core-image-tiny-initramfs.bb b/meta/recipes-core/images/core-image-tiny-initramfs.bb index 846d58930e..184727ddf7 100644 --- a/meta/recipes-core/images/core-image-tiny-initramfs.bb +++ b/meta/recipes-core/images/core-image-tiny-initramfs.bb | |||
@@ -28,3 +28,15 @@ BAD_RECOMMENDATIONS += "busybox-syslog" | |||
28 | 28 | ||
29 | # Use the same restriction as initramfs-live-install | 29 | # Use the same restriction as initramfs-live-install |
30 | COMPATIBLE_HOST = "(i.86|x86_64).*-linux" | 30 | COMPATIBLE_HOST = "(i.86|x86_64).*-linux" |
31 | |||
32 | python tinyinitrd () { | ||
33 | # Modify our init file so the user knows we drop to shell prompt on purpose | ||
34 | newinit = None | ||
35 | with open(d.expand('${IMAGE_ROOTFS}/init'), 'r') as init: | ||
36 | newinit = init.read() | ||
37 | newinit = newinit.replace('Cannot find $ROOT_IMAGE file in /run/media/* , dropping to a shell ', 'Poky Tiny Reference Distribution:') | ||
38 | with open(d.expand('${IMAGE_ROOTFS}/init'), 'w') as init: | ||
39 | init.write(newinit) | ||
40 | } | ||
41 | |||
42 | IMAGE_PREPROCESS_COMMAND += "tinyinitrd;" | ||