ceph: remove ceph user and disable systemd services 20/3620/1
authorJackie Huang <jackie.huang@windriver.com>
Thu, 7 May 2020 08:22:57 +0000 (16:22 +0800)
committerJackie Huang <jackie.huang@windriver.com>
Thu, 7 May 2020 12:51:47 +0000 (20:51 +0800)
In stx 3.0, ceph runs with root user and is not meant to
be managed by systemd, so remove ceph user group, and
disable systemd services by default.

Issue-ID: INF-92
Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Change-Id: I6613f6f9c4678da897ffee3faae0ce1929bb87e5

meta-stx/conf/distro/files/ks/poky_stx_aio_ks.cfg
meta-stx/conf/distro/poky-stx.conf
meta-stx/recipes-extended/ceph/ceph_13.2.2.bb

index bae15ec..e08d8fe 100644 (file)
@@ -616,10 +616,6 @@ useradd -m -g sys_protected -G root -d /home/sysadmin -p ${SYSADMIN_P} -s /bin/s
 groupadd -r -g 128 nscd
 useradd -M -o -r -d / -s /sbin/nologin -c 'NSCD Daemon' -u 28 -g nscd nscd
 
-useradd -p '' ceph
-groupadd ceph
-usermod -a -G ceph ceph
-
 useradd -p '' patching
 groupadd patching
 usermod -a -G patching patching
index c338078..0c09985 100644 (file)
@@ -56,9 +56,6 @@ EXTRA_USERS_PARAMS_CONFIG = "\
        useradd -m -g sys_protected -G root \
            -d /home/sysadmin -p ${SYSADMIN_P} \
            -s /bin/sh sysadmin; \
-       useradd -p '' ceph; \
-       groupadd ceph; \
-       usermod -a -G ceph ceph; \
        useradd -p '' haproxy; \
        groupadd haproxy; \
        usermod -a -G haproxy haproxy; \
index 96b7076..8c6b076 100644 (file)
@@ -82,6 +82,7 @@ SYSTEMD_SERVICE_${PN} = " \
     ceph-mgr.target \
     rbdmap.service \
 "
+SYSTEMD_AUTO_ENABLE = "disable"
 
 OECMAKE_GENERATOR = "Unix Makefiles"