diff --git a/debian/changelog b/debian/changelog index 7d6ea49f1..f31b6e31e 100644 --- a/debian/changelog +++ b/debian/changelog @@ -20,6 +20,7 @@ linux (4.6-1~exp2) UNRELEASED; urgency=medium * [mips{,64}r6{,el}] Add kernel flavours for the Malta platform; build linux-libc-dev and tools packages (Closes: #825024; thanks to YunQiang Su) * [mips*/*-malta] udeb: Add ata-modules package + * linux-image: Stop setting $STEM in environment for maintainer script hooks [ Aurelien Jarno ] * [mips64{,el}] Set CPU to MIPS64 R2. diff --git a/debian/templates/image.postinst.in b/debian/templates/image.postinst.in index fd8ed7872..c1d56d6bf 100755 --- a/debian/templates/image.postinst.in +++ b/debian/templates/image.postinst.in @@ -496,9 +496,6 @@ else { } } -# set the env var stem -$ENV{'STEM'} = "linux"; - sub run_hook { my $type = shift; my $script = shift; diff --git a/debian/templates/image.postrm.in b/debian/templates/image.postrm.in index 1530c5878..45fbf8ed3 100755 --- a/debian/templates/image.postrm.in +++ b/debian/templates/image.postrm.in @@ -144,9 +144,6 @@ sub image_magic { } } -# set the env var stem -$ENV{'STEM'} = "linux"; - sub system_failure_message { if ($? < 0) { return "$!"; diff --git a/debian/templates/image.preinst.in b/debian/templates/image.preinst.in index 6beee566f..81bc691ce 100755 --- a/debian/templates/image.preinst.in +++ b/debian/templates/image.preinst.in @@ -36,9 +36,6 @@ if (-r "$CONF_LOC" && -f "$CONF_LOC" ) { } } -# set the env var stem -$ENV{'STEM'} = "linux"; - sub system_failure_message { if ($? < 0) { return "$!"; diff --git a/debian/templates/image.prerm.in b/debian/templates/image.prerm.in index 5f2ee6761..46c709dd6 100755 --- a/debian/templates/image.prerm.in +++ b/debian/templates/image.prerm.in @@ -81,9 +81,6 @@ if ($running eq $version) { chdir("/") or die "could not chdir to /:$!\n"; -# set the env var stem -$ENV{'STEM'} = "linux"; - sub system_failure_message { if ($? < 0) { return "$!";