[lxc-devel] [distrobuilder/master] data: Fix core16 initrd

stgraber on Github lxc-bot at linuxcontainers.org
Tue Mar 24 15:10:05 UTC 2020


A non-text attachment was scrubbed...
Name: not available
Type: text/x-mailbox
Size: 363 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20200324/4f327ee5/attachment.bin>
-------------- next part --------------
From 9910f27109c19829fdbc159ebd9ecbd9d87acfb3 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?St=C3=A9phane=20Graber?= <stgraber at ubuntu.com>
Date: Tue, 24 Mar 2020 11:09:37 -0400
Subject: [PATCH] data: Fix core16 initrd
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Signed-off-by: Stéphane Graber <stgraber at ubuntu.com>
---
 data/ubuntu-core/init | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/data/ubuntu-core/init b/data/ubuntu-core/init
index 5e45835..8ecbacb 100755
--- a/data/ubuntu-core/init
+++ b/data/ubuntu-core/init
@@ -48,6 +48,9 @@ cd /initrd
 if [ ! -e "/initrd/scripts/" ]; then
     (/bin/cpio -t; lzcat | /bin/cpio -id) < /mnt/initrd.img >/dev/null 2>&1 || true
 fi
+if [ ! -e "/initrd/scripts/" ]; then
+    (/bin/cpio -t; /bin/cpio -t; lzcat | /bin/cpio -id) < /mnt/initrd.img >/dev/null 2>&1 || true
+fi
 if [ ! -e "/initrd/scripts/" ]; then
     (/bin/cpio -t; /bin/cpio -id) < /mnt/initrd.img >/dev/null 2>&1 || true
 fi


More information about the lxc-devel mailing list