Re: shared/032 is broken on Fedora

Eric Sandeen
2015-02-11T16:55:29Z

On 2/11/15 10:50 AM, Eric Sandeen wrote:
> (cc: fstests list)
>
> On 2/11/15 4:58 AM, Boaz Harrosh wrote:
>>
>> This is not the proper patch just to show a working version for Fedora. But I think
>> it now breaks the other ARCHs.
>>
>> What happens is that the output of ${MKFS_PROG}.* is:
>> /usr/sbin/mkfs.bfs /usr/sbin/mkfs.btrfs /usr/sbin/mkfs.cramfs /usr/sbin/mkfs.ext2 /usr/sbin/mkfs.ext3 /usr/sbin/mkfs.ext4 ...
>>
>> So in Fedora sbin has moved to /usr/... and therefor the sed below fails.
>> My sed foo is not good enough. How to support both places for sbin?
>
> All we really want is the mkfs filesystem type, i.e. the ${FS} in mkfs.${FS}
>
> So
>
> sed -e 's/.*mkfs.//g'

Wait, no, I misunderstood what it was working on ;) Hang on ...

-Eric