summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2017-04-02 13:11:28 +0000
committerLars Wirzenius <liw@liw.fi>2017-04-02 13:11:28 +0000
commit0189901a87150e6b0ccfdc23723d512a8bac345e (patch)
treefd0db6bf88211f0ea359508e3b39b6df252b69bc
parent60be98641616b2be27c4ee35a9be50e0ca36bf32 (diff)
downloadvmdb2-0189901a87150e6b0ccfdc23723d512a8bac345e.tar.gz
Drop kernel plugin now we have apt
-rw-r--r--README2
-rw-r--r--vmdb/plugins/kernel_plugin.py49
2 files changed, 1 insertions, 50 deletions
diff --git a/README b/README
index 0b28116..1af98f2 100644
--- a/README
+++ b/README
@@ -68,7 +68,7 @@ steps that will become incomplete as soon as development continues:
* chroot (run shell snippet in chroot)
* shell (run shell snippet without chroot)
* debootstrap (run deboostrap)
-* kernel (installs kernel)
+* apt (install packagers in chroot with apt)
* mkimg (create disk image)
* mklabel (create partition table on a disk image)
* mkpart (create partition)
diff --git a/vmdb/plugins/kernel_plugin.py b/vmdb/plugins/kernel_plugin.py
deleted file mode 100644
index f888db8..0000000
--- a/vmdb/plugins/kernel_plugin.py
+++ /dev/null
@@ -1,49 +0,0 @@
-# Copyright 2017 Lars Wirzenius
-#
-# This program is free software: you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation, either version 3 of the License, or
-# (at your option) any later version.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program. If not, see <http://www.gnu.org/licenses/>.
-#
-# =*= License: GPL-3+ =*=
-
-
-
-import logging
-import sys
-
-import cliapp
-
-import vmdb
-
-
-class KernelPlugin(cliapp.Plugin):
-
- def enable(self):
- self.app.step_runners.add(KernelStepRunner())
-
-
-class KernelStepRunner(vmdb.StepRunnerInterface):
-
- def get_required_keys(self):
- return ['kernel', 'fs-tag']
-
- def run(self, step, settings, state):
- package = step['kernel']
- fstag = step['fs-tag']
- mount_point = state.mounts[fstag]
- vmdb.progress(
- 'Install {} to filesystem at {} ({})\n'.format(
- package, mount_point, fstag))
- vmdb.runcmd(
- ['chroot', mount_point,
- 'apt-get', '-y', '--no-show-progress', 'install', package])
-