Mock modified to work with LFS builds