systemd-udev: ensure convention for naming udev rules 67/10167/2
authorJosé Bollo <jose.bollo@iot.bzh>
Wed, 12 Jul 2017 11:32:23 +0000 (13:32 +0200)
committerJan-Simon Moeller <jsmoeller@linuxfoundation.org>
Mon, 17 Jul 2017 09:15:58 +0000 (09:15 +0000)
commitf98e42dcd4b7b9dfc6b833c87105929d8f5868b0
treeb6b2f6350d090926c2cff8ea7fbf7d33b1d76874
parent8f792e40a5b64dabfa4b51b036e94d19ed312643
systemd-udev: ensure convention for naming udev rules

The udev rules files installed in /etc/udev/rules.d
should follow systemd naming convention.

This patch ensures it by renaming known wrong files
before to install it.

This patch is temporary.
This is a solution to the Bug-AGL SPEC-539.

It renames the file udev-smack-default.rules
as the file 55-smack-default.rules before installation in do_install.
This comes from https://github.com/01org/meta-intel-iot-security.git
(meta-security-smack/recipes-core/systemd/)
It should be removed when the security layer will be refited to meta-security
See git clone http://git.yoctoproject.org/cgit/cgit.cgi/meta-security

It also renames the file touchscreen.rules as the file 55-touchscreen.rules
This comes with the recipe systemd_230 of poky (meta/recipes-core/systemd)
It should be removed when poky changes.

Bug-AGL: SPEC-539

Change-Id: I95e36fc22711babb185ccf53deee8b838874c401
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
Reviewed-on: https://gerrit.automotivelinux.org/gerrit/10167
Tested-by: Jenkins Job builder account <agl-jobbuilder@automotivelinux.org>
ci-image-build: Jenkins Job builder account <agl-jobbuilder@automotivelinux.org>
Reviewed-by: Jan-Simon Moeller <jsmoeller@linuxfoundation.org>
meta-app-framework/recipes-core/systemd/systemd_%.bbappend [new file with mode: 0644]