From: Mark Knecht <markknecht@gmail.com>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] Making a init thingy. Step two I guess.
Date: Sat, 17 Sep 2011 14:32:18 -0700 [thread overview]
Message-ID: <CAK2H+efk0SB95BpFtLKy6QOS0SEb92Ggmw+58sS-hUbzWp_mCQ@mail.gmail.com> (raw)
In-Reply-To: <4E750E87.4010201@gmail.com>
On Sat, Sep 17, 2011 at 2:17 PM, Dale <rdalek1967@gmail.com> wrote:
> Mark Knecht wrote:
>>
>> On Sat, Sep 17, 2011 at 1:51 PM, Michael Mol<mikemol@gmail.com> wrote:
>>>
>>> On Sat, Sep 17, 2011 at 4:44 PM, Dale<rdalek1967@gmail.com> wrote:
>>>>
>>>> Mark Knecht wrote:
>>>>>
>>>>> On Sat, Sep 17, 2011 at 1:02 PM, Dale<rdalek1967@gmail.com> wrote:
>>>>
>>>> That's what I was thinking to. I know busybox does a LOT of things but
>>>> I
>>>> didn't think it was a nano replacement either. OK. I got both of those
>>>> in
>>>> there at least. First problem dealt with I guess. Wonder what else I
>>>> should put in there too.< scratches head>
>>>
>>> Anything that makes life convenient, I'd guess.
>>>
>>> I'd look at stuffing these in there:
>>> * screen
>>> * file
>>> * ssh
>>> * links/lynx/w3m
>>>
>>> You'd also need the .so files those depend on. I don't know how to
>>> identify those.
>>>
>>> --
>>> :wq
>>>
>>>
>> Supposedly
>>
>> ldd /usr/bin/screen
>> ldd /usr/bin/file
>> ldd /usr/bin/ssh
>>
>> etc.
>>
>> I think that's what I did when I built one a while back...
>>
>> - Mark
>>
>>
>
> Yep, that's how the howto says it too. It seems to work.
>
> root@fireball / # ldd /bin/nano
> linux-vdso.so.1 => (0x00007fffc25ff000)
> libncursesw.so.5 => /lib64/libncursesw.so.5 (0x00007f25fb500000)
> libc.so.6 => /lib64/libc.so.6 (0x00007f25fb171000)
> libdl.so.2 => /lib64/libdl.so.2 (0x00007f25faf6d000)
> /lib64/ld-linux-x86-64.so.2 (0x00007f25fb75f000)
> root@fireball / #
>
> So, I copied those over too.
>
> Adding ssh and screen are good ideas. I very rarely use file. Still might
> tho. Interesting:
>
> root@fireball / # ldd /usr/bin/screen
> linux-vdso.so.1 => (0x00007fffe1573000)
> libcrypt.so.1 => /lib64/libcrypt.so.1 (0x00007f921dfca000)
> libncursesw.so.5 => /lib64/libncursesw.so.5 (0x00007f921dd6b000)
> libpam.so.0 => /lib64/libpam.so.0 (0x00007f921db5c000)
> libc.so.6 => /lib64/libc.so.6 (0x00007f921d7cd000)
> libdl.so.2 => /lib64/libdl.so.2 (0x00007f921d5c9000)
> /lib64/ld-linux-x86-64.so.2 (0x00007f921e230000)
> root@fireball / # ldd /usr/bin/ssh
> linux-vdso.so.1 => (0x00007fffc6bff000)
> libcrypto.so.1.0.0 => /usr/lib64/libcrypto.so.1.0.0
> (0x00007ff6aa7b9000)
> libdl.so.2 => /lib64/libdl.so.2 (0x00007ff6aa5b5000)
> libz.so.1 => /lib64/libz.so.1 (0x00007ff6aa39d000)
> libresolv.so.2 => /lib64/libresolv.so.2 (0x00007ff6aa186000)
> libpthread.so.0 => /lib64/libpthread.so.0 (0x00007ff6a9f69000)
> libc.so.6 => /lib64/libc.so.6 (0x00007ff6a9bda000)
> /lib64/ld-linux-x86-64.so.2 (0x00007ff6aab73000)
> root@fireball / #
>
> Those seem to have a bit in common and no static flag for either.
>
> Dale
While I was out walking my dog I sort of remembered that there are
just a few apps I had to build static, or at least that I build
static. One, I think was grub. The first and only time I did it I had
to do it 3 or 4 times before I got everything I needed working
correctly. This page which is like the first one Google comes up with
talks about that stuff, although you have to sort of dig it out and
read between the lines.
http://en.gentoo-wiki.com/wiki/Initramfs
And, I think with the ldd command as long as you include the libraries
ldd points at in your equivalent /lib directory within the initramfs
then that works for most apps and keeps the initramfs smaller.
HTH,
Mark
next prev parent reply other threads:[~2011-09-17 21:33 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-09-17 20:02 [gentoo-user] Making a init thingy. Step two I guess Dale
2011-09-17 20:27 ` Mark Knecht
2011-09-17 20:44 ` Dale
2011-09-17 20:51 ` Michael Mol
2011-09-17 20:56 ` Mark Knecht
2011-09-17 21:17 ` Dale
2011-09-17 21:32 ` Mark Knecht [this message]
2011-09-17 22:27 ` Dale
2011-09-17 22:45 ` Michael Mol
2011-09-18 2:13 ` Dale
2011-09-18 2:20 ` Michael Mol
2011-09-18 3:56 ` Pandu Poluan
2011-09-18 15:16 ` Mark Knecht
2011-09-17 22:48 ` Mark Knecht
2011-09-17 20:54 ` Mark Knecht
2011-09-17 21:11 ` Dale
2011-09-17 21:12 ` pk
2011-09-17 23:00 ` Alan McKinnon
2011-09-18 2:15 ` Dale
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=CAK2H+efk0SB95BpFtLKy6QOS0SEb92Ggmw+58sS-hUbzWp_mCQ@mail.gmail.com \
--to=markknecht@gmail.com \
--cc=gentoo-user@lists.gentoo.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