def METHOD_NAME(pkg, fname, dfile, edir, sfx):
    # for bootstrap, use python's native extractor
    if pkg.stage == 0:
        import tarfile
        with tarfile.open(dfile) as tf:
            tf.extractall(path=edir)
        return True
    return (
        chroot.enter(
            "tar",
            "-x",
            "--no-same-permissions",
            "--no-same-owner",
            "-f",
            dfile,
            "-C",
            edir,
            ro_root=True,
            unshare_all=True,
        ).returncode
        == 0
    )