* INITRAMFS_SOURCE broken by 6e19eded3684dc184181093af3bff2ff440f5b53? @ 2017-08-08 11:46 Thomas Meyer 2017-08-08 12:04 ` Willy Tarreau 0 siblings, 1 reply; 6+ messages in thread From: Thomas Meyer @ 2017-08-08 11:46 UTC (permalink / raw) To: rob; +Cc: linux-kernel Hi, did the commit 6e19eded3684dc184181093af3bff2ff440f5b53 break a linux kernel build with an included ramdisk? As fas as I understand you must expliclity add rootfstype=ramfs to the kernel command line to boot from the included ramfsdisk? bug or feature? with kind regards thomas ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: INITRAMFS_SOURCE broken by 6e19eded3684dc184181093af3bff2ff440f5b53? 2017-08-08 11:46 INITRAMFS_SOURCE broken by 6e19eded3684dc184181093af3bff2ff440f5b53? Thomas Meyer @ 2017-08-08 12:04 ` Willy Tarreau 2017-08-08 13:18 ` Thomas Meyer 2017-08-08 22:12 ` Rob Landley 0 siblings, 2 replies; 6+ messages in thread From: Willy Tarreau @ 2017-08-08 12:04 UTC (permalink / raw) To: Thomas Meyer; +Cc: rob, linux-kernel Hi Thomas, On Tue, Aug 08, 2017 at 01:46:25PM +0200, Thomas Meyer wrote: > Hi, > > did the commit 6e19eded3684dc184181093af3bff2ff440f5b53 break a linux kernel > build with an included ramdisk? > > As fas as I understand you must expliclity add rootfstype=ramfs to the kernel > command line to boot from the included ramfsdisk? > > bug or feature? Strange, I'm running my kernels with the modules packaged inside the initramfs and never met this problem even after this commit (my 4.9 kernels are still packaged this way and run fine). And yes, I do have TMPFS enabled. I can't tell whether tmpfs or ramfs was used however given that at this level I don't have all the tools available to report the FS type (and proc says "rootfs"). Are you sure you're not missing anything ? Willy ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: INITRAMFS_SOURCE broken by 6e19eded3684dc184181093af3bff2ff440f5b53? 2017-08-08 12:04 ` Willy Tarreau @ 2017-08-08 13:18 ` Thomas Meyer 2017-08-08 15:40 ` Willy Tarreau 2017-08-08 22:12 ` Rob Landley 1 sibling, 1 reply; 6+ messages in thread From: Thomas Meyer @ 2017-08-08 13:18 UTC (permalink / raw) To: Willy Tarreau; +Cc: rob, linux-kernel On Tue, Aug 08, 2017 at 02:04:42PM +0200, Willy Tarreau wrote: > Hi Thomas, > > On Tue, Aug 08, 2017 at 01:46:25PM +0200, Thomas Meyer wrote: > > Hi, > > > > did the commit 6e19eded3684dc184181093af3bff2ff440f5b53 break a linux kernel > > build with an included ramdisk? > > > > As fas as I understand you must expliclity add rootfstype=ramfs to the kernel > > command line to boot from the included ramfsdisk? > > > > bug or feature? > > Strange, I'm running my kernels with the modules packaged inside the initramfs > and never met this problem even after this commit (my 4.9 kernels are still > packaged this way and run fine). And yes, I do have TMPFS enabled. I can't > tell whether tmpfs or ramfs was used however given that at this level I don't > have all the tools available to report the FS type (and proc says "rootfs"). > Are you sure you're not missing anything ? Pretty much I miss something! I see that the embedded ramdisk is populated in populate_rootfs() without any errors. But later it fails in mount_root -> mount_block_root with: [ 27.070000] VFS: Cannot open root device "(null)" or unknown-block(0,0): error -6 [ 27.070000] Please append a correct "root=" boot option; here are the available partitions: [ 27.070000] DEBUG_BLOCK_EXT_DEVT is enabled, you need to specify explicit textual name for "root=" boot option. [ 27.070000] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0) but adding rootfstype=ramfs seems to end up with an empty ramfs?! any hint is welcome what I may miss here. with kind regards thomas > > Willy ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: INITRAMFS_SOURCE broken by 6e19eded3684dc184181093af3bff2ff440f5b53? 2017-08-08 13:18 ` Thomas Meyer @ 2017-08-08 15:40 ` Willy Tarreau 0 siblings, 0 replies; 6+ messages in thread From: Willy Tarreau @ 2017-08-08 15:40 UTC (permalink / raw) To: Thomas Meyer; +Cc: rob, linux-kernel On Tue, Aug 08, 2017 at 03:18:19PM +0200, Thomas Meyer wrote: > On Tue, Aug 08, 2017 at 02:04:42PM +0200, Willy Tarreau wrote: > > Hi Thomas, > > > > On Tue, Aug 08, 2017 at 01:46:25PM +0200, Thomas Meyer wrote: > > > Hi, > > > > > > did the commit 6e19eded3684dc184181093af3bff2ff440f5b53 break a linux kernel > > > build with an included ramdisk? > > > > > > As fas as I understand you must expliclity add rootfstype=ramfs to the kernel > > > command line to boot from the included ramfsdisk? > > > > > > bug or feature? > > > > Strange, I'm running my kernels with the modules packaged inside the initramfs > > and never met this problem even after this commit (my 4.9 kernels are still > > packaged this way and run fine). And yes, I do have TMPFS enabled. I can't > > tell whether tmpfs or ramfs was used however given that at this level I don't > > have all the tools available to report the FS type (and proc says "rootfs"). > > Are you sure you're not missing anything ? > Pretty much I miss something! > > I see that the embedded ramdisk is populated in populate_rootfs() > without any errors. > But later it fails in mount_root -> mount_block_root with: > > [ 27.070000] VFS: Cannot open root device "(null)" or unknown-block(0,0): error -6 > [ 27.070000] Please append a correct "root=" boot option; here are the available partitions: > [ 27.070000] DEBUG_BLOCK_EXT_DEVT is enabled, you need to specify explicit textual name for "root=" boot option. > [ 27.070000] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0) > > but adding rootfstype=ramfs seems to end up with an empty ramfs?! It would be nice to ensure that your initramfs is really packaged within the kernel (try to see if adding a large file to it changes the bzImage size). Maybe it's really empty and the problem happens during the build and not at boot. Willy ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: INITRAMFS_SOURCE broken by 6e19eded3684dc184181093af3bff2ff440f5b53? 2017-08-08 12:04 ` Willy Tarreau 2017-08-08 13:18 ` Thomas Meyer @ 2017-08-08 22:12 ` Rob Landley 2017-08-09 3:30 ` Willy Tarreau 1 sibling, 1 reply; 6+ messages in thread From: Rob Landley @ 2017-08-08 22:12 UTC (permalink / raw) To: Willy Tarreau, Thomas Meyer; +Cc: linux-kernel On 08/08/2017 07:04 AM, Willy Tarreau wrote: > Hi Thomas, > > On Tue, Aug 08, 2017 at 01:46:25PM +0200, Thomas Meyer wrote: >> Hi, >> >> did the commit 6e19eded3684dc184181093af3bff2ff440f5b53 break a linux kernel >> build with an included ramdisk? >> >> As fas as I understand you must expliclity add rootfstype=ramfs to the kernel >> command line to boot from the included ramfsdisk? >> >> bug or feature? > > Strange, I'm running my kernels with the modules packaged inside the initramfs > and never met this problem even after this commit (my 4.9 kernels are still > packaged this way and run fine). And yes, I do have TMPFS enabled. I can't > tell whether tmpfs or ramfs was used however given that at this level I don't > have all the tools available to report the FS type (and proc says "rootfs"). > Are you sure you're not missing anything ? If your rootfs has a size= in /proc/mounts it's tmpfs, ala: rootfs / rootfs rw,size=126564k,nr_inodes=31641 0 0 Rob ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: INITRAMFS_SOURCE broken by 6e19eded3684dc184181093af3bff2ff440f5b53? 2017-08-08 22:12 ` Rob Landley @ 2017-08-09 3:30 ` Willy Tarreau 0 siblings, 0 replies; 6+ messages in thread From: Willy Tarreau @ 2017-08-09 3:30 UTC (permalink / raw) To: Rob Landley; +Cc: Thomas Meyer, linux-kernel On Tue, Aug 08, 2017 at 05:12:03PM -0500, Rob Landley wrote: > If your rootfs has a size= in /proc/mounts it's tmpfs, ala: > > rootfs / rootfs rw,size=126564k,nr_inodes=31641 0 0 You're right, I have it and thought about it. Anyway the point is that it works transparently for me. Apparently for Thomas there's an issue where his initramfs isn't properly extracted and he ends up with an empty rootfs. Willy ^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2017-08-09 3:30 UTC | newest] Thread overview: 6+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2017-08-08 11:46 INITRAMFS_SOURCE broken by 6e19eded3684dc184181093af3bff2ff440f5b53? Thomas Meyer 2017-08-08 12:04 ` Willy Tarreau 2017-08-08 13:18 ` Thomas Meyer 2017-08-08 15:40 ` Willy Tarreau 2017-08-08 22:12 ` Rob Landley 2017-08-09 3:30 ` Willy Tarreau
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox