* [gentoo-user] startup script use the wrong find command
@ 2009-12-04 12:11 Xi Shen
2009-12-04 15:25 ` Alex Schuster
2009-12-04 15:44 ` Willie Wong
0 siblings, 2 replies; 10+ messages in thread
From: Xi Shen @ 2009-12-04 12:11 UTC (permalink / raw
To: gentoo-china, gentoo-user
hi,
when i boot my system, at the step "Wiping /tmp", it pops up an error
message saying that the find command do not support the '-uid' option.
in the error message, i also see the busybox mark. it looks like it
used the wrong find command.
i build the kernel my self, and have a initramfs file.
--
Best Regards,
David Shen
http://twitter.com/davidshen84/
http://meme.yahoo.com/davidshen84/
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [gentoo-user] startup script use the wrong find command
2009-12-04 12:11 [gentoo-user] startup script use the wrong find command Xi Shen
@ 2009-12-04 15:25 ` Alex Schuster
2009-12-04 20:42 ` Alan McKinnon
2009-12-04 15:44 ` Willie Wong
1 sibling, 1 reply; 10+ messages in thread
From: Alex Schuster @ 2009-12-04 15:25 UTC (permalink / raw
To: gentoo-user
Xi Shen writes:
> when i boot my system, at the step "Wiping /tmp", it pops up an error
> message saying that the find command do not support the '-uid' option.
> in the error message, i also see the busybox mark. it looks like it
> used the wrong find command.
Did you emerge busybox with the make-symlinks USE flag? When your original
find is replaced by a link to busybox.
Don't know what to do exactly, most probably many other commands will also
not work as expected, I guess you need to re-emerge all stuff that
provides them, like findutils. There was a thread recently, look for "/bin
contains busybox executables after installing busybox-1.13.2" by Amit Dor-
Shifer on 2009-11-25.
Good luck,
Wonko
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [gentoo-user] startup script use the wrong find command
2009-12-04 12:11 [gentoo-user] startup script use the wrong find command Xi Shen
2009-12-04 15:25 ` Alex Schuster
@ 2009-12-04 15:44 ` Willie Wong
2009-12-04 16:47 ` Xi Shen
1 sibling, 1 reply; 10+ messages in thread
From: Willie Wong @ 2009-12-04 15:44 UTC (permalink / raw
To: gentoo-user
On Fri, Dec 04, 2009 at 08:11:21PM +0800, Penguin Lover Xi Shen squawked:
> when i boot my system, at the step "Wiping /tmp", it pops up an error
> message saying that the find command do not support the '-uid' option.
> in the error message, i also see the busybox mark. it looks like it
> used the wrong find command.
I'm almost sure your problem is identical to that of this thread
http://archives.gentoo.org/gentoo-user/msg_e25872c93db5f5fbece7abc17ee62c19.xml
Cheers,
W
--
Statistics are like a Bikini:
showing interesting details but hiding the important stuff.
Sortir en Pantoufles: up 1092 days, 14:35
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [gentoo-user] startup script use the wrong find command
2009-12-04 15:44 ` Willie Wong
@ 2009-12-04 16:47 ` Xi Shen
0 siblings, 0 replies; 10+ messages in thread
From: Xi Shen @ 2009-12-04 16:47 UTC (permalink / raw
To: gentoo-user
well, my find is still at /usr/bin/find, and after the system has
boot, i can use find command normally.
i think my problem is caused by the init script in the initramfs file.
in that script, i install busybox with busybox --install -s. but i do
not know how to uninstall it, or how to fix my problem.
On Fri, Dec 4, 2009 at 11:44 PM, Willie Wong <wwong@math.princeton.edu> wrote:
> On Fri, Dec 04, 2009 at 08:11:21PM +0800, Penguin Lover Xi Shen squawked:
>> when i boot my system, at the step "Wiping /tmp", it pops up an error
>> message saying that the find command do not support the '-uid' option.
>> in the error message, i also see the busybox mark. it looks like it
>> used the wrong find command.
>
> I'm almost sure your problem is identical to that of this thread
> http://archives.gentoo.org/gentoo-user/msg_e25872c93db5f5fbece7abc17ee62c19.xml
>
> Cheers,
>
> W
> --
> Statistics are like a Bikini:
> showing interesting details but hiding the important stuff.
> Sortir en Pantoufles: up 1092 days, 14:35
>
>
--
Best Regards,
David Shen
http://twitter.com/davidshen84/
http://meme.yahoo.com/davidshen84/
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [gentoo-user] startup script use the wrong find command
2009-12-04 15:25 ` Alex Schuster
@ 2009-12-04 20:42 ` Alan McKinnon
2009-12-07 1:00 ` Xi Shen
0 siblings, 1 reply; 10+ messages in thread
From: Alan McKinnon @ 2009-12-04 20:42 UTC (permalink / raw
To: gentoo-user
On Friday 04 December 2009 17:25:21 Alex Schuster wrote:
> Xi Shen writes:
> > when i boot my system, at the step "Wiping /tmp", it pops up an error
> > message saying that the find command do not support the '-uid' option.
> > in the error message, i also see the busybox mark. it looks like it
> > used the wrong find command.
>
> Did you emerge busybox with the make-symlinks USE flag? When your original
> find is replaced by a link to busybox.
That's unlikely. His box will likely not boot if he did that. If it does boot
it certainly will not emerge anything. Portage relies on features that are
present in GNU utilities and are not there in busybox
> Don't know what to do exactly, most probably many other commands will also
> not work as expected, I guess you need to re-emerge all stuff that
> provides them, like findutils. There was a thread recently, look for "/bin
> contains busybox executables after installing busybox-1.13.2" by Amit Dor-
> Shifer on 2009-11-25.
He likely installed busybox into the initramfs instead of GNU utilities.
initramfs on gentoo is not a technique I recommend. It is designed for a
general use-case not present in Gentoo[1], and a very few specific cases where
an initramfs-less setup cannot work[2[
[1] Binary distros cannot know upfront what the end-user has hardware-wise, so
cannot build drivers for everything imaginable into the kernel. An initramfs
is an elegant solution, but one which is overkill for Gentoo (the initial
statement is usually false)
[2] Some specific boot scenarios require an initramfs even on Gentoo - booting
off raided volumes where drivers are needed at boot time, encrypted / volumes,
/ on an LVM volume and a few others
In almost all other cases it is simpler and easier to dispense with the
initramfs and build two drivers into the kernel. After all, the user in all
probability knows exactly what hardware they have
--
alan dot mckinnon at gmail dot com
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [gentoo-user] startup script use the wrong find command
2009-12-04 20:42 ` Alan McKinnon
@ 2009-12-07 1:00 ` Xi Shen
2009-12-07 6:27 ` Alan McKinnon
0 siblings, 1 reply; 10+ messages in thread
From: Xi Shen @ 2009-12-07 1:00 UTC (permalink / raw
To: gentoo-user
yes, i installed busybox into the initramfs i created my self. because
i see the initramfs generated by genkernel uses it.
i am using LVM, so i have to use a initramfs. are you suggesting that
i should install all the GNU utilities into the initramfs? i think
that would create a very large initramfs file.
On Sat, Dec 5, 2009 at 4:42 AM, Alan McKinnon <alan.mckinnon@gmail.com> wrote:
> On Friday 04 December 2009 17:25:21 Alex Schuster wrote:
>> Xi Shen writes:
>> > when i boot my system, at the step "Wiping /tmp", it pops up an error
>> > message saying that the find command do not support the '-uid' option.
>> > in the error message, i also see the busybox mark. it looks like it
>> > used the wrong find command.
>>
>> Did you emerge busybox with the make-symlinks USE flag? When your original
>> find is replaced by a link to busybox.
>
> That's unlikely. His box will likely not boot if he did that. If it does boot
> it certainly will not emerge anything. Portage relies on features that are
> present in GNU utilities and are not there in busybox
>
>> Don't know what to do exactly, most probably many other commands will also
>> not work as expected, I guess you need to re-emerge all stuff that
>> provides them, like findutils. There was a thread recently, look for "/bin
>> contains busybox executables after installing busybox-1.13.2" by Amit Dor-
>> Shifer on 2009-11-25.
>
> He likely installed busybox into the initramfs instead of GNU utilities.
>
> initramfs on gentoo is not a technique I recommend. It is designed for a
> general use-case not present in Gentoo[1], and a very few specific cases where
> an initramfs-less setup cannot work[2[
>
> [1] Binary distros cannot know upfront what the end-user has hardware-wise, so
> cannot build drivers for everything imaginable into the kernel. An initramfs
> is an elegant solution, but one which is overkill for Gentoo (the initial
> statement is usually false)
>
> [2] Some specific boot scenarios require an initramfs even on Gentoo - booting
> off raided volumes where drivers are needed at boot time, encrypted / volumes,
> / on an LVM volume and a few others
>
> In almost all other cases it is simpler and easier to dispense with the
> initramfs and build two drivers into the kernel. After all, the user in all
> probability knows exactly what hardware they have
>
>
> --
> alan dot mckinnon at gmail dot com
>
>
--
Best Regards,
David Shen
http://twitter.com/davidshen84/
http://meme.yahoo.com/davidshen84/
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [gentoo-user] startup script use the wrong find command
2009-12-07 1:00 ` Xi Shen
@ 2009-12-07 6:27 ` Alan McKinnon
2009-12-07 11:47 ` Xi Shen
0 siblings, 1 reply; 10+ messages in thread
From: Alan McKinnon @ 2009-12-07 6:27 UTC (permalink / raw
To: gentoo-user
On Monday 07 December 2009 03:00:29 Xi Shen wrote:
> yes, i installed busybox into the initramfs i created my self. because
> i see the initramfs generated by genkernel uses it.
>
> i am using LVM, so i have to use a initramfs. are you suggesting that
> i should install all the GNU utilities into the initramfs? i think
> that would create a very large initramfs file.
Do you mean / on LVM?
Personally, I don't trust busybox on full scale installs, or on anything
that's not embedded. Busybox necessarily omits certain features to keep the
size and simplicity down whereas boot utilities are too often written for GNU
tools.
>
> On Sat, Dec 5, 2009 at 4:42 AM, Alan McKinnon <alan.mckinnon@gmail.com>
wrote:
> > On Friday 04 December 2009 17:25:21 Alex Schuster wrote:
> >> Xi Shen writes:
> >> > when i boot my system, at the step "Wiping /tmp", it pops up an error
> >> > message saying that the find command do not support the '-uid' option.
> >> > in the error message, i also see the busybox mark. it looks like it
> >> > used the wrong find command.
> >>
> >> Did you emerge busybox with the make-symlinks USE flag? When your
> >> original find is replaced by a link to busybox.
> >
> > That's unlikely. His box will likely not boot if he did that. If it does
> > boot it certainly will not emerge anything. Portage relies on features
> > that are present in GNU utilities and are not there in busybox
> >
> >> Don't know what to do exactly, most probably many other commands will
> >> also not work as expected, I guess you need to re-emerge all stuff that
> >> provides them, like findutils. There was a thread recently, look for
> >> "/bin contains busybox executables after installing busybox-1.13.2" by
> >> Amit Dor- Shifer on 2009-11-25.
> >
> > He likely installed busybox into the initramfs instead of GNU utilities.
> >
> > initramfs on gentoo is not a technique I recommend. It is designed for a
> > general use-case not present in Gentoo[1], and a very few specific cases
> > where an initramfs-less setup cannot work[2[
> >
> > [1] Binary distros cannot know upfront what the end-user has
> > hardware-wise, so cannot build drivers for everything imaginable into the
> > kernel. An initramfs is an elegant solution, but one which is overkill
> > for Gentoo (the initial statement is usually false)
> >
> > [2] Some specific boot scenarios require an initramfs even on Gentoo -
> > booting off raided volumes where drivers are needed at boot time,
> > encrypted / volumes, / on an LVM volume and a few others
> >
> > In almost all other cases it is simpler and easier to dispense with the
> > initramfs and build two drivers into the kernel. After all, the user in
> > all probability knows exactly what hardware they have
> >
> >
> > --
> > alan dot mckinnon at gmail dot com
>
--
alan dot mckinnon at gmail dot com
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [gentoo-user] startup script use the wrong find command
2009-12-07 6:27 ` Alan McKinnon
@ 2009-12-07 11:47 ` Xi Shen
2009-12-08 15:38 ` Alex Schuster
0 siblings, 1 reply; 10+ messages in thread
From: Xi Shen @ 2009-12-07 11:47 UTC (permalink / raw
To: gentoo-user
yes i use / on LVM.
i just cannot understand why the busybox in the initramfs that
genkernel generates works fine, while mine reports error.
On Mon, Dec 7, 2009 at 2:27 PM, Alan McKinnon <alan.mckinnon@gmail.com> wrote:
> On Monday 07 December 2009 03:00:29 Xi Shen wrote:
>> yes, i installed busybox into the initramfs i created my self. because
>> i see the initramfs generated by genkernel uses it.
>>
>> i am using LVM, so i have to use a initramfs. are you suggesting that
>> i should install all the GNU utilities into the initramfs? i think
>> that would create a very large initramfs file.
>
> Do you mean / on LVM?
>
> Personally, I don't trust busybox on full scale installs, or on anything
> that's not embedded. Busybox necessarily omits certain features to keep the
> size and simplicity down whereas boot utilities are too often written for GNU
> tools.
>
>
>
>>
>> On Sat, Dec 5, 2009 at 4:42 AM, Alan McKinnon <alan.mckinnon@gmail.com>
> wrote:
>> > On Friday 04 December 2009 17:25:21 Alex Schuster wrote:
>> >> Xi Shen writes:
>> >> > when i boot my system, at the step "Wiping /tmp", it pops up an error
>> >> > message saying that the find command do not support the '-uid' option.
>> >> > in the error message, i also see the busybox mark. it looks like it
>> >> > used the wrong find command.
>> >>
>> >> Did you emerge busybox with the make-symlinks USE flag? When your
>> >> original find is replaced by a link to busybox.
>> >
>> > That's unlikely. His box will likely not boot if he did that. If it does
>> > boot it certainly will not emerge anything. Portage relies on features
>> > that are present in GNU utilities and are not there in busybox
>> >
>> >> Don't know what to do exactly, most probably many other commands will
>> >> also not work as expected, I guess you need to re-emerge all stuff that
>> >> provides them, like findutils. There was a thread recently, look for
>> >> "/bin contains busybox executables after installing busybox-1.13.2" by
>> >> Amit Dor- Shifer on 2009-11-25.
>> >
>> > He likely installed busybox into the initramfs instead of GNU utilities.
>> >
>> > initramfs on gentoo is not a technique I recommend. It is designed for a
>> > general use-case not present in Gentoo[1], and a very few specific cases
>> > where an initramfs-less setup cannot work[2[
>> >
>> > [1] Binary distros cannot know upfront what the end-user has
>> > hardware-wise, so cannot build drivers for everything imaginable into the
>> > kernel. An initramfs is an elegant solution, but one which is overkill
>> > for Gentoo (the initial statement is usually false)
>> >
>> > [2] Some specific boot scenarios require an initramfs even on Gentoo -
>> > booting off raided volumes where drivers are needed at boot time,
>> > encrypted / volumes, / on an LVM volume and a few others
>> >
>> > In almost all other cases it is simpler and easier to dispense with the
>> > initramfs and build two drivers into the kernel. After all, the user in
>> > all probability knows exactly what hardware they have
>> >
>> >
>> > --
>> > alan dot mckinnon at gmail dot com
>>
>
> --
> alan dot mckinnon at gmail dot com
>
>
--
Best Regards,
David Shen
http://twitter.com/davidshen84/
http://meme.yahoo.com/davidshen84/
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [gentoo-user] startup script use the wrong find command
2009-12-07 11:47 ` Xi Shen
@ 2009-12-08 15:38 ` Alex Schuster
2009-12-09 7:16 ` Xi Shen
0 siblings, 1 reply; 10+ messages in thread
From: Alex Schuster @ 2009-12-08 15:38 UTC (permalink / raw
To: gentoo-user
Xi Shen writes:
> yes i use / on LVM.
Me too.
> i just cannot understand why the busybox in the initramfs that
> genkernel generates works fine, while mine reports error.
And I do not understand why the "wiping tmp" stuff actually happens while
you are still in the initramfs. For me, /tmp is not even mounted while
being in initramfs. My /tmp is also wiped during bootup, but at that point
the initramfs is already gone and the real system (with a real find
command) has taken over.
Wonko
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [gentoo-user] startup script use the wrong find command
2009-12-08 15:38 ` Alex Schuster
@ 2009-12-09 7:16 ` Xi Shen
0 siblings, 0 replies; 10+ messages in thread
From: Xi Shen @ 2009-12-09 7:16 UTC (permalink / raw
To: gentoo-user
yeah, that's the point.
the initramfs has already passed, and it seems the system did not
successfully switch_root, and it still using busybox. my init script
in the initramfs is a slightly modified version of the one on this
page http://en.gentoo-wiki.com/wiki/Initramfs
On Tue, Dec 8, 2009 at 11:38 PM, Alex Schuster <wonko@wonkology.org> wrote:
> Xi Shen writes:
>
>> yes i use / on LVM.
>
> Me too.
>
>> i just cannot understand why the busybox in the initramfs that
>> genkernel generates works fine, while mine reports error.
>
> And I do not understand why the "wiping tmp" stuff actually happens while
> you are still in the initramfs. For me, /tmp is not even mounted while
> being in initramfs. My /tmp is also wiped during bootup, but at that point
> the initramfs is already gone and the real system (with a real find
> command) has taken over.
>
> Wonko
>
>
--
Best Regards,
David Shen
http://twitter.com/davidshen84/
http://meme.yahoo.com/davidshen84/
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2009-12-09 7:17 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-12-04 12:11 [gentoo-user] startup script use the wrong find command Xi Shen
2009-12-04 15:25 ` Alex Schuster
2009-12-04 20:42 ` Alan McKinnon
2009-12-07 1:00 ` Xi Shen
2009-12-07 6:27 ` Alan McKinnon
2009-12-07 11:47 ` Xi Shen
2009-12-08 15:38 ` Alex Schuster
2009-12-09 7:16 ` Xi Shen
2009-12-04 15:44 ` Willie Wong
2009-12-04 16:47 ` Xi Shen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox