mirror of
https://github.com/vyos/vyos-build.git
synced 2025-10-01 20:28:40 +02:00
Update the build-submodules script to use the dehardcoded kernel version.
This commit is contained in:
parent
01f5093ebd
commit
a05f1ac750
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user