* [Buildroot] [Bug 10796] New: Cannot generate cpio image without selecting CONFIG_BLK_DEV_INITRD
@ 2018-02-21 21:23 bugzilla at busybox.net
2018-02-21 22:35 ` [Buildroot] [Bug 10796] " bugzilla at busybox.net
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: bugzilla at busybox.net @ 2018-02-21 21:23 UTC (permalink / raw)
To: buildroot
https://bugs.busybox.net/show_bug.cgi?id=10796
Bug ID: 10796
Summary: Cannot generate cpio image without selecting
CONFIG_BLK_DEV_INITRD
Product: buildroot
Version: 2017.08
Hardware: All
OS: Linux
Status: NEW
Severity: normal
Priority: P5
Component: Other
Assignee: unassigned at buildroot.uclibc.org
Reporter: adyke at harris.com
CC: buildroot at uclibc.org
Target Milestone: ---
If BR2_TARGET_ROOTFS_CPIO is selected, the next time linux-menuconfig is run
CONFIG_BLK_DEV_INITRD becomes selected. If CONFIG_BLK_DEV_INITRD is unselected,
it is silently reselected when linux-menuconfig exits.
Therefore, it is not possible to generate rootfs.cpio without building it into
the kernel image.
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 4+ messages in thread* [Buildroot] [Bug 10796] Cannot generate cpio image without selecting CONFIG_BLK_DEV_INITRD
2018-02-21 21:23 [Buildroot] [Bug 10796] New: Cannot generate cpio image without selecting CONFIG_BLK_DEV_INITRD bugzilla at busybox.net
@ 2018-02-21 22:35 ` bugzilla at busybox.net
2018-02-22 13:30 ` bugzilla at busybox.net
2018-02-25 16:05 ` bugzilla at busybox.net
2 siblings, 0 replies; 4+ messages in thread
From: bugzilla at busybox.net @ 2018-02-21 22:35 UTC (permalink / raw)
To: buildroot
https://bugs.busybox.net/show_bug.cgi?id=10796
--- Comment #1 from Thomas Petazzoni <thomas.petazzoni@free-electrons.com> ---
Indeed, linux/linux.mk contains:
$(if $(BR2_TARGET_ROOTFS_CPIO),
$(call KCONFIG_ENABLE_OPT,CONFIG_BLK_DEV_INITRD,$(@D)/.config))
Which forces CONFIG_BLK_DEV_INITRD to be set when you're generating a cpio
image of the filesystem.
What is your use-case for generating a cpio image, but not enabling
CONFIG_BLK_DEV_INITRD ?
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 4+ messages in thread* [Buildroot] [Bug 10796] Cannot generate cpio image without selecting CONFIG_BLK_DEV_INITRD
2018-02-21 21:23 [Buildroot] [Bug 10796] New: Cannot generate cpio image without selecting CONFIG_BLK_DEV_INITRD bugzilla at busybox.net
2018-02-21 22:35 ` [Buildroot] [Bug 10796] " bugzilla at busybox.net
@ 2018-02-22 13:30 ` bugzilla at busybox.net
2018-02-25 16:05 ` bugzilla at busybox.net
2 siblings, 0 replies; 4+ messages in thread
From: bugzilla at busybox.net @ 2018-02-22 13:30 UTC (permalink / raw)
To: buildroot
https://bugs.busybox.net/show_bug.cgi?id=10796
--- Comment #2 from adyke at harris.com ---
(In reply to Thomas Petazzoni from comment #1)
My use case is to generate a build that can be made into a disk image and also
be PXE booted. For PXE booting, I need the cpio file. But for installing to
disk, I don't want the root filesystem built in to the kernel.
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Buildroot] [Bug 10796] Cannot generate cpio image without selecting CONFIG_BLK_DEV_INITRD
2018-02-21 21:23 [Buildroot] [Bug 10796] New: Cannot generate cpio image without selecting CONFIG_BLK_DEV_INITRD bugzilla at busybox.net
2018-02-21 22:35 ` [Buildroot] [Bug 10796] " bugzilla at busybox.net
2018-02-22 13:30 ` bugzilla at busybox.net
@ 2018-02-25 16:05 ` bugzilla at busybox.net
2 siblings, 0 replies; 4+ messages in thread
From: bugzilla at busybox.net @ 2018-02-25 16:05 UTC (permalink / raw)
To: buildroot
https://bugs.busybox.net/show_bug.cgi?id=10796
Arnout Vandecappelle <arnout@mind.be> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |WONTFIX
Status|NEW |RESOLVED
--- Comment #3 from Arnout Vandecappelle <arnout@mind.be> ---
(In reply to adyke from comment #2)
CONFIG_BLK_DEV_INITRD does not link the cpio image into the kernel. It only
makes it possible that the bootloader passes a cpio image to the kernel. To
link it into the kernel, the option CONFIG_INITRAMFS_SOURCE must be non-empty.
Buildroot will set this option when you enable the "initial RAM filesystem
linked into linux kernel". However, when you unset this option again, the
CONFIG_INITRAMFS_SOURCE is *not* removed from the kernel configuration. Indeed,
Buildroot has no way to know if this was added by Buildroot itself, or if it
was set by the user to refer to an externally-generated initramfs. So I guess
you are in this situation.
The CONFIG_BLK_DEV_INITRD option is on in most defconfig and just has a few KB
overhead, so it is not worth removing this from linux.mk IMO. Therefore, I'm
marking this as WONTFIX.
If you disagree, or if you see some other problem, feel free to reopen.
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2018-02-25 16:05 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-02-21 21:23 [Buildroot] [Bug 10796] New: Cannot generate cpio image without selecting CONFIG_BLK_DEV_INITRD bugzilla at busybox.net
2018-02-21 22:35 ` [Buildroot] [Bug 10796] " bugzilla at busybox.net
2018-02-22 13:30 ` bugzilla at busybox.net
2018-02-25 16:05 ` bugzilla at busybox.net
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox