Comment 2 for bug 1506692

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to diskimage-builder (master)

Reviewed: https://review.openstack.org/235705
Committed: https://git.openstack.org/cgit/openstack/diskimage-builder/commit/?id=d8a0e13261f8df2b963f0f96085c8ceaad654309
Submitter: Jenkins
Branch: master

commit d8a0e13261f8df2b963f0f96085c8ceaad654309
Author: Martin André <email address hidden>
Date: Fri Oct 16 11:11:14 2015 +0900

    Fix uniqueness check of initrd in fedora-minimal

    The check suffered from various flaws.

    First, due to missing quotes around $initrd, 'wc -l' would always see
    1 line no matter how many results the find returned.

    Second, echo adds a line break making 'wc -l' count 1 even for empty
    string. We need to add a check for empty string.

    Change-Id: Ib2c67960f566dbdc471d9585a4cef1beb1cc38ab
    Closes-Bug: #1506692