bug script: Warn if the running kernel matches the ABI name of the package but is not the installed version
svn path=/dists/sid/linux/; revision=22032
This commit is contained in:
parent
309a7c6e93
commit
cf4020e229
|
@ -160,6 +160,8 @@ linux (3.16.7-1) UNRELEASED; urgency=medium
|
||||||
architectures (Closes: #766635)
|
architectures (Closes: #766635)
|
||||||
* [hppa] udeb: Add many more module packages (Closes: #766793)
|
* [hppa] udeb: Add many more module packages (Closes: #766793)
|
||||||
* iwlwifi: Backport firmware monitor from 3.17 (Closes: #767088)
|
* iwlwifi: Backport firmware monitor from 3.17 (Closes: #767088)
|
||||||
|
* bug script: Warn if the running kernel matches the ABI name of the
|
||||||
|
package but is not the installed version
|
||||||
|
|
||||||
[ Mauricio Faria de Oliveira ]
|
[ Mauricio Faria de Oliveira ]
|
||||||
* [ppc64el] Disable CONFIG_CMDLINE{,_BOOL} usage for setting consoles
|
* [ppc64el] Disable CONFIG_CMDLINE{,_BOOL} usage for setting consoles
|
||||||
|
|
|
@ -395,7 +395,7 @@ install-image_$(ARCH)_$(FEATURESET)_$(FLAVOUR)_plain_bug:
|
||||||
dh_installdirs usr/share/bug/$(PACKAGE_NAME)
|
dh_installdirs usr/share/bug/$(PACKAGE_NAME)
|
||||||
dh_install debian/templates/image.plain.bug/* usr/share/bug/$(PACKAGE_NAME)
|
dh_install debian/templates/image.plain.bug/* usr/share/bug/$(PACKAGE_NAME)
|
||||||
chmod 755 $(PACKAGE_DIR)/usr/share/bug/$(PACKAGE_NAME)/script
|
chmod 755 $(PACKAGE_DIR)/usr/share/bug/$(PACKAGE_NAME)/script
|
||||||
echo "RELEASE='$(ABI_VERSION)'" > $(PACKAGE_DIR)/usr/share/bug/$(PACKAGE_NAME)/info
|
printf "RELEASE='$(ABI_VERSION)'\nDISTRIBUTOR='$(DISTRIBUTOR)'\nSOURCEVERSION='$(SOURCEVERSION)'\n" > $(PACKAGE_DIR)/usr/share/bug/$(PACKAGE_NAME)/info
|
||||||
|
|
||||||
install-image-dbg_$(ARCH)_$(FEATURESET)_$(FLAVOUR): REAL_VERSION = $(ABINAME)$(LOCALVERSION)
|
install-image-dbg_$(ARCH)_$(FEATURESET)_$(FLAVOUR): REAL_VERSION = $(ABINAME)$(LOCALVERSION)
|
||||||
install-image-dbg_$(ARCH)_$(FEATURESET)_$(FLAVOUR): ABI_VERSION = $(ABINAME_INTERNAL)$(LOCALVERSION)
|
install-image-dbg_$(ARCH)_$(FEATURESET)_$(FLAVOUR): ABI_VERSION = $(ABINAME_INTERNAL)$(LOCALVERSION)
|
||||||
|
|
|
@ -14,6 +14,26 @@ for file in "$dir"/include-*; do
|
||||||
done
|
done
|
||||||
|
|
||||||
if [ "$RELEASE" == "$(uname -r)" ]; then
|
if [ "$RELEASE" == "$(uname -r)" ]; then
|
||||||
|
running_ver="$(uname -v)"
|
||||||
|
running_ver="${running_ver#* $DISTRIBUTOR }"
|
||||||
|
running_ver="${running_ver%% *}"
|
||||||
|
if [ "$running_ver" != "$SOURCEVERSION" ]; then
|
||||||
|
cat <<EOF
|
||||||
|
You have installed version $SOURCEVERSION of
|
||||||
|
linux-image-$RELEASE, but version $running_ver is currently
|
||||||
|
running.
|
||||||
|
|
||||||
|
You should reboot to complete the upgrade. Until you do this, some
|
||||||
|
modules may fail to load. This is NOT a bug.
|
||||||
|
|
||||||
|
If you have already rebooted, check your boot loader configuration.
|
||||||
|
|
||||||
|
EOF
|
||||||
|
yesno "Do you still want to report a bug? " nop
|
||||||
|
if [ "$REPLY" = nop ]; then
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
fi
|
||||||
for hook in ${hooks[@]}; do
|
for hook in ${hooks[@]}; do
|
||||||
add_$hook
|
add_$hook
|
||||||
done
|
done
|
||||||
|
|
Loading…
Reference in New Issue