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

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 e7e2f40472c30e8b7f579529fcf16e0a5ee52b3a Mon Sep 17 00:00:00 2001
From: Thomas Hipp <thomas.h...@canonical.com>
Date: Thu, 20 Feb 2020 10:53:29 +0100
Subject: [PATCH] images: Add Debian VM support

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

diff --git a/images/debian.yaml b/images/debian.yaml
index ba57720..34663bf 100644
--- a/images/debian.yaml
+++ b/images/debian.yaml
@@ -847,6 +847,23 @@ files:
 
      source /etc/network/interfaces.d/*.cfg
 
+ - path: /etc/default/grub.d/50-lxd.cfg
+   generator: dump
+   content: |-
+     # Set the recordfail timeout
+     GRUB_RECORDFAIL_TIMEOUT=0
+
+     # Do not wait on grub prompt
+     GRUB_TIMEOUT=0
+
+     # Set the default commandline
+     GRUB_CMDLINE_LINUX_DEFAULT="console=tty1 console=ttyS0"
+
+     # Set the grub console type
+     GRUB_TERMINAL=console
+   types:
+     - vm
+
  - name: meta-data
    generator: cloud-init
    variants:
@@ -867,6 +884,15 @@ files:
    variants:
     - cloud
 
+ - name: lxd-agent
+   generator: lxd-agent
+   types:
+     - vm
+
+ - generator: fstab
+   types:
+    - vm
+
 packages:
   manager: apt
   update: true
@@ -892,6 +918,15 @@ packages:
       variants:
        - cloud
 
+    - packages:
+      - grub-efi
+      - linux-image-amd64
+      - shim-signed
+      action: install
+      types:
+        - vm
+
+
   repositories:
     - name: sources.list
       url: |-
@@ -922,5 +957,19 @@ actions:
       # Cleanup temporary shadow paths
       rm /etc/*-
 
+  - trigger: post-files
+    action: |-
+      #!/bin/sh
+      set -eux
+
+      update-grub
+      # This will create EFI/BOOT
+      grub-install --uefi-secure-boot --target=x86_64-efi --no-nvram 
--removable
+      # This will create EFI/debian
+      grub-install --uefi-secure-boot --target=x86_64-efi --no-nvram
+      update-grub
+    types:
+      - vm
+
 mappings:
   architecture_map: debian
_______________________________________________
lxc-devel mailing list
lxc-devel@lists.linuxcontainers.org
http://lists.linuxcontainers.org/listinfo/lxc-devel

Reply via email to