Bug 4490 - run-postinsts fails on directdisk image
Summary: run-postinsts fails on directdisk image
Status: RESOLVED FIXED
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: core (show other bugs)
Version: 1.4
Hardware: x86 Multiple
: Medium normal
Target Milestone: 1.5
Assignee: Jonathan Liu
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2013-05-13 03:34 UTC by Jonathan Liu
Modified: 2013-06-20 01:14 UTC (History)
4 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jonathan Liu 2013-05-13 03:34:44 UTC
distro conf:
DISTRO_FEATURES_BACKFILL_CONSIDERED = "sysvinit"
VIRTUAL-RUNTIME_graphical_init_manager = ""
VIRTUAL-RUNTIME_init_manager = "systemd"
PACKAGE_CLASSES = "package_ipk"

image bb:
SYSLINUX_ROOT ?= "root=/dev/sda2"
SYSLINUX_PROMPT = "0"
SYSLINUX_TIMEOUT = "1"
SYSLINUX_LABELS = "boot"
LABELS_append = " ${SYSLINUX_LABELS} "
do_bootdirectdisk[depends] += "${PN}:do_rootfs"
inherit boot-directdisk

# systemctl status run-postinsts
run-postinsts.service - Run pending postinsts
          Loaded: loaded (/lib/systemd/system/run-postinsts.service; disabled)
          Active: failed (Result: exit-code) since Mon 2013-05-13 11:07:03 UTC
         Process: 76 ExecStart=/etc/rcS.d/S98run-postinsts (code=exited, status=1/FAILURE)

May 13 11:07:03 myhost S98run-postinsts[76]: /etc/rcS.d/S98run-postinsts: line 3: can't create /var/log/postinstall.log: Read-only file system
May 13 11:07:03 myhost S98run-postinsts[76]: rm: can't remove '//etc/rcS.d/S98run-postinsts': Read-only file system
May 13 11:07:03 myhost systemd[1]: run-postinsts.service: main process exited, code=exited, status=1/FAILURE
May 13 11:07:03 myhost systemd[1]: Failed to start Run pending postinsts.
May 13 11:07:03 myhost systemd[1]: Unit run-postinsts.service entered failed state

It looks like run-postinsts is executed before checkroot remounts root as rw.