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: [email protected] [mailto:initramfs-
>> [email protected]] On Behalf Of Dave Young
>> Sent: Wednesday, January 11, 2012 5:58 PM
>> To: David Li
>> Cc: [email protected]
>> 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 [email protected] 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 [email protected] 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 [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to