Kaydet (Commit) 2df292be authored tarafından sulincix's avatar sulincix

denencek

üst fde3bf7f
......@@ -429,8 +429,11 @@ class InstallerEngine:
os.system("echo \"LC_COLLATE=C\" > /target/etc/env.d/02locale")
os.system("echo \"LC_ALL=%s.UTF-8\" >> /target/etc/env.d/02locale" %
self.setup.language)
self.update_progress(our_current, our_total, False,
False, ("Updating environment"))
os.system("echo \"LANG=%s.UTF-8\" >> /target/etc/env.d/02locale" %
self.setup.language)
self.do_run_in_chroot('cat /etc/env.d/* | grep -v "^#" > /etc/environment')
# set the timezone
print(" --> Setting the timezone")
......@@ -453,6 +456,9 @@ class InstallerEngine:
newconsolefh.write("keymap=\"{}{}\"\n".format(self.setup.keyboard_layout,self.setup.keyboard_variant))
newconsolefh.close()
#Keyboard settings X11
self.update_progress(our_current, our_total, False,
False, ("Settings X11 keyboard options"))
newconsolefh = open("/etc/X11/xorg.conf.d/00-keyboard.conf", "w")
newconsolefh.write('Section "InputClass"')
newconsolefh.write('Identifier "system-keyboard"')
......@@ -473,6 +479,9 @@ class InstallerEngine:
print(" --> Running grub-install")
self.do_run_in_chroot("grub-install --force %s" %
self.setup.grub_device)
self.update_progress(our_current, our_total, False,
False, ("Configuring bootloader"))
# fix not add windows grub entry
self.do_run_in_chroot("update-grub")
self.do_configure_grub(our_total, our_current)
......@@ -488,6 +497,9 @@ class InstallerEngine:
# now unmount it
print(" --> Unmounting partitions")
self.update_progress(our_current, our_total, False,
False, ("Unmounting Partitions"))
os.system("umount --force /target/dev/shm")
os.system("umount --force /target/dev/pts")
if self.setup.gptonefi:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment