From: Dave Young <dyoung-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
To: Cong Wang <xiyou.wangcong-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
Cc: initramfs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Subject: Re: [PATCH 1/4 branch usrmove] deal common part of etc passwd in 99base
Date: Mon, 26 Dec 2011 13:42:40 +0800 [thread overview]
Message-ID: <4EF80950.5040700@redhat.com> (raw)
In-Reply-To: <CAM_iQpW2FH_ob3u22nii3tAe-yUX-iPctDb2KEPwptrugdQbsw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
On 12/26/2011 12:58 PM, Cong Wang wrote:
> On Mon, Dec 26, 2011 at 9:57 AM, Dave Young <dyoung-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org> wrote:
>> On 12/25/2011 07:49 PM, Cong Wang wrote:
>>
>>> On Fri, 23 Dec 2011 at 08:04 GMT, Dave Young <dyoung-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org> wrote:
>>>> ssh module will need root user in /etc/passwd, so add root and nobody
>>>> to /etc/passwd in 99base instead of nfs module
>>>
>>> Huh? Even for who don't use either ssh module or nfs module??
>>>
>>> I think you just need to copy these two lines into your ssh module...
>>
>>
>> Thanks for your review.
>>
>> in 90mdraid module there's words in its comments about passwd, so there
>> might be more modules need passwd.
>
> But there are still more modules that don't need passwd, right?
>
>>
>> Dealing with same thing in multi module is not good, not only duplicate
>> code, but also they could cause conflict. Ie. nfs set root home dir to /
>> but we need /root, if nfs module added after ssh-client the home dir of
>> root will be /.
>
> If you don't want to duplicate the code, make it a function (maybe in
> dracut-function?),
> putting it in base module is confusing.
Scratching head.. I'm feeling bad to add same user multi-times, Yes not
all modules need passwd, but I still think it is a base thing.
> --
> 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
prev parent reply other threads:[~2011-12-26 5:42 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-12-23 8:04 [PATCH 1/4 branch usrmove] deal common part of etc passwd in 99base Dave Young
2011-12-25 11:49 ` Cong Wang
2011-12-26 1:57 ` Dave Young
[not found] ` <4EF7D46E.4000109-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2011-12-26 4:58 ` Cong Wang
[not found] ` <CAM_iQpW2FH_ob3u22nii3tAe-yUX-iPctDb2KEPwptrugdQbsw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2011-12-26 5:42 ` Dave Young [this message]
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=4EF80950.5040700@redhat.com \
--to=dyoung-h+wxahxf7alqt0dzr+alfa@public.gmane.org \
--cc=initramfs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=xiyou.wangcong-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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox