meta-bletchley: add systemd target for sled insertion and removal
Add target file for sled insertion and removal, add Requires for both
motor-init-calibration & host-ac-on service in seld insertion target,
and Conflicts in sled removal.
Signed-off-by: Potin Lai <potin.lai@quantatw.com>
Change-Id: I020694f868a352b0bcd2754a54cadd4a7d5487e5
diff --git a/meta-facebook/meta-bletchley/recipes-bletchley/detect-gpio-present/files/detect-sled-present b/meta-facebook/meta-bletchley/recipes-bletchley/detect-gpio-present/files/detect-sled-present
index 62830bf..b3c9db4 100644
--- a/meta-facebook/meta-bletchley/recipes-bletchley/detect-gpio-present/files/detect-sled-present
+++ b/meta-facebook/meta-bletchley/recipes-bletchley/detect-gpio-present/files/detect-sled-present
@@ -53,6 +53,9 @@
# 0054: 24c64
bind_i2c_driver "${I2C_BUS_NUM}-0054" "at24"
+
+ # start bletchley-sled-insertion target
+ /bin/systemctl start bletchley-sled-insertion@"${SLED_ID}".target
}
sled_remove_action()
@@ -83,6 +86,9 @@
# # 0054: 24c64
# unbind_i2c_driver "${I2C_BUS_NUM}-0054" "at24"
+
+ # start bletchley-sled-removal target
+ /bin/systemctl start bletchley-sled-removal@"${SLED_ID}".target
}