mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-06-03 14:19:52 +00:00
nvme-cli: defer host ID generation to post installation
Signed-off-by: Stefan Wiehler <stefan.wiehler@missinglinkelectronics.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
@@ -4,7 +4,7 @@ HOMEPAGE = "https://github.com/linux-nvme/nvme-cli"
|
|||||||
SECTION = "console/utils"
|
SECTION = "console/utils"
|
||||||
LICENSE = "GPLv2"
|
LICENSE = "GPLv2"
|
||||||
LIC_FILES_CHKSUM = "file://LICENSE;md5=8264535c0c4e9c6c335635c4026a8022"
|
LIC_FILES_CHKSUM = "file://LICENSE;md5=8264535c0c4e9c6c335635c4026a8022"
|
||||||
DEPENDS = "util-linux util-linux-native"
|
DEPENDS = "util-linux"
|
||||||
PV .= "+git${SRCPV}"
|
PV .= "+git${SRCPV}"
|
||||||
|
|
||||||
SRC_URI = "git://github.com/linux-nvme/nvme-cli.git"
|
SRC_URI = "git://github.com/linux-nvme/nvme-cli.git"
|
||||||
@@ -21,6 +21,7 @@ do_install() {
|
|||||||
|
|
||||||
pkg_postinst_ontarget_${PN}() {
|
pkg_postinst_ontarget_${PN}() {
|
||||||
${sbindir}/nvme gen-hostnqn > ${sysconfdir}/nvme/hostnqn
|
${sbindir}/nvme gen-hostnqn > ${sysconfdir}/nvme/hostnqn
|
||||||
|
${bindir}/uuidgen > ${sysconfdir}/nvme/hostid
|
||||||
}
|
}
|
||||||
|
|
||||||
PACKAGES =+ "${PN}-dracut ${PN}-zsh-completion"
|
PACKAGES =+ "${PN}-dracut ${PN}-zsh-completion"
|
||||||
@@ -28,3 +29,5 @@ PACKAGES =+ "${PN}-dracut ${PN}-zsh-completion"
|
|||||||
FILES_${PN} += "${systemd_system_unitdir}"
|
FILES_${PN} += "${systemd_system_unitdir}"
|
||||||
FILES_${PN}-dracut = "${libdir}/dracut/dracut.conf.d"
|
FILES_${PN}-dracut = "${libdir}/dracut/dracut.conf.d"
|
||||||
FILES_${PN}-zsh-completion = "${datadir}/zsh/site-functions"
|
FILES_${PN}-zsh-completion = "${datadir}/zsh/site-functions"
|
||||||
|
|
||||||
|
RDEPENDS_${PN} = "util-linux-uuidgen"
|
||||||
|
|||||||
Reference in New Issue
Block a user