aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas Dechesne <nicolas.dechesne@linaro.org>2018-06-15 14:19:37 +0000
committerNicolas Dechesne <nicolas.dechesne@linaro.org>2018-06-15 14:19:37 +0000
commitf93e3087e6107a333e7f109433d24fc75b791948 (patch)
treebb4f18990950c0f4e288d12b5c471eb893699997
parentb5bf830f66dd85bfcde441dcbabd0a785e1b93e3 (diff)
DB410c: DB820c: mark Linux kernel package as held
By default, hold the kernel debian package. To work properly, the kernel Image and the kernel modules must be in sync. On Dragonboards, the kernel Image is stored in the boot partition as an Android boot image, while the kernel modules reside in the rootfs in /lib/modules. When the kernel package is upgraded, new modules are installed in the rootfs, however the kernel Image in the boot partition is not updating, which can lead to kernel/module mismatch. Until we implement a better option, we hold the kernel package so that it is not ugpraded. We will provide instruction to un-hold the package for power users that understand the risks they are taking. Change-Id: Ic18e753ea33e1183d3655ed00d2fe7d5a9370c65 Signed-off-by: Nicolas Dechesne <nicolas.dechesne@linaro.org>
-rwxr-xr-xscripts/DB410C/21-customize5
-rwxr-xr-xscripts/DB820C/21-customize5
2 files changed, 10 insertions, 0 deletions
diff --git a/scripts/DB410C/21-customize b/scripts/DB410C/21-customize
index e3b7d15..497b6dc 100755
--- a/scripts/DB410C/21-customize
+++ b/scripts/DB410C/21-customize
@@ -23,6 +23,11 @@ else
chroot $target /usr/sbin/update-initramfs -c -k ${KVERS}
fi
+# Hold the kernel package to avoid kernel upgrade
+# This is a workaround to avoid upgrade the kernel (hence the modules in /lib/modules)
+# without updating the boot image
+$ROOTCMD apt-mark hold linux-image-${KVERS}
+
OUT=$FAI/out
mkdir -p $OUT
cp $target/boot/vmlinuz-${KVERS} $OUT/
diff --git a/scripts/DB820C/21-customize b/scripts/DB820C/21-customize
index e3a1053..6355ae7 100755
--- a/scripts/DB820C/21-customize
+++ b/scripts/DB820C/21-customize
@@ -13,6 +13,11 @@ else
chroot $target /usr/sbin/update-initramfs -c -k ${KVERS}
fi
+# Hold the kernel package to avoid kernel upgrade
+# This is a workaround to avoid upgrade the kernel (hence the modules in /lib/modules)
+# without updating the boot image
+$ROOTCMD apt-mark hold linux-image-${KVERS}
+
OUT=$FAI/out
mkdir -p $OUT
cp $target/boot/vmlinuz-${KVERS} $OUT/