diff --git a/imgutil/imgutil b/imgutil/imgutil index 57e5539b..e7e55942 100644 --- a/imgutil/imgutil +++ b/imgutil/imgutil @@ -549,7 +549,10 @@ 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'] + if os.path.exists(os.path.join(self.targpath, 'sbin/mkinitrd')): + args.cmd = ['mkinitrd'] + else: + args.cmd = ['dracut', '-f'] run_constrainedx(fancy_chroot, (args, self.targpath))