Commit 52d20b4c authored by Roger Shimizu's avatar Roger Shimizu

Fix script issue specific on a few linkstation devices

The issue occurs because a few linkstation devices use a script to detect
DTB shiped by kernel per version, and that script is also invoked after
kernel package upgrading or removing, which results in all kernel files
are removed including DTB. In this condition the linkstation specific script
fails to detect DTB, so flash-kernel hooks script fails, and finally triggers
kernel package upgrading or removing failing.

The fix is simply return a fake DTB as warning message instead of error,
when the kernel lib directory of the specific version doesn't exist.
parent 56a81439
flash-kernel (3.64) UNRELEASED; urgency=medium
[ Roger Shimizu ]
* Fix script issue specific on a few linkstation devices.
-- Roger Shimizu <> Mon, 18 Apr 2016 19:51:11 +0900
flash-kernel (3.63) unstable; urgency=medium
[ Roger Shimizu ]
......@@ -68,11 +68,18 @@ success() {
fallback_dtb() {
for dtb_name in $dtbs; do
[ ! -f "$dtb" ] &&
echo "$dtb_name"
if [ -f "$dtb" ]; then
echo "$dtb_name"
# Workaround: DTB file will be removed before this script is invoked,
# when upgrading or removing kernel package.
# So here just provide a fake DTB as warning message, instead of error,
# which will block upgrading or removing of kernel package.
[ ! -d /usr/lib/linux-image-$kvers ] &&
echo "kernel_removed?"
if [ $info -gt 0 ] ; then
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment