*/
#include <sys/mount.h>
+#include <sys/types.h>
+#include <sys/stat.h>
+#include <unistd.h>
#include <stdio.h>
#include <stdlib.h>
{
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) {