meta-facebook: phosphor-fan: remove chassis power off on all single-host system
Use `fb-compute-singlehost` to apply the change to all single-host
system.
Tested on Harma and Catalina.
Change-Id: I0b746d45c6cce2272920f920bb479e1bf2a478c5
Signed-off-by: Potin Lai <potin.lai@quantatw.com>
diff --git a/meta-facebook/recipes-phosphor/fans/phosphor-fan_%.bbappend b/meta-facebook/recipes-phosphor/fans/phosphor-fan_%.bbappend
index 9b4364b..bb5da86 100644
--- a/meta-facebook/recipes-phosphor/fans/phosphor-fan_%.bbappend
+++ b/meta-facebook/recipes-phosphor/fans/phosphor-fan_%.bbappend
@@ -48,7 +48,7 @@
ln -s $TARGET $LINK
}
-pkg_postinst:${PN}-sensor-monitor:harma() {
+pkg_postinst:${PN}-sensor-monitor:fb-compute-singlehost() {
rm -f $D$systemd_system_unitdir/obmc-chassis-hard-poweroff@0.target.requires/obmc-chassis-poweroff@.target
}