diff options
author | Chen Qi <Qi.Chen@windriver.com> | 2014-10-24 11:12:21 +0800 |
---|---|---|
committer | Chen Qi <Qi.Chen@windriver.com> | 2014-10-24 11:24:08 +0800 |
commit | 22cefd15362d8fdc8e8e06324412f606f5feca86 (patch) | |
tree | 0e25d109e6552888621ce768812c1cb5d67481c4 /meta/recipes-bsp/lrzsz | |
parent | 97756472d3a69eaca95d105494ffea78c6b077e0 (diff) | |
download | openembedded-core-contrib-ChenQi/systemd-udev-hwdb-update.tar.gz |
systemd: fix systemd-udev-hwdb-update serviceChenQi/systemd-udev-hwdb-update
The new version of systemd has implemented the following feature.
Opointer.de/blog/projects/stateless.html
As a result, the systemd-udev-hwdb-update.service would always run
at first boot. This will cause failure if the target device doesn't
have enough storage space. Besides, as we run `udevadm hwdb --update' as
a postinst of udev-hwdb at rootfs time, there's no need to run this
again at system start-up.
The purpose of this patch is as follows.
If `udev hwdb --update' fails at rootfs time, systemd-udev-hwdb-update.service
is executed at first boot; otherwise, the service is not executed.
This patch achieves the above goal by setting CondistonNeedsUpdate to
"/etc/udev" in the service file, and creating /etc/udev/.updated file if the
postinst succeeds.
Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Diffstat (limited to 'meta/recipes-bsp/lrzsz')
0 files changed, 0 insertions, 0 deletions