}
/**
- * move_mount - move mount point to the new root
+ * ovl_move_mount - move mount point to the new root
*/
-static int move_mount(const char *device, const char *mount_point)
+static int ovl_move_mount(const char *device, const char *mount_point)
{
static const char *prefix = "/tmp/root/";
ULOG_ERR("failed - mount -t jffs2 %s %s: %m\n", v->blk, OVERLAYDIR);
return -1;
}
+ selinux_restorecon(OVERLAYDIR);
if (mount("none", "/", NULL, MS_NOATIME | MS_REMOUNT, 0)) {
ULOG_ERR("failed - mount -o remount,ro none: %m\n");
* doesn't support mounts. Mounting to upper dir don't make overlay
* /propagate/ files to the target dir.
*/
- foreach_mount(move_mount);
+ foreach_mount(ovl_move_mount);
return ret;
}