libmount: improve conversion from root= to the devname

Currently the code supports /dev/name or PARTUUID= only. We also
need to support 'maj:min' and 'hexhex' notations.

Reported-by: George Spelvin <linux@horizon.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
This commit is contained in:
Karel Zak 2016-03-15 14:02:19 +01:00
parent 12f5cbe159
commit 40f00b4f8e
5 changed files with 132 additions and 9 deletions

View file

@ -36,6 +36,7 @@ extern void strtotimeval_or_err(const char *str, struct timeval *tv,
const char *errmesg);
extern int isdigit_string(const char *str);
extern int isxdigit_string(const char *str);
extern int parse_switch(const char *arg, const char *errmesg, ...);