This commit adds Individual Service Upgrade (ISU) feature to sensord
package. When installed it will allow to upgrade this service using ISU
mechanism, without the need to perform full OS Upgrade.
This commits add necessary configuration to create upgrade packages of
needed format. ISU framework itself is maintained and installed
separately.
Change-Id: Iac0b284f42277e12aa2e0f4a90dcada4cbde1327
(cherry picked from commit
c9d2dab94c4c6187571b65b9b0443ad48afc95e3)
ADD_SUBDIRECTORY(src/sensorctl)
ADD_SUBDIRECTORY(src/physical-sensor)
ADD_SUBDIRECTORY(src/fusion-sensor)
+ADD_SUBDIRECTORY(isu)
INSTALL(
DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/include/
--- /dev/null
+CMAKE_MINIMUM_REQUIRED(VERSION 2.6)
+PROJECT(ISU C)
+
+INSTALL(FILES isu.cfg DESTINATION /etc/isu/sensord/ PERMISSIONS OWNER_WRITE OWNER_READ)
+INSTALL(FILES system-services/sensord.service DESTINATION /etc/isu/sensord/system-services/ PERMISSIONS OWNER_WRITE OWNER_READ)
--- /dev/null
+[isu]
+name=#NAME#
+version=#VERSION#
+system_service=sensord.service
+
+[files]
+/usr/bin/sensord
+
--- /dev/null
+[Unit]
+Description=Sensor Daemon
+Requires=sensord.socket
+
+[Service]
+User=sensor
+Group=input
+Type=notify
+NotifyAccess=all
+SmackProcessLabel=System
+EnvironmentFile=/etc/isu/service-common.inc
+ExecStart=/bin/isu-sandbox $ISU_SANDBOX_INVOCATION \
+ --bind #ISU_RUN_PATH#/sensord/rootfs/usr/bin/sensord /usr/bin/sensord \
+ /usr/bin/sensord
+MemoryLimit=20M
+Nice=-5
+AmbientCapabilities=CAP_SETFCAP CAP_SETUID CAP_SETGID
+SecureBits=keep-caps
+
+[Install]
+WantedBy=multi-user.target
%description -n sensor-test
Sensor functional testing
+%isu_package
+
%prep
%setup -q