099aea lib: Ensure we don't find bind mounts for device target

2 files Authored by Lichen Liu 4 months ago, Committed by liutgnu 4 months ago,
    lib: Ensure we don't find bind mounts for device target
    
    Resolves: RHEL-35885
    
    commit 9252d6b1b492016aa11a73340f286822e6d545f2
    Author: Colin Walters <walters@verbum.org>
    Date:   Fri Jul 19 11:44:09 2024 -0400
    
        lib: Ensure we don't find bind mounts for device target
    
        There's comment here that `--source` somehow avoids bind
        mounts, but that appears not to be the case in my
        testing. I think we just happened to be lucky before
        now with the `--first` picking the value we wanted.
    
        Instead of using `--first` and hoping for the best,
        parse the mounts and skip ones which are bind mounts
        explicitly.
    
        Signed-off-by: Colin Walters <walters@verbum.org>
    
    Signed-off-by: Lichen Liu <lichliu@redhat.com>
    
        
file modified
+9 -2
file modified
+1 -1