oglive-builder/05-boottoolsFsLocales.py

16 lines
506 B
Python

#!/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'])