use chroot for testing read and write into sysconfig file