From 96e71324c678e65c2c79c620e24000e61d5c007f Mon Sep 17 00:00:00 2001 From: Justin Cormack Date: Tue, 18 Jul 2017 14:20:59 +0100 Subject: [PATCH] Update moby tool for onshutdown support Signed-off-by: Justin Cormack --- Makefile | 2 +- linuxkit.yml | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 7eeeee63a..8bf8a9411 100644 --- a/Makefile +++ b/Makefile @@ -20,7 +20,7 @@ endif PREFIX?=/usr/local/ -MOBY_COMMIT=4105b7ea313b04bfd930aa45b8a091e8e3a1b2ac +MOBY_COMMIT=a261a33812ec2ba6650dc0b16353f537ade66355 MOBY_VERSION=0.0 bin/moby: tmp_moby_bin.tar | bin tar xf $< diff --git a/linuxkit.yml b/linuxkit.yml index 46f9ee033..35872efd1 100644 --- a/linuxkit.yml +++ b/linuxkit.yml @@ -14,6 +14,10 @@ onboot: - name: dhcpcd image: linuxkit/dhcpcd:4b7b8bb024cebb1bbb9c8026d44d7cbc8e202c41 command: ["/sbin/dhcpcd", "--nobackground", "-f", "/dhcpcd.conf", "-1"] +onshutdown: + - name: shutdown + image: busybox:latest + command: ["/bin/echo", "so long and thanks for all the fish"] services: - name: getty image: linuxkit/getty:deb9332e786e72591bd9be200bcc9c7a534eb754