[lxc-devel] [distrobuilder/master] ubuntu-core: Remove dead code

stgraber on Github lxc-bot at linuxcontainers.org
Tue Jul 9 18:34:29 UTC 2019


A non-text attachment was scrubbed...
Name: not available
Type: text/x-mailbox
Size: 792 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20190709/3ea4b612/attachment.bin>
-------------- next part --------------
From 44c8173e208604a3bd18b1fd9bd434dae1083ca6 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?St=C3=A9phane=20Graber?= <stgraber at ubuntu.com>
Date: Tue, 9 Jul 2019 14:32:50 -0400
Subject: [PATCH] ubuntu-core: Remove dead code
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 | 9 ---------
 1 file changed, 9 deletions(-)

diff --git a/data/ubuntu-core/init b/data/ubuntu-core/init
index 03ad341..5e45835 100755
--- a/data/ubuntu-core/init
+++ b/data/ubuntu-core/init
@@ -39,15 +39,6 @@ else
     printf "#######################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################" >> /writable/system-data/boot/grub/grubenv
 fi
 
-# Make sure the snap symlinks exist
-if [ -e "../seed/snaps/${SNAP_KERNEL}" ]; then
-    ln -fs ../seed/snaps/${SNAP_KERNEL} /writable/system-data/var/lib/snapd/snaps/${SNAP_KERNEL}
-fi
-
-if [ -e "../seed/snaps/${SNAP_CORE}" ]; then
-    ln -fs ../seed/snaps/${SNAP_CORE} /writable/system-data/var/lib/snapd/snaps/${SNAP_CORE}
-fi
-
 # Extract initramfs
 mkdir -p /mnt /initrd
 mount -t tmpfs tmpfs /initrd


More information about the lxc-devel mailing list