diff options
Diffstat (limited to 'meta/recipes-core/initrdscripts/initramfs-framework_1.0.bb')
-rw-r--r-- | meta/recipes-core/initrdscripts/initramfs-framework_1.0.bb | 88 |
1 files changed, 48 insertions, 40 deletions
diff --git a/meta/recipes-core/initrdscripts/initramfs-framework_1.0.bb b/meta/recipes-core/initrdscripts/initramfs-framework_1.0.bb index c53a0c03ae..4dbb56a42d 100644 --- a/meta/recipes-core/initrdscripts/initramfs-framework_1.0.bb +++ b/meta/recipes-core/initrdscripts/initramfs-framework_1.0.bb | |||
@@ -1,10 +1,9 @@ | |||
1 | SUMMARY = "Modular initramfs system" | 1 | SUMMARY = "Modular initramfs system" |
2 | LICENSE = "MIT" | 2 | LICENSE = "MIT" |
3 | LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420" | 3 | LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420" |
4 | RDEPENDS_${PN} += "${VIRTUAL-RUNTIME_base-utils}" | 4 | RDEPENDS:${PN} += "${VIRTUAL-RUNTIME_base-utils}" |
5 | RRECOMMENDS_${PN} = "${VIRTUAL-RUNTIME_base-utils-syslog}" | 5 | RRECOMMENDS:${PN} = "${VIRTUAL-RUNTIME_base-utils-syslog}" |
6 | 6 | ||
7 | PR = "r4" | ||
8 | 7 | ||
9 | inherit allarch | 8 | inherit allarch |
10 | 9 | ||
@@ -18,6 +17,7 @@ SRC_URI = "file://init \ | |||
18 | file://e2fs \ | 17 | file://e2fs \ |
19 | file://debug \ | 18 | file://debug \ |
20 | file://lvm \ | 19 | file://lvm \ |
20 | file://overlayroot \ | ||
21 | " | 21 | " |
22 | 22 | ||
23 | S = "${WORKDIR}" | 23 | S = "${WORKDIR}" |
@@ -26,28 +26,31 @@ do_install() { | |||
26 | install -d ${D}/init.d | 26 | install -d ${D}/init.d |
27 | 27 | ||
28 | # base | 28 | # base |
29 | install -m 0755 ${WORKDIR}/init ${D}/init | 29 | install -m 0755 ${S}/init ${D}/init |
30 | install -m 0755 ${WORKDIR}/nfsrootfs ${D}/init.d/85-nfsrootfs | 30 | install -m 0755 ${S}/nfsrootfs ${D}/init.d/85-nfsrootfs |
31 | install -m 0755 ${WORKDIR}/rootfs ${D}/init.d/90-rootfs | 31 | install -m 0755 ${S}/rootfs ${D}/init.d/90-rootfs |
32 | install -m 0755 ${WORKDIR}/finish ${D}/init.d/99-finish | 32 | install -m 0755 ${S}/finish ${D}/init.d/99-finish |
33 | 33 | ||
34 | # exec | 34 | # exec |
35 | install -m 0755 ${WORKDIR}/exec ${D}/init.d/89-exec | 35 | install -m 0755 ${S}/exec ${D}/init.d/89-exec |
36 | 36 | ||
37 | # mdev | 37 | # mdev |
38 | install -m 0755 ${WORKDIR}/mdev ${D}/init.d/01-mdev | 38 | install -m 0755 ${S}/mdev ${D}/init.d/01-mdev |
39 | 39 | ||
40 | # udev | 40 | # udev |
41 | install -m 0755 ${WORKDIR}/udev ${D}/init.d/01-udev | 41 | install -m 0755 ${S}/udev ${D}/init.d/01-udev |
42 | 42 | ||
43 | # e2fs | 43 | # e2fs |
44 | install -m 0755 ${WORKDIR}/e2fs ${D}/init.d/10-e2fs | 44 | install -m 0755 ${S}/e2fs ${D}/init.d/10-e2fs |
45 | 45 | ||
46 | # debug | 46 | # debug |
47 | install -m 0755 ${WORKDIR}/debug ${D}/init.d/00-debug | 47 | install -m 0755 ${S}/debug ${D}/init.d/00-debug |
48 | 48 | ||
49 | # lvm | 49 | # lvm |
50 | install -m 0755 ${WORKDIR}/lvm ${D}/init.d/09-lvm | 50 | install -m 0755 ${S}/lvm ${D}/init.d/09-lvm |
51 | |||
52 | # overlayroot needs to run after rootfs module but before finish | ||
53 | install -m 0755 ${S}/overlayroot ${D}/init.d/91-overlayroot | ||
51 | 54 | ||
52 | # Create device nodes expected by some kernels in initramfs | 55 | # Create device nodes expected by some kernels in initramfs |
53 | # before even executing /init. | 56 | # before even executing /init. |
@@ -64,9 +67,10 @@ PACKAGES = "${PN}-base \ | |||
64 | initramfs-module-rootfs \ | 67 | initramfs-module-rootfs \ |
65 | initramfs-module-debug \ | 68 | initramfs-module-debug \ |
66 | initramfs-module-lvm \ | 69 | initramfs-module-lvm \ |
70 | initramfs-module-overlayroot \ | ||
67 | " | 71 | " |
68 | 72 | ||
69 | FILES_${PN}-base = "/init /init.d/99-finish /dev" | 73 | FILES:${PN}-base = "/init /init.d/99-finish /dev" |
70 | 74 | ||
71 | # 99-finish in base depends on some other module which mounts | 75 | # 99-finish in base depends on some other module which mounts |
72 | # the rootfs, like 90-rootfs. To replace that default, use | 76 | # the rootfs, like 90-rootfs. To replace that default, use |
@@ -74,36 +78,40 @@ FILES_${PN}-base = "/init /init.d/99-finish /dev" | |||
74 | # initramfs recipe and install something else, or install | 78 | # initramfs recipe and install something else, or install |
75 | # something that runs earlier (for example, a 89-my-rootfs) | 79 | # something that runs earlier (for example, a 89-my-rootfs) |
76 | # and mounts the rootfs. Then 90-rootfs will proceed immediately. | 80 | # and mounts the rootfs. Then 90-rootfs will proceed immediately. |
77 | RRECOMMENDS_${PN}-base += "initramfs-module-rootfs" | 81 | RRECOMMENDS:${PN}-base += "initramfs-module-rootfs" |
82 | |||
83 | SUMMARY:initramfs-module-exec = "initramfs support for easy execution of applications" | ||
84 | RDEPENDS:initramfs-module-exec = "${PN}-base" | ||
85 | FILES:initramfs-module-exec = "/init.d/89-exec" | ||
78 | 86 | ||
79 | SUMMARY_initramfs-module-exec = "initramfs support for easy execution of applications" | 87 | SUMMARY:initramfs-module-mdev = "initramfs support for mdev" |
80 | RDEPENDS_initramfs-module-exec = "${PN}-base" | 88 | RDEPENDS:initramfs-module-mdev = "${PN}-base busybox-mdev" |
81 | FILES_initramfs-module-exec = "/init.d/89-exec" | 89 | FILES:initramfs-module-mdev = "/init.d/01-mdev" |
82 | 90 | ||
83 | SUMMARY_initramfs-module-mdev = "initramfs support for mdev" | 91 | SUMMARY:initramfs-module-udev = "initramfs support for udev" |
84 | RDEPENDS_initramfs-module-mdev = "${PN}-base busybox-mdev" | 92 | RDEPENDS:initramfs-module-udev = "${PN}-base udev" |
85 | FILES_initramfs-module-mdev = "/init.d/01-mdev" | 93 | FILES:initramfs-module-udev = "/init.d/01-udev" |
86 | 94 | ||
87 | SUMMARY_initramfs-module-udev = "initramfs support for udev" | 95 | SUMMARY:initramfs-module-e2fs = "initramfs support for ext4/ext3/ext2 filesystems" |
88 | RDEPENDS_initramfs-module-udev = "${PN}-base udev" | 96 | RDEPENDS:initramfs-module-e2fs = "${PN}-base" |
89 | FILES_initramfs-module-udev = "/init.d/01-udev" | 97 | FILES:initramfs-module-e2fs = "/init.d/10-e2fs" |
90 | 98 | ||
91 | SUMMARY_initramfs-module-e2fs = "initramfs support for ext4/ext3/ext2 filesystems" | 99 | SUMMARY:initramfs-module-nfsrootfs = "initramfs support for locating and mounting the root partition via nfs" |
92 | RDEPENDS_initramfs-module-e2fs = "${PN}-base" | 100 | RDEPENDS:initramfs-module-nfsrootfs = "${PN}-base" |
93 | FILES_initramfs-module-e2fs = "/init.d/10-e2fs" | 101 | FILES:initramfs-module-nfsrootfs = "/init.d/85-nfsrootfs" |
94 | 102 | ||
95 | SUMMARY_initramfs-module-nfsrootfs = "initramfs support for locating and mounting the root partition via nfs" | 103 | SUMMARY:initramfs-module-rootfs = "initramfs support for locating and mounting the root partition" |
96 | RDEPENDS_initramfs-module-nfsrootfs = "${PN}-base" | 104 | RDEPENDS:initramfs-module-rootfs = "${PN}-base" |
97 | FILES_initramfs-module-nfsrootfs = "/init.d/85-nfsrootfs" | 105 | FILES:initramfs-module-rootfs = "/init.d/90-rootfs" |
98 | 106 | ||
99 | SUMMARY_initramfs-module-rootfs = "initramfs support for locating and mounting the root partition" | 107 | SUMMARY:initramfs-module-debug = "initramfs dynamic debug support" |
100 | RDEPENDS_initramfs-module-rootfs = "${PN}-base" | 108 | RDEPENDS:initramfs-module-debug = "${PN}-base" |
101 | FILES_initramfs-module-rootfs = "/init.d/90-rootfs" | 109 | FILES:initramfs-module-debug = "/init.d/00-debug" |
102 | 110 | ||
103 | SUMMARY_initramfs-module-debug = "initramfs dynamic debug support" | 111 | SUMMARY:initramfs-module-lvm = "initramfs lvm rootfs support" |
104 | RDEPENDS_initramfs-module-debug = "${PN}-base" | 112 | RDEPENDS:initramfs-module-lvm = "${PN}-base" |
105 | FILES_initramfs-module-debug = "/init.d/00-debug" | 113 | FILES:initramfs-module-lvm = "/init.d/09-lvm" |
106 | 114 | ||
107 | SUMMARY_initramfs-module-lvm = "initramfs lvm rootfs support" | 115 | SUMMARY:initramfs-module-overlayroot = "initramfs support for mounting a RW overlay on top of a RO root filesystem" |
108 | RDEPENDS_initramfs-module-lvm = "${PN}-base" | 116 | RDEPENDS:initramfs-module-overlayroot = "${PN}-base initramfs-module-rootfs" |
109 | FILES_initramfs-module-lvm = "/init.d/09-lvm" | 117 | FILES:initramfs-module-overlayroot = "/init.d/91-overlayroot" |