Done as follows:

    find -name build.yml | xargs dirname | while read d ; do
        t=$(linuxkit pkg show-tag $d)
        ./scripts/update-component-sha.sh --image ${t%:*} ${t#*:}
    done
    git commit -s test pkg tools blueprints examples projects/kubernetes projects/swarmd docs linuxkit.yml Makefile src

This explicitly excludes projects/* which I did not know whether to update.

Then:

    git reset --hard
    for i in init runc containerd ca-certificates sysctl dhcpcd getty rngd ; do
        o=$(git grep -h "\(image:\|-\) *linuxkit/$i:[0-9a-f]\{40\}" origin/master:linuxkit.yml | awk '// { print $2 }')
        n=$(linuxkit pkg show-tag pkg/$i)
        ./scripts/update-component-sha.sh "$o" "$n"
    done
    git commit --amend projects

This updates any projects which were using components with the same hash as the
top-level linuxkit.yml.

Signed-off-by: Ian Campbell <ijc@docker.com>
This commit is contained in:
Ian Campbell
2017-10-10 13:04:58 +01:00
parent 694a7876ef
commit 4df5d394e8
282 changed files with 872 additions and 872 deletions

View File

@@ -2,11 +2,11 @@ kernel:
image: linuxkit/kernel:4.9.53
cmdline: "console=ttyS0"
init:
- linuxkit/init:7804129bd06218b72c298139a25698a748d253c6
- linuxkit/runc:a1b564248a0d0b118c11e61db9f84ecf41dd2d2a
- linuxkit/init:98e95fb67e8afcf02c09ba927e4b357fec42977a
- linuxkit/runc:991ef358ad8fc1111d64f4d8071f2009cc561f6a
onboot:
- name: poweroff
image: linuxkit/poweroff:1e9876c682c74d0602b7647c628bb0875fb13998
image: linuxkit/poweroff:ffd3f539a6f4e67d4cd4ff36503636de35edd7b2
command: ["/bin/sh", "/poweroff.sh", "10"]
trust:
org:

View File

@@ -2,12 +2,12 @@ kernel:
image: linuxkit/kernel:4.9.53
cmdline: "console=ttyS0"
init:
- linuxkit/init:7804129bd06218b72c298139a25698a748d253c6
- linuxkit/runc:a1b564248a0d0b118c11e61db9f84ecf41dd2d2a
- linuxkit/containerd:417f83f7b8dc1fa36acf90effe44f99c7397480a
- linuxkit/init:98e95fb67e8afcf02c09ba927e4b357fec42977a
- linuxkit/runc:991ef358ad8fc1111d64f4d8071f2009cc561f6a
- linuxkit/containerd:eaf0d615cfceb9d854408dd3c80429ee8ac4d051
services:
- name: acpid
image: linuxkit/acpid:79e5c20de96e1633c9c40935b99dde45aefba37b
image: linuxkit/acpid:6e3f0c5deca1633230dce9a35b67e1f61f05c47a
trust:
org:
- linuxkit