From 9de63eaf033079d6bd01a6759cca1a6b03831b6c Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Wed, 26 Dec 2018 16:06:51 +0200 Subject: Drop: forced running of 'apt-get update' in grub step The debootstrap step runs it now. --- vmdb/plugins/grub_plugin.py | 6 ------ 1 file changed, 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' -- cgit v1.2.1