#!/usr/bin/python3 import os import subprocess from boottoolsfunctions import utils config = utils.read_config ('boottoolsgenerator.cfg') if config is None: sys.exit (1) debconf_settings2 = config['General'].get ('debconf_settings2') subprocess.run (['debconf-set-selections'], input=debconf_settings2, text=True) ## despues de esto, debconf-get-selections devuelve los valores antiguos, no se por que... utils.run (['dpkg-reconfigure', '--frontend', 'noninteractive', 'console-setup', 'locales'])