[lxc-devel] [lxc-templates/master] plamo: remove unnecesssary initpkg execution at container config

tenforward on Github lxc-bot at linuxcontainers.org
Fri Aug 2 03:21:21 UTC 2019


A non-text attachment was scrubbed...
Name: not available
Type: text/x-mailbox
Size: 500 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20190801/8bd99dbc/attachment.bin>
-------------- next part --------------
From 50a41ba878f8ff2c5b7ce3dc39d989aac9865131 Mon Sep 17 00:00:00 2001
From: KATOH Yasufumi <karma at jazz.email.ne.jp>
Date: Fri, 2 Aug 2019 12:12:03 +0900
Subject: [PATCH] plamo: remove unnecesssary initpkg execution at container
 config

We do not have to re-execute initpkg at container configuration.
The remaining initpkg script will be executed at container startup.

Signed-off-by: KATOH Yasufumi <karma at jazz.email.ne.jp>
---
 templates/lxc-plamo.in | 8 +-------
 1 file changed, 1 insertion(+), 7 deletions(-)

diff --git a/templates/lxc-plamo.in b/templates/lxc-plamo.in
index 2145d01..4a023ae 100644
--- a/templates/lxc-plamo.in
+++ b/templates/lxc-plamo.in
@@ -281,18 +281,12 @@ configure_plamo7() {
 	SERVICE="dhclient"
 	EOF
 
-    # initpkg
+    # remove initpkg that does not exec
     noexec="shadow netconfig7 eudev openssh"
     for f in $noexec
     do
       rm -f $rootfs/var/log/initpkg/"$f"
     done
-    pushd $rootfs
-    for f in var/log/initpkg/*
-    do
-      chroot $rootfs sh ./$f
-    done
-    popd
 }
 
 configure_plamo() {


More information about the lxc-devel mailing list