diff -uNar ubiquity.orig/scripts/install.py ubiquity.mod/scripts/install.py --- ubiquity.orig/scripts/install.py 2017-05-08 16:36:59.450617559 +0200 +++ ubiquity.mod/scripts/install.py 2017-05-08 16:36:52.034735633 +0200 @@ -210,6 +210,13 @@ return None + def find_lowlatency_kernel(self): + for f in os.listdir(self.casper_path): + if "vmlinuz" in f and "lowlatency" in f: + syslog.syslog("LLIUREX MOD: Adding lowlatency kernel: %s"%f) + return os.path.join(self.casper_path,f) + return None + def generate_blacklist(self): manifest_remove = os.path.join(self.casper_path, 'filesystem.manifest-remove') @@ -588,6 +595,13 @@ # Construct the unsigned kernel. subprocess.check_call(["sbattach", "--remove", target_kernel]) + lkernel = self.find_lowlatency_kernel() + if lkernel: + target = os.path.join(bootdir,lkernel.split("/")[-1]) + install_misc.copy_file(self.db, lkernel, target, md5_check) + os.lchown(target, 0, 0) + os.chmod(target, 0o644) + os.umask(old_umask) self.db.progress('SET', 100)