* Q: mount initramfs as the final root fs
@ 2012-01-12 0:54 David Li
[not found] ` <CAADET=cG8mdu-Je_MUGyKOP_G9sfU6sR3KHxybFMREjvexrKmg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2012-01-13 17:00 ` Cong Wang
0 siblings, 2 replies; 6+ messages in thread
From: David Li @ 2012-01-12 0:54 UTC (permalink / raw)
To: initramfs-u79uwXL29TY76Z2rM5mHXA
Hi Everyone,
I need to let the kernel to mount the initramfs (created by dracut)
as the final root filesystem. No disk and no NFS either!
I tried kernel option root=/dev/ram0 (the initrd way to mount init ram
disk) but dracut didn't recognize this option. What should I use to
accomplish this?
Thanks.
David
^ permalink raw reply [flat|nested] 6+ messages in thread[parent not found: <CAADET=cG8mdu-Je_MUGyKOP_G9sfU6sR3KHxybFMREjvexrKmg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>]
* Re: Q: mount initramfs as the final root fs [not found] ` <CAADET=cG8mdu-Je_MUGyKOP_G9sfU6sR3KHxybFMREjvexrKmg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> @ 2012-01-12 1:57 ` Dave Young [not found] ` <4F0E3E0B.2080702-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org> 0 siblings, 1 reply; 6+ messages in thread From: Dave Young @ 2012-01-12 1:57 UTC (permalink / raw) To: David Li; +Cc: initramfs-u79uwXL29TY76Z2rM5mHXA On 01/12/2012 08:54 AM, David Li wrote: > Hi Everyone, > > I need to let the kernel to mount the initramfs (created by dracut) > as the final root filesystem. No disk and no NFS either! > > I tried kernel option root=/dev/ram0 (the initrd way to mount init ram > disk) but dracut didn't recognize this option. What should I use to > accomplish this? initramfs use root=xxx for switch_root to real rootfs. I also want this feature but currently I can only use such as "rdbreak=cmdline" in kernel cmdline to drop into shell > > Thanks. > > David > -- > To unsubscribe from this list: send the line "unsubscribe initramfs" in > the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org > More majordomo info at http://vger.kernel.org/majordomo-info.html -- Thanks Dave ^ permalink raw reply [flat|nested] 6+ messages in thread
[parent not found: <4F0E3E0B.2080702-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>]
* RE: Q: mount initramfs as the final root fs [not found] ` <4F0E3E0B.2080702-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org> @ 2012-01-12 15:17 ` Li, David [not found] ` <A0D5581BE022624487D06FF31DA39EAC46DBF15B81-XBe2CvUQ4tsfmBx3fVEwjjKFCcWVdJTv@public.gmane.org> 0 siblings, 1 reply; 6+ messages in thread From: Li, David @ 2012-01-12 15:17 UTC (permalink / raw) To: Dave Young, David Li; +Cc: initramfs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org Dave, I am not familiar with dracut internals. Two questions: 1. Will rd.break=cmdline cause the kernel to mount initramfs before dropping into the shell? I tried before "rdinit=/bin/sh". This forced the kernel to drop into a simple dash shell before /init was even started so not much useful. 2. Just saw you committed another patch in fstab-sys. You mentioned about mounting initramfs with --mount Dracut option. Is that the solution for the problem? Thanks. David >-----Original Message----- >From: initramfs-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org [mailto:initramfs- >owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org] On Behalf Of Dave Young >Sent: Wednesday, January 11, 2012 5:58 PM >To: David Li >Cc: initramfs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org >Subject: Re: Q: mount initramfs as the final root fs > >On 01/12/2012 08:54 AM, David Li wrote: > >> Hi Everyone, >> >> I need to let the kernel to mount the initramfs (created by dracut) as >> the final root filesystem. No disk and no NFS either! >> >> I tried kernel option root=/dev/ram0 (the initrd way to mount init ram >> disk) but dracut didn't recognize this option. What should I use to >> accomplish this? > > >initramfs use root=xxx for switch_root to real rootfs. I also want this feature >but currently I can only use such as "rdbreak=cmdline" in kernel cmdline to >drop into shell > >> >> Thanks. >> >> David >> -- >> To unsubscribe from this list: send the line "unsubscribe initramfs" >> in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo >> info at http://vger.kernel.org/majordomo-info.html > > > >-- >Thanks >Dave >-- >To unsubscribe from this list: send the line "unsubscribe initramfs" in the body >of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at >http://vger.kernel.org/majordomo-info.html ^ permalink raw reply [flat|nested] 6+ messages in thread
[parent not found: <A0D5581BE022624487D06FF31DA39EAC46DBF15B81-XBe2CvUQ4tsfmBx3fVEwjjKFCcWVdJTv@public.gmane.org>]
* Re: Q: mount initramfs as the final root fs [not found] ` <A0D5581BE022624487D06FF31DA39EAC46DBF15B81-XBe2CvUQ4tsfmBx3fVEwjjKFCcWVdJTv@public.gmane.org> @ 2012-01-13 1:40 ` Dave Young 0 siblings, 0 replies; 6+ messages in thread From: Dave Young @ 2012-01-13 1:40 UTC (permalink / raw) To: Li, David; +Cc: David Li, initramfs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org On 01/12/2012 11:17 PM, Li, David wrote: > Dave, > > I am not familiar with dracut internals. Two questions: > > 1. Will rd.break=cmdline cause the kernel to mount initramfs before dropping into the shell? I tried before "rdinit=/bin/sh". This forced the kernel to drop into a simple dash shell before /init was even started so not much useful. initramfs is not need mount specially, it's supported in kernel You can try different rd.break point. see dracut docs. One thing is even if you don't need rootfs you still have to add valid root= cmdline, or dracut init will fail > > 2. Just saw you committed another patch in fstab-sys. You mentioned about mounting initramfs with --mount Dracut option. Is that the solution for the problem? I think It's not related to your problem. > > Thanks. > > David > >> -----Original Message----- >> From: initramfs-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org [mailto:initramfs- >> owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org] On Behalf Of Dave Young >> Sent: Wednesday, January 11, 2012 5:58 PM >> To: David Li >> Cc: initramfs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org >> Subject: Re: Q: mount initramfs as the final root fs >> >> On 01/12/2012 08:54 AM, David Li wrote: >> >>> Hi Everyone, >>> >>> I need to let the kernel to mount the initramfs (created by dracut) as >>> the final root filesystem. No disk and no NFS either! >>> >>> I tried kernel option root=/dev/ram0 (the initrd way to mount init ram >>> disk) but dracut didn't recognize this option. What should I use to >>> accomplish this? >> >> >> initramfs use root=xxx for switch_root to real rootfs. I also want this feature >> but currently I can only use such as "rdbreak=cmdline" in kernel cmdline to >> drop into shell >> >>> >>> Thanks. >>> >>> David >>> -- >>> To unsubscribe from this list: send the line "unsubscribe initramfs" >>> in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo >>> info at http://vger.kernel.org/majordomo-info.html >> >> >> >> -- >> Thanks >> Dave >> -- >> To unsubscribe from this list: send the line "unsubscribe initramfs" in the body >> of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at >> http://vger.kernel.org/majordomo-info.html -- Thanks Dave ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Q: mount initramfs as the final root fs 2012-01-12 0:54 Q: mount initramfs as the final root fs David Li [not found] ` <CAADET=cG8mdu-Je_MUGyKOP_G9sfU6sR3KHxybFMREjvexrKmg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> @ 2012-01-13 17:00 ` Cong Wang 2012-01-17 15:12 ` Li, David 1 sibling, 1 reply; 6+ messages in thread From: Cong Wang @ 2012-01-13 17:00 UTC (permalink / raw) To: initramfs-u79uwXL29TY76Z2rM5mHXA On Thu, 12 Jan 2012 at 00:54 GMT, David Li <w.david.li-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > Hi Everyone, > > I need to let the kernel to mount the initramfs (created by dracut) > as the final root filesystem. No disk and no NFS either! > > I tried kernel option root=/dev/ram0 (the initrd way to mount init ram > disk) but dracut didn't recognize this option. What should I use to > accomplish this? > AFAIK, drauct doesn't support this currently. Think about that, who will mkfs your /dev/ram0? Dracut has to do that if you want this working. It would not be hard to make a patch for this, I think. ^ permalink raw reply [flat|nested] 6+ messages in thread
* RE: Q: mount initramfs as the final root fs 2012-01-13 17:00 ` Cong Wang @ 2012-01-17 15:12 ` Li, David 0 siblings, 0 replies; 6+ messages in thread From: Li, David @ 2012-01-17 15:12 UTC (permalink / raw) To: Cong Wang, initramfs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org I am not familiar with dracut internals. Can you or someone be a little more specific on how it's not supported to mount initramfs itself as final root fs? What are my options or alternatives? David >-----Original Message----- >From: initramfs-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org [mailto:initramfs- >owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org] On Behalf Of Cong Wang >Sent: Friday, January 13, 2012 9:01 AM >To: initramfs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org >Subject: Re: Q: mount initramfs as the final root fs > >On Thu, 12 Jan 2012 at 00:54 GMT, David Li <w.david.li-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: >> Hi Everyone, >> >> I need to let the kernel to mount the initramfs (created by dracut) as >> the final root filesystem. No disk and no NFS either! >> >> I tried kernel option root=/dev/ram0 (the initrd way to mount init ram >> disk) but dracut didn't recognize this option. What should I use to >> accomplish this? >> > >AFAIK, drauct doesn't support this currently. Think about that, who will mkfs >your /dev/ram0? Dracut has to do that if you want this working. It would not >be hard to make a patch for this, I think. > > >-- >To unsubscribe from this list: send the line "unsubscribe initramfs" in the body >of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at >http://vger.kernel.org/majordomo-info.html ^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2012-01-17 15:12 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-01-12 0:54 Q: mount initramfs as the final root fs David Li
[not found] ` <CAADET=cG8mdu-Je_MUGyKOP_G9sfU6sR3KHxybFMREjvexrKmg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2012-01-12 1:57 ` Dave Young
[not found] ` <4F0E3E0B.2080702-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2012-01-12 15:17 ` Li, David
[not found] ` <A0D5581BE022624487D06FF31DA39EAC46DBF15B81-XBe2CvUQ4tsfmBx3fVEwjjKFCcWVdJTv@public.gmane.org>
2012-01-13 1:40 ` Dave Young
2012-01-13 17:00 ` Cong Wang
2012-01-17 15:12 ` Li, David
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.