diff --git a/debian/templates/image.postinst.in b/debian/templates/image.postinst.in index 00b488e8f..01da283b0 100755 --- a/debian/templates/image.postinst.in +++ b/debian/templates/image.postinst.in @@ -16,7 +16,6 @@ $|=1; # Predefined values: my $version = "@abiname@@localversion@"; -my $arch = "@arch@"; my $link_in_boot = ""; my $no_symlink = ""; my $do_symlink = "Yes"; # target machine defined @@ -25,7 +24,6 @@ my $mkimage = ""; # command to generate the initrd image my $use_hard_links = ''; # hardlinks do not work across fs boundaries my $postinst_hook = ''; #Normally we do not my $minimal_swap = ''; # Do not swap symlinks -my $package_name = "linux-image-$version"; #known variables my $image_dest = "/"; diff --git a/debian/templates/image.postrm.in b/debian/templates/image.postrm.in index 45fbf8ed3..23ee343a1 100755 --- a/debian/templates/image.postrm.in +++ b/debian/templates/image.postrm.in @@ -24,7 +24,6 @@ my $version = "@abiname@@localversion@"; my $link_in_boot = ""; my $kimage = "@image-stem@"; my $postrm_hook = ''; #Normally we do not -my $package_name = "linux-image-$version"; #known variables my $image_dest = "/"; diff --git a/debian/templates/image.preinst.in b/debian/templates/image.preinst.in index 81bc691ce..aa52aa088 100755 --- a/debian/templates/image.preinst.in +++ b/debian/templates/image.preinst.in @@ -10,7 +10,6 @@ $|=1; my $version = "@abiname@@localversion@"; my $kimage = "@image-stem@"; my $preinst_hook = ''; #Normally we do not -my $package_name = "linux-image-$version"; #known variables my $realimageloc = "/boot/"; diff --git a/debian/templates/image.prerm.in b/debian/templates/image.prerm.in index df10e1113..aa5976404 100755 --- a/debian/templates/image.prerm.in +++ b/debian/templates/image.prerm.in @@ -20,12 +20,10 @@ my $realimageloc = "/boot/"; my $CONF_LOC = '/etc/kernel-img.conf'; # Variables used -my $image=''; my $ret=0; my $seen=''; my $answer=''; my $running = ''; -my $WouldInvalidate = 0; # Ignore all invocations uxcept when called on to remove exit 0 unless ($ARGV[0] && $ARGV[0] =~ /remove/) ;