From b19ec2022773eebaf7cc7f41607ef553835174a0 Mon Sep 17 00:00:00 2001 From: Jeffrey Townsend Date: Tue, 19 Jul 2016 14:35:32 +0000 Subject: [PATCH] Boot-time package installation option. Packages present and listed in /mnt/onl/data/install-debs/list will be installed. This faciliates development and boot-patching of existing systems. --- packages/base/all/boot.d/src/53.install-debs | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100755 packages/base/all/boot.d/src/53.install-debs diff --git a/packages/base/all/boot.d/src/53.install-debs b/packages/base/all/boot.d/src/53.install-debs new file mode 100755 index 00000000..e31d382d --- /dev/null +++ b/packages/base/all/boot.d/src/53.install-debs @@ -0,0 +1,16 @@ +#!/bin/sh +############################################################ +PACKAGE_DIR=/mnt/onl/data/install-debs +PACKAGE_LIST="$PACKAGE_DIR/list" + +if [ -e "$PACKAGE_LIST" ]; then + for package in $(cat $PACKAGE_LIST); do + echo "Installing packages $package..." + if ! dpkg -i "$PACKAGE_DIR/$package"; then + echo "Failed." + exit 1 + fi + done +fi + +