]> git.ipfire.org Git - thirdparty/mkosi.git/commitdiff
Ubuntu/GPT-Boot: Include dracut bug workaround comment in conf file 268/head
authorElias Probst <e.probst@ssc-services.de>
Thu, 18 Oct 2018 23:14:06 +0000 (01:14 +0200)
committerElias Probst <e.probst@ssc-services.de>
Thu, 18 Oct 2018 23:14:30 +0000 (01:14 +0200)
mkosi

diff --git a/mkosi b/mkosi
index 25908bffad97ff2c71d59563d66927dcd7fef1fc..66f85ec5b9ea959fc3e51198721a60d21f485377 100755 (executable)
--- 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',