summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
Diffstat (limited to 'meta')
-rw-r--r--meta/recipes-core/images/core-image-tiny-initramfs.bb12
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
30COMPATIBLE_HOST = "(i.86|x86_64).*-linux" 30COMPATIBLE_HOST = "(i.86|x86_64).*-linux"
31
32python 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
42IMAGE_PREPROCESS_COMMAND += "tinyinitrd;"