| Summary: |
Cannot create debugfs with logrotate |
| Product: |
[Build System, Metadata & Runtime] OE-Core
|
Reporter: |
michalp <m.pytel> |
| Component: |
core | Assignee: |
Armin Kuster <akuster> |
| Status: |
RESOLVED
FIXED
|
QA Contact: |
|
| Severity: |
normal
|
|
|
| Priority: |
Medium+
|
CC: |
joshuagloe, meta.mr.watcher, meta.watcher
|
| Version: |
2.2 | |
|
| Target Milestone: |
2.2.3 | |
|
| Hardware: |
All | |
|
| OS: |
Multiple | |
|
| Whiteboard: |
|
|
OS type for building Yocto:
|
---
|
Type of Regression:
|
---
|
|
Verified:
|
|
Documentation change:
|
No (bug/feature does not impact docs)
|
| Attachments: |
|
Created attachment 4115 [details] build log Configuring conf/local.cont with the following: PACKAGE_CLASSES ?= "package_ipk" IMAGE_INSTALL_append = " logrotate" IMAGE_GEN_DEBUGFS = "1" IMAGE_FSTYPES_DEBUGFS = "tar.bz2" results with debugfs creation error: ERROR: core-image-minimal-1.0-r0 do_rootfs: Cannot get the installed packages list. Command '/build/yoctoproject/build_morty/tmp/sysroots/x86_64-linux/usr/bin/opkg -f /build/yoctoproject/build_morty/tmp/work/qemux86-poky-linux/core-image-minimal/1.0-r0/opkg.conf -o /build/yoctoproject/build_morty/tmp/work/qemux86-poky-linux/core-image-minimal/1.0-r0/rootfs --force_postinstall --prefer-arch-to-version status' returned 0 and stderr: Collected errors: * file_md5sum_alloc: Failed to open file /build/yoctoproject/build_morty/tmp/work/qemux86-poky-linux/core-image-minimal/1.0-r0/rootfs/var/lib/logrotate.status: No such file or directory. ERROR: core-image-minimal-1.0-r0 do_rootfs: Function failed: do_rootfs ERROR: Logfile of failure stored in: /build/yoctoproject/build_morty/tmp/work/qemux86-poky-linux/core-image-minimal/1.0-r0/temp/log.do_rootfs.13401 ERROR: Task (/build/yoctoproject/poky/meta/recipes-core/images/core-image-minimal.bb:do_rootfs) failed with exit code '1' Quick investigation shows the following: - logrotate recipe touches /var/lib/logrotate.status file during installation - Rootfs::_setup_dbg_rootfs() renames "rootfs" directory into "rootfs-orig" and copies original opkg database to the new "rootfs" directory so that later on OpkgPkgsList::list_pkgs() can get list of packages to install, - opkg fails because of missing logrotate.status file. This bug can well be an opkg issue (should it fail "status" call because of missing file?)