summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniil Baturin <daniil@baturin.org>2018-12-31 15:11:27 +0100
committerDaniil Baturin <daniil@baturin.org>2018-12-31 15:11:27 +0100
commita05f1ac7500cf124c078ff85b08803581ef2ee08 (patch)
tree98738669c30764042123e1e0407e6153d23961e0
parent01f5093ebddbc0c88b548335ac01368472b5a6c3 (diff)
downloadvyos-build-a05f1ac7500cf124c078ff85b08803581ef2ee08.tar.gz
vyos-build-a05f1ac7500cf124c078ff85b08803581ef2ee08.zip
Update the build-submodules script to use the dehardcoded kernel version.
-rwxr-xr-xscripts/build-submodules2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/build-submodules b/scripts/build-submodules
index 1981759f..c4b24a15 100755
--- a/scripts/build-submodules
+++ b/scripts/build-submodules
@@ -118,7 +118,7 @@ if [ -f "packages/vyos-kernel/Makefile" ]; then
PATCHLEVEL=$(grep "^PATCHLEVEL" Makefile | grep -Eo '[0-9]{1,4}')
SUBLEVEL=$(grep "^SUBLEVEL" Makefile | grep -Eo '[0-9]{1,4}')
ARCH=$(dpkg --print-architecture)
- sed -i.bak "s/--linux-packages .* \\\/--linux-packages linux-image-$VERSION\.$PATCHLEVEL\.$SUBLEVEL \\\/" $ROOTDIR/scripts/live-build-config
+ echo "$VERSION.$PATCHLEVEL.$SUBLEVEL" > $ROOTDIR/data/kernel_version
status_ok
fi
popd > /dev/null