Commit Graph

81 Commits

Author SHA1 Message Date
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
Maximilian Attems 45dc3175d2 config nuke left over mkimage variable
svn path=/dists/trunk/linux-2.6/; revision=14033
2009-07-27 12:27:45 +00:00
Maximilian Attems 436fcde23e postinst nuke undocumented move_image variable
didn't find that variable move_image documented
and just adds extra complexity.

svn path=/dists/trunk/linux-2.6/; revision=14031
2009-07-27 12:16:21 +00:00
Maximilian Attems 1354ca37d1 official linux-2.6 images update their modules dir
no point in keeping code that allows to circumvent this.
cleans up preinst a lot, nuke related varialbes everywhere.

as bonus nukes in preinst an comment that seems misplaced now..

svn path=/dists/trunk/linux-2.6/; revision=14030
2009-07-27 12:16:03 +00:00
Maximilian Attems 3c7cb82f14 preinst cleanup unused loader variables
preinst doesn't run any bootloader,
so no need to have any related code around.

svn path=/dists/trunk/linux-2.6/; revision=14029
2009-07-27 12:15:49 +00:00
Maximilian Attems 6cc708546f maintainer scripts cleanup nuke trailing newlines
svn path=/dists/trunk/linux-2.6/; revision=14028
2009-07-27 12:15:33 +00:00
Maximilian Attems d226ba0519 Nuke handling related to /initrd directory
the template is quite aged and thus we don't need to check for that.
first step in cleaning up the symlink mess.

svn path=/dists/trunk/linux-2.6/; revision=14027
2009-07-27 12:15:18 +00:00
Maximilian Attems 209a5deff1 maintainer scripts: nuke unused variable do_bootfloppy
floppy are legacy and not something linux-2.6 really cares about.

svn path=/dists/trunk/linux-2.6/; revision=14026
2009-07-27 12:15:02 +00:00
Maximilian Attems 1046c03678 postinst cleanup commented out code
svn path=/dists/trunk/linux-2.6/; revision=14025
2009-07-27 12:14:50 +00:00
Maximilian Attems f168f5c559 config nuke useless code related to upgrade
neither are the variables use nor thus the powerpc exception do
anything.

svn path=/dists/trunk/linux-2.6/; revision=14024
2009-07-27 12:14:37 +00:00
Maximilian Attems baf7bc30e9 config doesn't invoke any boot loader
nuke related boot loader search code and related variables.

svn path=/dists/trunk/linux-2.6/; revision=14023
2009-07-27 12:14:25 +00:00