This comparator is buggy, and orders differently on python 3.13
$ python3.14 ./test.py
[('/', 'fake_name'), ('/var/log', 'fake_log'), ('/boot', 'fake_boot'), ('/var', 'fake_name')]
$ python3.10 ./test.py
[('/', 'fake_name'), ('/var', 'fake_name'), ('/var/log', 'fake_log'), ('/boot', 'fake_boot')]
It is saying that if it's not equal, or doesn't start with the same
prefix, it is bigger. Hence "/boot > /var" but also "/var > /boot"
which confuses things.
I really think what we want here is to ensure that parents mount
before children. So string comparision is fine? "/var < /var/log <
/var/log/foo"?
Replace it with that
Change-Id: Ieac277c90b13bdb8b2c651b17fa4617ac4c1b845
Signed-off-by: Ian Wienand <iwienand@redhat.com>