You probably don't need read_attribute, write_attribute, or the DEBIAN_FRONTEND junk here.