The following pull request was submitted through Github.
It can be accessed and reviewed at: https://github.com/lxc/lxc-ci/pull/131

This e-mail was sent by the LXC bot, direct replies will not reach the author
unless they happen to be subscribed to this list.

=== Description (from pull-request) ===
Signed-off-by: Thomas Hipp <thomas.h...@canonical.com>
From d44160807573bdf711caebd227558041579518a5 Mon Sep 17 00:00:00 2001
From: Thomas Hipp <thomas.h...@canonical.com>
Date: Fri, 6 Mar 2020 15:18:35 +0100
Subject: [PATCH] images/centos: Add /sys/firmware workaround for VMs

Signed-off-by: Thomas Hipp <thomas.h...@canonical.com>
---
 images/centos.yaml | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/images/centos.yaml b/images/centos.yaml
index bf58e67..b66d6df 100644
--- a/images/centos.yaml
+++ b/images/centos.yaml
@@ -653,12 +653,18 @@ actions:
     #!/bin/sh
     set -eux
 
+    mount -t tmpfs tmpfs /sys/firmware
+    mkdir /sys/firmware/efi
+
     # Regenerate initramfs
     kver=$(ls /boot/initramfs-*.img | sed -r 's#.*initramfs-(.+)\.img#\1#')
     dracut --kver "${kver}" -f
 
     target="$(readlink -f /etc/grub2-efi.cfg)"
     grub2-mkconfig -o "${target}"
+
+    umount /sys/firmware
+
     sed -i "s#root=[^ ]*#root=/dev/sda2#g" "${target}"
   types:
   - vm
_______________________________________________
lxc-devel mailing list
lxc-devel@lists.linuxcontainers.org
http://lists.linuxcontainers.org/listinfo/lxc-devel

Reply via email to