[lxc-devel] [lxc-ci/master] Add init script to emerge --sync at first boot.
pajot on Github
lxc-bot at linuxcontainers.org
Sun Aug 2 23:45:51 UTC 2020
A non-text attachment was scrubbed...
Name: not available
Type: text/x-mailbox
Size: 4037 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20200802/b07212d3/attachment.bin>
-------------- next part --------------
From a28133751a1d4c66439d41f39c2534f6c3d07ddc Mon Sep 17 00:00:00 2001
From: Stephen Bosch <stephen.bosch at gmail.com>
Date: Mon, 3 Aug 2020 01:39:31 +0200
Subject: [PATCH] Add init script to emerge --sync at first boot.
---
images/gentoo.yaml | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/images/gentoo.yaml b/images/gentoo.yaml
index 1eceadc..dcdd17e 100644
--- a/images/gentoo.yaml
+++ b/images/gentoo.yaml
@@ -343,6 +343,15 @@ files:
rc_keyword="-stop"
config_eth0="dhcp"
+- path: /etc/local.d/repo_check.start
+ generator: dump
+ mode: 700
+ content: |-
+ #!/bin/bash
+ test -f $(portageq get_repo_path / gentoo)/header.txt || exit 0
+ emerge --sync
+ chmod -x /etc/local.d/repo-check.start
+
- name: meta-data
generator: cloud-init
variants:
More information about the lxc-devel
mailing list