From: Elias Probst Date: Thu, 18 Oct 2018 23:14:06 +0000 (+0200) Subject: Ubuntu/GPT-Boot: Include dracut bug workaround comment in conf file X-Git-Tag: v5~47^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F268%2Fhead;p=thirdparty%2Fmkosi.git Ubuntu/GPT-Boot: Include dracut bug workaround comment in conf file --- diff --git a/mkosi b/mkosi index 25908bffa..66f85ec5b 100755 --- a/mkosi +++ b/mkosi @@ -1337,13 +1337,15 @@ def install_debian_or_ubuntu(args, workspace, run_build_script, mirror): f.write("#!/bin/sh\n") f.write("exit 101") os.chmod(policyrcd, 0o755) - # Work around "Failed to find module 'crc32c'" dracut issue - # See also: - # - https://github.com/antonio-petricca/buddy-linux/issues/2#issuecomment-404505527 - # - https://bugs.launchpad.net/ubuntu/+source/dracut/+bug/1781143 + dracut_bug_comment = [ + '# Work around "Failed to find module \'crc32c\'" dracut issue\n', + '# See also:\n', + '# - https://github.com/antonio-petricca/buddy-linux/issues/2#issuecomment-404505527\n', + '# - https://bugs.launchpad.net/ubuntu/+source/dracut/+bug/1781143\n', + ] dracut_bug_conf = os.path.join(workspace, "root/etc/dpkg/dpkg.cfg.d/01_no_dracut_10-debian") with open(dracut_bug_conf, "w") as f: - f.writelines(['path-exclude /etc/dracut.conf.d/10-debian.conf\n']) + f.writelines(dracut_bug_comment + ['path-exclude /etc/dracut.conf.d/10-debian.conf\n']) doc_paths = [ '/usr/share/locale',