perl-5.22
Last change
on this file since a2d969e was
c5c522c,
checked in by Edwin Eefting <edwin@datux.nl>, 8 years ago
|
initial commit, transferred from cleaned syn3 svn tree
|
-
Property mode set to
100644
|
File size:
622 bytes
|
Rev | Line | |
---|
[c5c522c] | 1 | --- switch_root.c.orig 2005-11-01 00:55:39.000000000 +0100 |
---|
| 2 | +++ switch_root.c 2005-12-14 20:54:05.000000000 +0100 |
---|
| 3 | @@ -90,13 +90,13 @@ |
---|
| 4 | // we mean it. (I could make this a CONFIG option, but I would get email |
---|
| 5 | // from all the people who WILL eat their filesystemss.) |
---|
| 6 | |
---|
| 7 | - if (stat("/init", &st1) || !S_ISREG(st1.st_mode) || statfs("/", &stfs) || |
---|
| 8 | +/* if (stat("/init", &st1) || !S_ISREG(st1.st_mode) || statfs("/", &stfs) || |
---|
| 9 | (stfs.f_type != RAMFS_MAGIC && stfs.f_type != TMPFS_MAGIC) || |
---|
| 10 | getpid() != 1) |
---|
| 11 | { |
---|
| 12 | bb_error_msg_and_die("not rootfs"); |
---|
| 13 | } |
---|
| 14 | - |
---|
| 15 | +*/ |
---|
| 16 | // Zap everything out of rootdev |
---|
| 17 | delete_contents("/"); |
---|
| 18 | |
---|
Note: See
TracBrowser
for help on using the repository browser.