projects
/
project
/
fstools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
block.c: Add ability to mount with ACL and XATTR support
[project/fstools.git]
/
mount_root.c
diff --git
a/mount_root.c
b/mount_root.c
index
47a3409
..
6e06b45
100644
(file)
--- a/
mount_root.c
+++ b/
mount_root.c
@@
-12,6
+12,9
@@
*/
#include <sys/mount.h>
*/
#include <sys/mount.h>
+#include <sys/types.h>
+#include <sys/stat.h>
+#include <unistd.h>
#include <stdio.h>
#include <stdlib.h>
#include <stdio.h>
#include <stdlib.h>
@@
-29,8
+32,9
@@
start(int argc, char *argv[1])
{
struct volume *root;
struct volume *data = volume_find("rootfs_data");
{
struct volume *root;
struct volume *data = volume_find("rootfs_data");
+ struct stat s;
- if (!getenv("PREINIT"))
+ if (!getenv("PREINIT")
&& stat("/tmp/.preinit", &s)
)
return -1;
if (!data) {
return -1;
if (!data) {
@@
-68,7
+72,6
@@
start(int argc, char *argv[1])
case FS_JFFS2:
case FS_UBIFS:
case FS_JFFS2:
case FS_UBIFS:
- case FS_EXT4FS:
mount_overlay(data);
break;
mount_overlay(data);
break;
@@
-107,7
+110,6
@@
done(int argc, char *argv[1])
case FS_JFFS2:
case FS_UBIFS:
case FS_JFFS2:
case FS_UBIFS:
- case FS_EXT4FS:
fs_state_set("/overlay", FS_STATE_READY);
break;
}
fs_state_set("/overlay", FS_STATE_READY);
break;
}