[Bugme-new] [Bug 6743] New: Size of initramfs_data.cpio.gz is doubled.

bugme-daemon at bugzilla.kernel.org bugme-daemon at bugzilla.kernel.org
Sat Jun 24 05:07:00 PDT 2006


http://bugzilla.kernel.org/show_bug.cgi?id=6743

           Summary: Size of initramfs_data.cpio.gz is doubled.
    Kernel Version: 2.6.17
            Status: NEW
          Severity: normal
             Owner: other_klibc-kinit at kernel-bugs.osdl.org
         Submitter: tdinfo at gmx.de


Most recent kernel where this bug did not occur:2.6.16
Distribution:
Hardware Environment:
Software Environment:
Problem Description:
gen_initramfs_list.sh concatenates two identical cpio-archives.

Bug in usr/Makefile:
ramfs-input := $(if $(filter-out "",$(CONFIG_INITRAMFS_SOURCE)), \
                    $(CONFIG_INITRAMFS_SOURCE),-d)
ramfs-args  := \
        $(if $(CONFIG_INITRAMFS_ROOT_UID), -u $(CONFIG_INITRAMFS_ROOT_UID)) \
        $(if $(CONFIG_INITRAMFS_ROOT_GID), -g $(CONFIG_INITRAMFS_ROOT_GID)) \
        $(ramfs-input)


# .initramfs_data.cpio.gz.d is used to identify all files included
# in initramfs and to detect if any files are added/removed.
# Removed files are identified by directory timestamp being updated
# The dependency list is generated by gen_initramfs.sh -l
ifneq ($(wildcard $(obj)/.initramfs_data.cpio.gz.d),)
        include $(obj)/.initramfs_data.cpio.gz.d
endif

quiet_cmd_initfs = GEN     $@
      cmd_initfs = $(initramfs) -o $@ $(ramfs-args) $(ramfs-input)
                                                    ^^^^^^^^^^^^^^

Patch:
--- Makefile.orig       2006-06-24 11:04:58.060163593  0200
    Makefile    2006-06-24 10:35:52.551677940  0200
@@ -33,7  33,7 @@
 endif

 quiet_cmd_initfs = GEN     $@
-      cmd_initfs = $(initramfs) -o $@ $(ramfs-args) $(ramfs-input)
       cmd_initfs = $(initramfs) -o $@ $(ramfs-args)

 targets := initramfs_data.cpio.gz
 $(deps_initramfs): klibcdirs



Steps to reproduce: ...

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.



More information about the Bugme-new mailing list