From: Dave Young <dyoung-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
To: "Li, David" <LiD-H5gcd31RMI4yhQnFlXSU7w@public.gmane.org>
Cc: David Li <w.david.li-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>,
"initramfs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org"
<initramfs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>
Subject: Re: Q: mount initramfs as the final root fs
Date: Fri, 13 Jan 2012 09:40:07 +0800 [thread overview]
Message-ID: <4F0F8B77.1000307@redhat.com> (raw)
In-Reply-To: <A0D5581BE022624487D06FF31DA39EAC46DBF15B81-XBe2CvUQ4tsfmBx3fVEwjjKFCcWVdJTv@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
next prev parent reply other threads:[~2012-01-13 1:40 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
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 [this message]
2012-01-13 17:00 ` Cong Wang
2012-01-17 15:12 ` Li, David
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4F0F8B77.1000307@redhat.com \
--to=dyoung-h+wxahxf7alqt0dzr+alfa@public.gmane.org \
--cc=LiD-H5gcd31RMI4yhQnFlXSU7w@public.gmane.org \
--cc=initramfs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=w.david.li-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.