302-mtd-qcom-smem-rename-rootfs-ubi.patch 541 B

12345678910111213
  1. --- a/drivers/mtd/qcom_smem_part.c
  2. +++ b/drivers/mtd/qcom_smem_part.c
  3. @@ -189,6 +189,10 @@ static int parse_qcom_smem_partitions(st
  4. m_part->size = le32_to_cpu(s_part->size) * (*smem_blksz);
  5. m_part->offset = le32_to_cpu(s_part->start) * (*smem_blksz);
  6. + /* "rootfs" conflicts with OpenWrt auto mounting */
  7. + if (mtd_type_is_nand(master) && !strcmp(m_part->name, "rootfs"))
  8. + m_part->name = "ubi";
  9. +
  10. /*
  11. * The last SMEM partition may have its size marked as
  12. * something like 0xffffffff, which means "until the end of the