From ef5fe6fcfe2a7de050edef87ad5cef46b38892d1 Mon Sep 17 00:00:00 2001 From: Elias Probst Date: Fri, 19 Oct 2018 01:14:06 +0200 Subject: [PATCH] Ubuntu/GPT-Boot: Include dracut bug workaround comment in conf file --- mkosi | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) 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', -- 2.47.2