base-files: allow specifiying rootdev for find_mmc_part
authorDaniel Golle <daniel@makrotopia.org>
Mon, 1 Nov 2021 13:58:20 +0000 (13:58 +0000)
committerDaniel Golle <daniel@makrotopia.org>
Mon, 1 Nov 2021 18:00:42 +0000 (18:00 +0000)
commit9f223a20bd5f0cbec9f34427588b645ae38433ff
tree6cefdfd59b5af3b7989785f75d2b05d4a069dd80
parent6738820bf637fd705ea7e61acf4f694e1bcda313
base-files: allow specifiying rootdev for find_mmc_part

Some devices got more than one mmc device.
Allow specifying the root device as 2nd parameter of find_mmc_part so
scripts can avoid matching irrelevant partitions on wrong mmc device.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
package/base-files/files/lib/functions.sh