From 41bf6970e5c99d657153da8023455be2e858257f Mon Sep 17 00:00:00 2001 From: Jeffrey Townsend Date: Mon, 2 Apr 2018 17:41:02 +0000 Subject: [PATCH] Add option for local script execution during autoboot. --- .../base/all/initrds/loader-initrd-files/src/bin/autoboot | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/base/all/initrds/loader-initrd-files/src/bin/autoboot b/packages/base/all/initrds/loader-initrd-files/src/bin/autoboot index 79bfa3fc..6638708a 100644 --- a/packages/base/all/initrds/loader-initrd-files/src/bin/autoboot +++ b/packages/base/all/initrds/loader-initrd-files/src/bin/autoboot @@ -21,6 +21,9 @@ if [ -f /etc/onl/abort ]; then exit 1 fi +if [ -f /mnt/onl/boot/autoboot ]; then + . /mnt/onl/boot/autoboot +fi # # The maximum number of times we will retry autobooting before @@ -118,4 +121,3 @@ else msg_error "BOOTMODE $BOOTMODE is not implemented. Autobooting cannot continue." exit 1 fi -