From 27c18755db113d3561b6c2e52586c05ca616a46f Mon Sep 17 00:00:00 2001 From: "Carl D. Roth" Date: Wed, 18 May 2016 12:52:17 -0700 Subject: [PATCH] Deprecated /etc/onl/mounts, /etc/onl/net - also make the platform boot hooks optional --- .../all/initrds/loader-initrd-files/src/lib/platform-detect | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/packages/base/all/initrds/loader-initrd-files/src/lib/platform-detect b/packages/base/all/initrds/loader-initrd-files/src/lib/platform-detect index 446b3c5c..3c1d43d8 100644 --- a/packages/base/all/initrds/loader-initrd-files/src/lib/platform-detect +++ b/packages/base/all/initrds/loader-initrd-files/src/lib/platform-detect @@ -69,17 +69,15 @@ if [ ! -f /etc/onl/platform ]; then echo "unknown" > /etc/onl/platform fi -touch /etc/onl/net /etc/onl/block /etc/onl/mounts +touch /etc/onl/block platform="$(cat /etc/onl/platform)" if [ -d /lib/platform-config/${platform} ]; then - # Grab and source the platform boot configuration file + # Optionally source a platform boot configuration file x=/lib/platform-config/${platform}/onl/boot/${platform} if [ -f $x ]; then . $x - else - echo "The platform boot configuration for the current platform is broken, invalid, or missing." > /etc/onl/abort fi else echo "The current platform (${platform}) is not supported in this version." > /etc/onl/abort