diff --git a/kernel/common/los_rootfs.c b/kernel/common/los_rootfs.c index 7c279735..1d002476 100644 --- a/kernel/common/los_rootfs.c +++ b/kernel/common/los_rootfs.c @@ -437,11 +437,13 @@ STATIC VOID OsMountUserdata(const CHAR *fsType) } err = get_errno(); if (err == ENOENT) { +#ifdef LOSCFG_FS_FAT ret = format(emmcUserdataDev, 0, FM_FAT32); if (ret != LOS_OK) { PRINT_ERR("Failed to format %s\n", emmcUserdataDev); return; } +#endif ret = mount(emmcUserdataDev, userdataDir, fsType, 0, "umask=000"); if (ret != LOS_OK) { err = get_errno();