mirror of
https://git.yoctoproject.org/poky
synced 2026-02-24 18:39:40 +01:00
There are cases where software after boot may need to know the current boot disk. Under the current system, it is not guaranteed which disk is the boot. While /media/sda is a good guess, it isn't always right, nor is it a good assumption that only one boot disk is in the system. This gives a standard path to the original boot disk mount which can be used to, for instance, update the syslinux file on the boot media with a newer kernel, or updating the boot parameters to add user options for future boots. Knowing which disk is the boot media keeps from updating the non-boot disk when for instance multiple syslinux boot medias are plugged in (ie ensure correct syslinux is updated when the booted system is updated). (From OE-Core rev: 2be3b2607fd164d18498299dbfc020ff17dd2ca9) Signed-off-by: Brian Lloyd <blloyd@familyhonor.net> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
18 lines
418 B
BlitzBasic
18 lines
418 B
BlitzBasic
SUMMARY = "Live image init script"
|
|
LICENSE = "MIT"
|
|
LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"
|
|
DEPENDS = "virtual/kernel"
|
|
RDEPENDS_${PN} = "udev udev-extraconf"
|
|
SRC_URI = "file://init-live.sh"
|
|
|
|
PR = "r12"
|
|
|
|
do_install() {
|
|
install -m 0755 ${WORKDIR}/init-live.sh ${D}/init
|
|
}
|
|
|
|
FILES_${PN} += " /init "
|
|
|
|
# Due to kernel dependency
|
|
PACKAGE_ARCH = "${MACHINE_ARCH}"
|