]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/shared/discover-image.c
machine-image: fix duplicate detection when discovering images
authorLennart Poettering <lennart@poettering.net>
Thu, 5 Apr 2018 15:56:22 +0000 (17:56 +0200)
committerLennart Poettering <lennart@poettering.net>
Thu, 24 May 2018 15:01:57 +0000 (17:01 +0200)
commit1bf36bf9efafea1ee637e77dd9646c981a325aac
tree48c9a0262122815116246a3c222cbd765d9f15be
parent5ef46e5f6598d74acbfe963d4feb8dca4e9486b4
machine-image: fix duplicate detection when discovering images

We need to chop off the .raw suffix from the files we find before we can
test it against the hashmap. Hence do that.

And while we are at it, we can pass the pretty name into image_make(),
since we already have it properly formatted.
src/shared/machine-image.c