--- We are using this patch to build LinuxCNC live images, because we need features available only in the "-rt" kernel.
lwr/run.py | 6 +++++- lwr/vm.py | 4 +++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/lwr/run.py b/lwr/run.py index bef34c0..1f28ab6 100644 --- a/lwr/run.py +++ b/lwr/run.py @@ -80,6 +80,9 @@ class LiveWrapper(cliapp.Application): group='Base Settings', default='DEBIAN LIVE') self.settings.string( + ['kernel'], 'Kernel package to install', group='Packages', + metavar='linux-image-...', default=None) + self.settings.string( ['t', 'tasks'], 'Task packages to install', metavar='"task-TASK1 task-TASK2 ..."', group='Packages') @@ -231,7 +234,8 @@ class LiveWrapper(cliapp.Application): self.settings['mirror'], self.cdroot.path, self.settings['customise'], - self.settings['apt-mirror']) + self.settings['apt-mirror'], + self.settings['kernel']) vm.run() # Initialise menu diff --git a/lwr/vm.py b/lwr/vm.py index c0dde3c..6114612 100644 --- a/lwr/vm.py +++ b/lwr/vm.py @@ -30,7 +30,7 @@ from vmdebootstrap.base import runcmd class VMDebootstrap(object): - def __init__(self, distribution, architecture, mirror, cdroot, customise, apt_mirror): + def __init__(self, distribution, architecture, mirror, cdroot, customise, apt_mirror, kernel): self.cdroot = cdroot self.args = ["vmdebootstrap", "--sudo", "--lock-root-password", @@ -40,6 +40,8 @@ class VMDebootstrap(object): "--log", "vmdebootstrap.log", "--squash=%s" % os.path.join(self.cdroot, 'live'), "--log-level", "debug"] + if kernel: + self.args.extend(["--kernel", kernel]) self.args.extend(["--distribution", distribution]) self.args.extend(["--mirror", mirror]) self.args.extend(["--apt-mirror", apt_mirror]) -- 2.11.0