Skip to contentSkip to conversation

switch_root...

Buildroot nickich 2 participants 3 messages Jun 4, 2009

lore
Share & tools
lore

nickich

author
#0 lore raw

Hi,

When I use switch_root I have an error "not rootfs", which comes from the condition !S_ISREG(st1.st_mode). When I remove this condition, all seems to work fine (or at least I think so).

What is this check for?
Can it be removed safely?
What's wrong with my system to break here?

Regards,
Nikolay

Signature · 2 lines
View this message in context: http://www.nabble.com/switch_root...-tp23869987p23869987.html
Sent from the Buildroot (busybox) mailing list archive at Nabble.com.
#1 lore raw
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"nickich" == nickich <[email protected]> writes:

nickich> Hi,

nickich> When I use switch_root I have an error "not rootfs", which nickich> comes from the condition !S_ISREG(st1.st_mode). When I nickich> remove this condition, all seems to work fine (or at least I nickich> think so).

nickich> What is this check for?
nickich> Can it be removed safely?
nickich> What's wrong with my system to break here?

Are you talking about the busybox switch_root applet? If so, then better ask on the busybox list (busybox at busybox.net).

Signature · 1 line
Bye, Peter Korsgaard
author
#2 lore raw
Quoted 10 lines · Peter Korsgaard-3 wrote:
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

"nickich" == nickich <[email protected]> writes:

nickich> Hi,

nickich> When I use switch_root I have an error "not rootfs", which nickich> comes from the condition !S_ISREG(st1.st_mode). When I nickich> remove this condition, all seems to work fine (or at least I nickich> think so).

Quoted 15 lines

nickich> What is this check for?
nickich> Can it be removed safely?
nickich> What's wrong with my system to break here?

Are you talking about the busybox switch_root applet? If so, then better ask on the busybox list (busybox at busybox.net).

Signature · 5 lines
Bye, Peter Korsgaard
_______________________________________________
buildroot mailing list
buildroot at busybox.net
http://lists.busybox.net/mailman/listinfo/buildroot

Yes, I mean busybox.
Thanks!

Signature · 2 lines
View this message in context: http://www.nabble.com/switch_root...-tp23869987p23871331.html
Sent from the Buildroot (busybox) mailing list archive at Nabble.com.