Move passwd and group back from /opt/etc to /etc/
authorYin Kangkai <kangkai.yin@intel.com>
Mon, 12 Nov 2012 14:59:50 +0000 (22:59 +0800)
committerYin Kangkai <kangkai.yin@intel.com>
Tue, 13 Nov 2012 01:28:30 +0000 (09:28 +0800)
commit0ba16a06f2a72c615f41f94b6e4bb697f825941b
treea869612490c0d9516c9b62f59f4a5424c65e9228
parentb30402ea32f004cfb8f1b7ab2b27b597dc136a43
Move passwd and group back from /opt/etc to /etc/

Credentials (passwd and group) files in /opt (another partiton)
instead of root introduces a depending cycle in systemd env:

1. systemd _depends_ on udev being able to notify it to mount
   /dev/mmcblk0p6 on /opt;

2. udev depends on "group" to set correctly permissions to /dev/
   nodes based on its rules.

3. credentials (passwd and group) files are in /opt, only availabe
   when mounted;

Some other information and discussion:
1. https://tizendev.org/pipermail/system/2012-November/000100.html
2. https://tizendev.org/gerrit/#/c/10005/

So we move it back to /etc (the root partition).

Another thing needs to mention is we need to make sure
{passwd,group} files available in "%install" section instead of
doing that in "%post", since otherwise rpms installed after this
package will fail for rpm keyword "%attr". e.g.:
"%attr(4750,root,dbus)" in dbus package.

Signed-off-by: Yin Kangkai <kangkai.yin@intel.com>
Signed-off-by: Karol Lewandowski <k.lewandowsk@samsung.com>
Signed-off-by: Patrick McCarty <patrick.mccarty@linux.intel.com>
Change-Id: I29fd2d20f6099307603de74a22a8a27f508aba48
packaging/libprivilege-control.spec