[lxc-devel] [lxc-ci/master] images/fedora: Change kernelopts for Fedora 33

monstermunchkin on Github lxc-bot at linuxcontainers.org
Thu Oct 29 13:13:03 UTC 2020


A non-text attachment was scrubbed...
Name: not available
Type: text/x-mailbox
Size: 303 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20201029/b004a080/attachment.bin>
-------------- next part --------------
From d1fde0451110877024fb442c73dc1f07b8c8aeed Mon Sep 17 00:00:00 2001
From: Thomas Hipp <thomas.hipp at canonical.com>
Date: Thu, 29 Oct 2020 14:12:35 +0100
Subject: [PATCH] images/fedora: Change kernelopts for Fedora 33

This fixes the issue where a Fedora 33 VM wouldn't boot due to incorrect
kernel opts.

Signed-off-by: Thomas Hipp <thomas.hipp at canonical.com>
---
 images/fedora.yaml | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/images/fedora.yaml b/images/fedora.yaml
index f4261bb..95c002b 100644
--- a/images/fedora.yaml
+++ b/images/fedora.yaml
@@ -293,6 +293,17 @@ actions:
   types:
   - vm
 
+- trigger: post-files
+  action: |-
+    #!/bin/sh
+    set -eux
+
+    sed -ri 's#^options .+#options $kernelopts#g' /boot/loader/entries/*
+  types:
+  - vm
+  releases:
+  - 33
+
 - trigger: post-files
   action: |-
     #!/bin/sh


More information about the lxc-devel mailing list