[elbe-devel] [PATCH v2 3/4] init: lock the elbe version to be installed into the initvm
Torben Hohn
torben.hohn at linutronix.de
Fri Nov 23 12:17:23 CET 2018
specify elbe version, that should be installed into initvm using
preseed. This requires us to lock the version for all elbe
packages, which would normally be pulled as dependencies.
Signed-off-by: Torben Hohn <torben.hohn at linutronix.de>
---
elbepack/init/preseed.cfg.mako | 10 ++++++++--
1 file changed, 8 insertions(+), 2 deletions(-)
diff --git a/elbepack/init/preseed.cfg.mako b/elbepack/init/preseed.cfg.mako
index 052be882..4ad9e39a 100644
--- a/elbepack/init/preseed.cfg.mako
+++ b/elbepack/init/preseed.cfg.mako
@@ -6,6 +6,7 @@
## SPDX-License-Identifier: GPL-3.0-or-later
##
<%
+ from elbepack.version import elbe_version, elbe_initvm_packagelist
from elbepack.filesystem import size_to_int
swap = size_to_int(prj.text('swap-size', default=defs, key='swap-size')) / 1024 / 1024
%>
@@ -135,8 +136,13 @@ apt-mirror-setup apt-setup/use_mirror boolean false
return pkgname + '/' + pkgrel
%>
d-i finish-install/reboot_in_progress note
-d-i pkgsel/include string rng-tools btrfs-tools openssh-client\
- debathena-transform-lighttpd elbe-soap python-elbe-buildenv\
+d-i pkgsel/include string rng-tools \
+ btrfs-tools \
+ openssh-client \
+ debathena-transform-lighttpd \
+% for p in elbe_initvm_packagelist:
+ ${p}=${elbe_version}* \
+% endfor
% for n in pkgs:
% if n.tag == "pkg":
${pkg2preseed (n)}\
--
2.11.0
More information about the elbe-devel
mailing list