summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2018-12-26 16:06:51 +0200
committerLars Wirzenius <liw@liw.fi>2018-12-26 16:06:51 +0200
commit9de63eaf033079d6bd01a6759cca1a6b03831b6c (patch)
treeddefa813814acf19deefbbc473c31e3b7c946e70
parent45e2179790796aef05f13dfb1ef592a6c6b9765c (diff)
downloadvmdb2-9de63eaf033079d6bd01a6759cca1a6b03831b6c.tar.gz
Drop: forced running of 'apt-get update' in grub step
The debootstrap step runs it now.
-rw-r--r--vmdb/plugins/grub_plugin.py6
1 files changed, 0 insertions, 6 deletions
diff --git a/vmdb/plugins/grub_plugin.py b/vmdb/plugins/grub_plugin.py
index 4c06d40..64522ec 100644
--- a/vmdb/plugins/grub_plugin.py
+++ b/vmdb/plugins/grub_plugin.py
@@ -139,7 +139,6 @@ class GrubStepRunner(vmdb.StepRunnerInterface):
self.bind_mount_many(chroot, ['/dev', '/proc', '/sys'], state)
if efi_dev:
self.mount(chroot, efi_dev, '/boot/efi', state)
- self.apt_update(chroot)
self.install_package(chroot, grub_package)
kernel_params = [
@@ -226,11 +225,6 @@ class GrubStepRunner(vmdb.StepRunnerInterface):
def chroot_path(self, chroot, path):
return os.path.normpath(os.path.join(chroot, '.' + path))
- def apt_update(self, chroot):
- env = os.environ.copy()
- env['DEBIAN_FRONTEND'] = 'noninteractive'
- vmdb.runcmd_chroot(chroot, ['apt-get', 'update'], env=env)
-
def install_package(self, chroot, package):
env = os.environ.copy()
env['DEBIAN_FRONTEND'] = 'noninteractive'