From 2e102898073e56d3f32c791902fed5683ffb1bd3 Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Mon, 22 Nov 2021 10:46:23 -0500 Subject: [PATCH] Invoke mkinitrd after zypper runs --- imgutil/imgutil | 2 ++ 1 file changed, 2 insertions(+) diff --git a/imgutil/imgutil b/imgutil/imgutil index 74b1e7cb..3fa31213 100644 --- a/imgutil/imgutil +++ b/imgutil/imgutil @@ -509,6 +509,8 @@ class SuseHandler(OsHandler): subprocess.check_call(cmd) subprocess.check_call(['zypper', '-R', self.targpath, 'install'] + self.zyppargs) os.symlink('/usr/lib/systemd/system/sshd.service', os.path.join(self.targpath, 'etc/systemd/system/multi-user.target.wants/sshd.service')) + args.cmd = ['mkinitrd'] + run_constrainedx(fancy_chroot, (args, self.targpath)) class DebHandler(OsHandler):