diff options
author | Richard Tollerton <rich.tollerton@ni.com> | 2014-07-22 15:23:36 -0500 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-07-23 21:59:17 +0100 |
commit | 13304193c0fa7a79b81211013754fdc77fdba24c (patch) | |
tree | 90596565741a91aa32bb3330d84f3962e66a5507 /meta/recipes-core/sysvinit | |
parent | 8076ab295a764fd4aa83c025a8c5deda0549a5c7 (diff) | |
download | poky-13304193c0fa7a79b81211013754fdc77fdba24c.tar.gz |
sysvinit: bootlogd: ensure /var/log/boot is created in volatiles
bootlogd does not write to /var/log/boot if it does not exist,
so if using the volatiles facility (presumed to mount /var/log under a
tmpfs), ensure that /var/log/boot gets created.
(From OE-Core rev: 283d109098358c06ff10daaf612e5a244691d7ac)
Signed-off-by: Richard Tollerton <rich.tollerton@ni.com>
Signed-off-by: Ben Shelton <ben.shelton@ni.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-core/sysvinit')
-rw-r--r-- | meta/recipes-core/sysvinit/sysvinit/01_bootlogd | 1 | ||||
-rw-r--r-- | meta/recipes-core/sysvinit/sysvinit_2.88dsf.bb | 7 |
2 files changed, 7 insertions, 1 deletions
diff --git a/meta/recipes-core/sysvinit/sysvinit/01_bootlogd b/meta/recipes-core/sysvinit/sysvinit/01_bootlogd new file mode 100644 index 0000000000..a689d92d63 --- /dev/null +++ b/meta/recipes-core/sysvinit/sysvinit/01_bootlogd | |||
@@ -0,0 +1 @@ | |||
f root root 0644 /var/log/boot none | |||
diff --git a/meta/recipes-core/sysvinit/sysvinit_2.88dsf.bb b/meta/recipes-core/sysvinit/sysvinit_2.88dsf.bb index 448d0216be..00d333323e 100644 --- a/meta/recipes-core/sysvinit/sysvinit_2.88dsf.bb +++ b/meta/recipes-core/sysvinit/sysvinit_2.88dsf.bb | |||
@@ -16,7 +16,9 @@ SRC_URI = "${SAVANNAH_GNU_MIRROR}/sysvinit/sysvinit-${PV}.tar.bz2 \ | |||
16 | file://rcS-default \ | 16 | file://rcS-default \ |
17 | file://rc \ | 17 | file://rc \ |
18 | file://rcS \ | 18 | file://rcS \ |
19 | file://bootlogd.init" | 19 | file://bootlogd.init \ |
20 | file://01_bootlogd \ | ||
21 | " | ||
20 | 22 | ||
21 | SRC_URI[md5sum] = "6eda8a97b86e0a6f59dabbf25202aa6f" | 23 | SRC_URI[md5sum] = "6eda8a97b86e0a6f59dabbf25202aa6f" |
22 | SRC_URI[sha256sum] = "60bbc8c1e1792056e23761d22960b30bb13eccc2cabff8c7310a01f4d5df1519" | 24 | SRC_URI[sha256sum] = "60bbc8c1e1792056e23761d22960b30bb13eccc2cabff8c7310a01f4d5df1519" |
@@ -92,6 +94,9 @@ do_install () { | |||
92 | update-rc.d -r ${D} bootlogd start 07 S . | 94 | update-rc.d -r ${D} bootlogd start 07 S . |
93 | update-rc.d -r ${D} stop-bootlogd start 99 2 3 4 5 . | 95 | update-rc.d -r ${D} stop-bootlogd start 99 2 3 4 5 . |
94 | 96 | ||
97 | install -d ${D}${sysconfdir}/default/volatiles | ||
98 | install -m 0644 ${WORKDIR}/01_bootlogd ${D}${sysconfdir}/default/volatiles | ||
99 | |||
95 | chown root.shutdown ${D}${base_sbindir}/halt ${D}${base_sbindir}/shutdown | 100 | chown root.shutdown ${D}${base_sbindir}/halt ${D}${base_sbindir}/shutdown |
96 | chmod o-x,u+s ${D}${base_sbindir}/halt ${D}${base_sbindir}/shutdown | 101 | chmod o-x,u+s ${D}${base_sbindir}/halt ${D}${base_sbindir}/shutdown |
97 | } | 102 | } |