Commit Graph

91 Commits

Author SHA1 Message Date
Maximilian Attems 29b930fa70 fix postinst + add forgotten changelog entry.
this check is superflous and looking for wrong path.
As we depend on an initramfs generator the failure of generating
would have happened already earlier.

svn path=/dists/trunk/linux-2.6/; revision=17459
2011-05-19 12:22:08 +00:00
Ben Hutchings 260410c316 Remove now-unused variable
svn path=/dists/trunk/linux-2.6/; revision=17426
2011-05-16 04:12:02 +00:00
Ben Hutchings efa8ec1d0c Remove check for do_bootloader
This warning was present in squeeze and should not need to be repeated.

svn path=/dists/trunk/linux-2.6/; revision=17425
2011-05-16 04:07:16 +00:00
Ben Hutchings 5f375916e4 postinst: Remove specific support for running a ramdisk creator
Warn users that specify one in /etc/kernel-img.conf.
Require initramfs-tools >= 0.99, which does not depend on being directly
invoked.

svn path=/dists/trunk/linux-2.6/; revision=17424
2011-05-16 03:57:43 +00:00
Ben Hutchings 871633716d Revert "postinst: Remove specific support for running a ramdisk creator" etc.
initramfs-tools still assumes that official kernel packages will call
it specifically and does nothing in the postinst hook if it recognises
that it has been called by an official package.  Therefore we cannot
make this change yet.


svn path=/dists/trunk/linux-2.6/; revision=16981
2011-03-04 04:14:38 +00:00
Ben Hutchings e91b23c9a7 Direct users to hook script documentation in case their other packages have not been updated
svn path=/dists/trunk/linux-2.6/; revision=16979
2011-03-03 14:47:15 +00:00
Ben Hutchings 961c886f21 Do not recommend use of postinst_hook for running ramdisk creator
svn path=/dists/trunk/linux-2.6/; revision=16978
2011-03-03 14:42:14 +00:00
Ben Hutchings a68b161473 postinst: Remove specific support for running a ramdisk creator
Warn users that specify one in /etc/kernel-img.conf.
Require initramfs-tools >= 0.94, which installs a postinst hook.

svn path=/dists/trunk/linux-2.6/; revision=16958
2011-03-01 05:44:42 +00:00
Ben Hutchings 05c7ed67bd Remove check() subroutine
This has been broken since kernel-package 10.037 because it uses '+='
instead of '.='.  Since no-one seems to care, remove it rather than
fixing it.


svn path=/dists/trunk/linux-2.6/; revision=16234
2010-09-03 22:29:24 +00:00
Ben Hutchings 66caf86b16 use strict; use warnings;
Declare implicitly-global variables with 'my'.
Fix variable name discrepancies.
Remove unused variables.

svn path=/dists/trunk/linux-2.6/; revision=16224
2010-08-30 00:33:54 +00:00
Maximilian Attems 53a28a1725 images nuke modules.devname on removal
svn path=/dists/trunk/linux-2.6/; revision=16081
2010-08-04 18:57:14 +00:00
Ben Hutchings bf53f8f2c6 postinst: Remove support for 'default' boot loaders
Warn users on upgrade if the current configuration may rely on this.
The debconf templates will need a translation update.

svn path=/dists/sid/linux-2.6/; revision=15990
2010-07-16 14:58:05 +00:00
Ben Hutchings 8203cf8518 Always set kernel image basename template variable (=K)
Instead of setting an empty value, then fixing that to 'vmlinuz', set
the correct value to start with and remove the install-time fixups.

svn path=/dists/sid/linux-2.6/; revision=15890
2010-06-19 00:41:27 +00:00
Ben Hutchings 38a95ae784 Remove obsolete check for kernel-package bug
svn path=/dists/sid/linux-2.6/; revision=15889
2010-06-19 00:32:23 +00:00
Ben Hutchings 5850161882 Get rid of Debian architecture template variable (=A)
This is only used to initialise a variable which is itself not used.

svn path=/dists/sid/linux-2.6/; revision=15888
2010-06-19 00:27:37 +00:00
Ben Hutchings b511ef3368 Get rid of some flag template variables (=IB, =M, =S)
These are always empty now.

svn path=/dists/sid/linux-2.6/; revision=15886
2010-06-18 03:53:48 +00:00
Ben Hutchings 967fd2f280 Get rid of the installation directory template variable (=D)
This is always '/boot'.  We can also stop manipulating this constant
in the maintainer scripts.

svn path=/dists/sid/linux-2.6/; revision=15885
2010-06-18 03:46:24 +00:00
Ben Hutchings b57f84c58a Get rid of the stem template variable (=ST)
We're not going to rename back to 'kernel' any time soon.

svn path=/dists/sid/linux-2.6/; revision=15884
2010-06-18 03:35:05 +00:00
Ben Hutchings 9687979cd3 Update debconf templates; add many translations
svn path=/dists/sid/linux-2.6/; revision=15680
2010-05-13 21:55:26 +00:00
Maximilian Attems aaf45a2e6a postrm rm modules.sotfdep
svn path=/dists/sid/linux-2.6/; revision=15555
2010-04-25 22:58:27 +00:00
Ben Hutchings 2f64f9f3b5 Prepare debconf templates for translation
This will actually work after the previous change to debian/rules.real.

svn path=/dists/sid/linux-2.6/; revision=15492
2010-04-06 02:52:26 +00:00
Maximilian Attems 1326182c91 Revert for now "Prepare debconf templates for translation"
causes on install, series of:
debconf: Unknown template field '_description', in stanza #1 of
/var/lib/dpkg/info/linux-image-2.6.32-4-amd64.templates

svn path=/dists/sid/linux-2.6/; revision=15490
2010-04-06 01:04:08 +00:00
Ben Hutchings 6fc8a89272 Prepare debconf templates for translation
svn path=/dists/sid/linux-2.6/; revision=15456
2010-03-29 13:17:06 +00:00
Maximilian Attems 0444600a0f Postinst only write kernel-img.conf for palo boxes.
there wasnt much point in writing an empty file with comments anyway.
linux-2.6 images should now be piuparts clean on most archs.

this is a tamed down version of the orginal proposal to get
it rid everywhere:
http://lists.debian.org/debian-kernel/2009/11/msg00328.html

Reviewed-by: Sebastian Andrzej Siewior <sebastian@breakpoint.cc>

svn path=/dists/trunk/linux-2.6/; revision=15173
2010-02-16 10:13:55 +00:00
Ben Hutchings 71af6e5df6 templates: Remove more bogus //g modifiers
svn path=/dists/trunk/linux-2.6/; revision=15165
2010-02-16 03:45:59 +00:00
Ben Hutchings 9e3a9aeb3e postinst: Remove bogus //g modifiers
svn path=/dists/trunk/linux-2.6/; revision=15163
2010-02-16 03:21:13 +00:00
Maximilian Attems 95b328053d postinst don't reference k-p related manpage
we don't want to tell users to install it.
as it is only useful for dev usage simply don't recommend it.

svn path=/dists/trunk/linux-2.6/; revision=15149
2010-02-13 12:25:52 +00:00
Maximilian Attems 2c83717624 pass DEB_MAINT_PARAMS to hook scripts
hook scripts like to know the invoked maintainer script options.

svn path=/dists/trunk/linux-2.6/; revision=15014
2010-01-26 17:24:06 +00:00
Ben Hutchings 13125c9c65 postinst: Enable escape sequences in debconf notes (Closes: #566539)
svn path=/dists/trunk/linux-2.6/; revision=15001
2010-01-26 03:17:07 +00:00
Ben Hutchings cc4b0680ed Correct comments referring to dpkg --print-installation-architecture in maintainer scripts (Closes: #558077)
svn path=/dists/trunk/linux-2.6/; revision=14821
2009-12-29 14:33:11 +00:00
Ben Hutchings 8bf9a24285 postinst: Fix failure paths in check for missing firmware (Closes: #560263)
svn path=/dists/trunk/linux-2.6/; revision=14768
2009-12-10 01:48:04 +00:00
Maximilian Attems 1b6e3e1ee2 nuke variable relative_links
unused and undocumented, thus can go.

svn path=/dists/trunk/linux-2.6/; revision=14664
2009-11-23 11:52:55 +00:00
Maximilian Attems 8d0a1929ec prerm no need to remove modules.dep
we do it anyway on postrm

svn path=/dists/trunk/linux-2.6/; revision=14647
2009-11-17 14:52:25 +00:00
Maximilian Attems 1c6289c6bf postrm and preinst nuke more even unused variables
those templates are nowhere to be found.

svn path=/dists/trunk/linux-2.6/; revision=14646
2009-11-17 13:27:20 +00:00
Maximilian Attems bce89b35a4 postrm and preinst nuke more unused variables
svn path=/dists/trunk/linux-2.6/; revision=14645
2009-11-17 13:04:53 +00:00
Maximilian Attems 142bd1773d nuke unused variable have_conffile
not used anywhere beside postinst.

svn path=/dists/trunk/linux-2.6/; revision=14644
2009-11-17 13:00:05 +00:00
Maximilian Attems dcda3cd3cf postinst nuke leftover variable
remenant from a debconf question.

svn path=/dists/trunk/linux-2.6/; revision=14643
2009-11-17 10:00:24 +00:00
Maximilian Attems 886f5bff3d maintainer script snipp outdated copyright headers
as we ship that code and already modified more then bits,
just take up responsibility. copyright is deducible from commits.
let's one jump directly to the code when opening relevant file.

svn path=/dists/trunk/linux-2.6/; revision=14596
2009-11-10 14:20:30 +00:00
Maximilian Attems 4aafa3d751 maintainer scripts nuke unused variable silent_loader
unused undocumented so can just go.

svn path=/dists/trunk/linux-2.6/; revision=14595
2009-11-10 14:20:26 +00:00
Maximilian Attems 874e54e1b2 postinst: get rid of reverse symlinks handling
maximilian suggested to grab an axe and rip the reverse symlinks handling out.
The man page for kernel-img.conf has no reference to it anymore.

Signed-off-by: Sebastian Andrzej Siewior <sebastian@breakpoint.cc>

svn path=/dists/trunk/linux-2.6/; revision=14593
2009-11-10 09:05:10 +00:00
Maximilian Attems bd26c9179c Really fix missing kernel-img.conf makes a debian kernel not installable
There is no /etc/kernel-img.con on a fresh debootstrap sid. Installing a
kernel leads to:

|mikejones:/var/lib# dpkg --configure -a
|Setting up linux-image-2.6.31-1-amd64 (2.6.31-1) ...
|Running depmod.
|Running update-initramfs.
|update-initramfs: Generating /boot/initrd.img-2.6.31-1-amd64
|Error retreiving answer for linux-image-2.6.31-1-amd64/postinst/create-kimage-link-2.6.31-1-amd64:
| linux-image-2.6.31-1-amd64/postinst/create-kimage-link-2.6.31-1-amd64 doesn't exist at
| /var/lib/dpkg/info/linux-image-2.6.31-1-amd64.postinst line 522, <STDIN> line 3.
|dpkg: error processing linux-image-2.6.31-1-amd64 (--configure):
| subprocess installed post-installation script returned error exit status 9

As far as I understand debconf, there must be a template and input() for
${package_name}/postinst/create-kimage-link-$version in order to get a
value saved. Since I did not find it I guess that this can't work.

If the bootloader is palo than the answer is ignored anyway so the
question is not required there.

kernel-img.conf(5) says that do_symlinks defaults to yes.

This could also fix piuparts [0].

[0] http://piuparts.debian.org/sid/fail/linux-image-2.6.31-1-amd64_2.6.31-1.log

[ nuked that template in question and this is indeed the right fix
  instead of reprompting user for useless questions.
  Add a comment and keep current ordering. -maks ]

Signed-off-by: Sebastian Andrzej Siewior <sebastian@breakpoint.cc>

Really fix making a debian kernel installable without kernel-img.conf.

boah the code below this with reverse links must die pretty soon.

thanks for good analysis and bug report.

svn path=/dists/trunk/linux-2.6/; revision=14589
2009-11-08 20:39:41 +00:00
Maximilian Attems bfa7df899d nuke now empty config maintainer script
svn path=/dists/trunk/linux-2.6/; revision=14588
2009-11-08 20:39:28 +00:00
Ben Hutchings 1ea43a7025 postinst: Accept absolute paths in modules.dep generated by the lenny version of module-init-tools (Closes: #552610)
svn path=/dists/trunk/linux-2.6/; revision=14532
2009-11-01 00:59:45 +00:00
Maximilian Attems 11de16d79d postinst, preinst: nuke unused variable
svn path=/dists/trunk/linux-2.6/; revision=14320
2009-10-04 16:42:25 +00:00
Maximilian Attems 4798154a03 maintainer script nuke "official_image" variable
we are allways *offical*.

svn path=/dists/trunk/linux-2.6/; revision=14319
2009-10-04 16:42:21 +00:00
Maximilian Attems 4f411f7daf postinst cleanup
rename some variables to be more descriptive

svn path=/dists/trunk/linux-2.6/; revision=14294
2009-09-24 20:37:46 +00:00
Maximilian Attems ca7dbf40ee allow non initrd images for now
nuke the preinst check if their is an initramfs,
check makes no sense as anyway around thanks to dep by linux-image

svn path=/dists/trunk/linux-2.6/; revision=14293
2009-09-24 20:37:39 +00:00
Ben Hutchings 6f7671ee3a Add warning on upgrade to a new upstream version where the system appears to be missing necessary firmware files (closes: #541702)
svn path=/dists/trunk/linux-2.6/; revision=14145
2009-08-20 02:22:34 +00:00
Maximilian Attems 5a5be7d960 on review completly nuke config
this check makes no sense at all,
and also refers to a gone postinst template.

svn path=/dists/trunk/linux-2.6/; revision=14035
2009-07-27 13:15:12 +00:00
Maximilian Attems 3fc99a1d39 keep the hook variable in their respective Maintainer script
they are unused anywhere else.

svn path=/dists/trunk/linux-2.6/; revision=14034
2009-07-27 12:27:56 +00:00