16 lines
509 B
Python
16 lines
509 B
Python
#!/usr/bin/python3
|
|
|
|
import os
|
|
import subprocess
|
|
from boottoolsfunctions import _run, _read_config
|
|
|
|
config = _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...
|
|
_run (['dpkg-reconfigure', '--frontend', 'noninteractive', 'console-setup', 'locales'])
|