From f176e443fdaab575b9fb2461fa65bda6430b6cb4 Mon Sep 17 00:00:00 2001 From: Dieter Reuter Date: Sat, 16 Jan 2016 22:17:26 +0100 Subject: [PATCH] Add hypriot-resize-rootdisk.service --- builder/build.sh | 2 +- .../lib/systemd/system/hypriot-resize-rootdisk.service | 9 +++++++++ .../hypriot-resize-rootdisk.service | 1 + .../usr/local/bin/hypriot-resize-rootdisk} | 0 4 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 builder/files/lib/systemd/system/hypriot-resize-rootdisk.service create mode 120000 builder/files/lib/systemd/system/multi-user.target.wants/hypriot-resize-rootdisk.service rename builder/{resize-disk-odroid.sh => files/usr/local/bin/hypriot-resize-rootdisk} (100%) diff --git a/builder/build.sh b/builder/build.sh index 16592d5..c295900 100755 --- a/builder/build.sh +++ b/builder/build.sh @@ -50,7 +50,7 @@ mount -t sysfs none $BUILD_PATH/sys #---modify image--- # modify/add image files directly -cp /builder/resize-disk-odroid.sh $BUILD_PATH/root/ +cp -R /builder/files/* $BUILD_PATH/ # modify image in chroot environment chroot $BUILD_PATH /bin/bash