apply cfg and chroot path