Anonymous | Login | Signup for a new account | 11-10-2008 10:53 PST |
Main | My View | View Issues | Change Log | Docs |
Viewing Issue Simple Details [ Jump to Notes ] | [ View Advanced ] [ Issue History ] [ Print ] | ||||||||
ID | Category | Severity | Reproducibility | Date Submitted | Last Update | ||||
0000543 | [BusyBox] Other | major | always | 11-14-05 07:59 | 02-05-06 18:41 | ||||
Reporter | zlosch | View Status | public | ||||||
Assigned To | BusyBox | ||||||||
Priority | normal | Resolution | fixed | ||||||
Status | closed | Product Version | svn | ||||||
Summary | 0000543: switch_root fails | ||||||||
Description |
I have noticed that switch_root does not work. Looking into run_init.c from klibc I found out that you are missing a chroot statement after the move-mount. Additionally, I would like switch_root to be a little less verbose about deleting the old root's contents... ;-) (ok, this looks to be debug code at the moment...) |
||||||||
Additional Information |
Solution: change if (mount(".", "/", NULL, MS_MOVE, NULL) || chdir("/")) bb_error_msg_and_die("moving root"); to if (mount(".", "/", NULL, MS_MOVE, NULL) || chroot(".") || chdir("/")) bb_error_msg_and_die("moving root"); |
||||||||
Attached Files | |||||||||
|
Notes | |
(0001043) landley 02-05-06 18:41 |
Fixed back before the 1.1.0 release. If anything's still wrong with switch_root for you, open a new bug with current symptoms. |
Copyright © 2000 - 2006 Mantis Group |