From 2ee9bc0e6d5cf308d26f248b3a673f6087510bc2 Mon Sep 17 00:00:00 2001 From: Raptor Engineering Development Team Date: Tue, 18 Feb 2020 08:28:11 +0000 Subject: Remove fw_setenv from initramfs environment as it is not needed and works counter-intuitively In particular it will reset the environment to its compiled-in default, not the default environment of the installed U-boot version, when it is used to set a variable on a corrupted or blank (invalid checksum) environment parition. --- meta-phosphor/recipes-phosphor/initrdscripts/obmc-phosphor-initfs.bb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/meta-phosphor/recipes-phosphor/initrdscripts/obmc-phosphor-initfs.bb b/meta-phosphor/recipes-phosphor/initrdscripts/obmc-phosphor-initfs.bb index 3903321db..be18a7cb1 100644 --- a/meta-phosphor/recipes-phosphor/initrdscripts/obmc-phosphor-initfs.bb +++ b/meta-phosphor/recipes-phosphor/initrdscripts/obmc-phosphor-initfs.bb @@ -37,10 +37,9 @@ do_install() { install -m 0644 ${STAGING_DIR}/fw_env.config ${D}/etc/fw_env.config install -d ${D}/bin install -m 0755 ${STAGING_DIR}/bin/fw_printenv ${D}/bin/fw_printenv - install -m 0755 ${STAGING_DIR}/bin/fw_setenv ${D}/bin/fw_setenv install -m 0755 ${STAGING_DIR}/bin/bbe ${D}/bin/bbe } FILES_${PN} += " /init /shutdown /update /whitelist /dev " FILES_${PN} += " /init-options /init-download-url " -FILES_${PN} += " /bin/fw_printenv /bin/fw_setenv /bin/bbe " +FILES_${PN} += " /bin/fw_printenv /bin/bbe " -- cgit v1.2.1