aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gentoo/utils.py25
1 files changed, 11 insertions, 14 deletions
diff --git a/gentoo/utils.py b/gentoo/utils.py
index 42f745e..7548d51 100644
--- a/gentoo/utils.py
+++ b/gentoo/utils.py
@@ -752,18 +752,25 @@ class GentooInstall:
def emit_install_done(self):
# user installed Gentoo, w00hooh!
pass
-
- def copy_files(self, path_from, path_to):
+
+ def live_install(self):
+ """
+ This function copies the stage3 into self._root
+ """
+
+
+ action = _("System Installation")
copy_update_interval = 10
copy_update_counter = 9
# get file counters
total_files = 0
- image_dir = path_to
+ image_dir = self._prod_root
for z,z,files in os.walk(image_dir):
for file in files:
total_files += 1
self._progress.set_fraction(0.0)
+ self._progress.set_text(action)
def copy_other(fromfile, tofile):
proc = subprocess.Popen(("/bin/cp", "-a", fromfile, tofile),
@@ -792,7 +799,7 @@ class GentooInstall:
os.symlink(source_link, tofile)
current_counter = 0
- currentfile = path_from
+ currentfile = "/"
image_dir_len = len(image_dir)
# Create the directory structure
# self.InstallFilesToIgnore
@@ -863,17 +870,7 @@ class GentooInstall:
self._progress.set_fraction(1)
- def live_install(self):
- """
- This function copies the stage3 into self._root
- """
-
- action = _("Installing stage3")
-
- self.copy_files(self._prod_root, "/")
-
self._progress.set_text(_("Installation complete"))
-
def language_packs_install(self):
return