[lxc-devel] [lxc-ci/master] images: Fix Ubuntu Core 18 init

monstermunchkin on Github lxc-bot at linuxcontainers.org
Mon Jun 24 14:18:43 UTC 2019


A non-text attachment was scrubbed...
Name: not available
Type: text/x-mailbox
Size: 356 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20190624/3ba45860/attachment.bin>
-------------- next part --------------
From 62e546c6336d79bb9b06d016e1009a1b0396f2e8 Mon Sep 17 00:00:00 2001
From: Thomas Hipp <thomas.hipp at canonical.com>
Date: Mon, 24 Jun 2019 16:13:36 +0200
Subject: [PATCH] images: Fix Ubuntu Core 18 init

Signed-off-by: Thomas Hipp <thomas.hipp at canonical.com>
---
 images/ubuntu-core/init | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/images/ubuntu-core/init b/images/ubuntu-core/init
index ce936cb..353c89a 100755
--- a/images/ubuntu-core/init
+++ b/images/ubuntu-core/init
@@ -11,7 +11,7 @@ fi
 
 # Grab the snaps version
 SNAP_KERNEL=$(grep pc-kernel_ /system-data/var/lib/snapd/seed/seed.yaml | awk '{print $NF}')
-SNAP_CORE=$(grep core_ /system-data/var/lib/snapd/seed/seed.yaml | awk '{print $NF}')
+SNAP_CORE=$(grep 'core[0-9]\{0,2\}_' /system-data/var/lib/snapd/seed/seed.yaml | awk '{print $NF}')
 
 # Attempt to parse the grub environment
 new_snap_mode=""


More information about the lxc-devel mailing list