Commit Graph

60 Commits

Author SHA1 Message Date
Ben Hutchings fe07623c54 Stop changing 'build' and 'source' symlinks in linux-image maintainer scripts
These symlinks now belong to the linux-headers packages.

svn path=/dists/trunk/linux-2.6/; revision=18616
2012-01-24 06:24:49 +00:00
Ben Hutchings ae6bf403da Fix incorrect variable name in version comparison
This was introduced by the previous change.

Thanks to Stefan Lippers-Hollmann for spotting this.

svn path=/dists/trunk/linux-2.6/; revision=17574
2011-06-02 00:39:44 +00:00
Ben Hutchings f7e1cc332e Fix version comparison in precondition for firmware file check
svn path=/dists/trunk/linux-2.6/; revision=17571
2011-06-01 10:03:07 +00:00
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 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 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
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
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 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 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
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 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 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 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 a78d971938 postinst cleanup overly verbose DEBUG stuff
no need to have code duplication in debug warnings,
as we can read or strace them anyway.

svn path=/dists/trunk/linux-2.6/; revision=14022
2009-07-27 12:14:14 +00:00
Maximilian Attems 2ab25d6d69 postinst cleanup the !initrd code pathes
never used and useless.

svn path=/dists/trunk/linux-2.6/; revision=14021
2009-07-27 12:14:01 +00:00
Maximilian Attems 7ed10787f2 postinst nuke useless depmod-error template
as we always ship an initramfs that code path,
was never executed and thus is useless for us, nuke it.

svn path=/dists/trunk/linux-2.6/; revision=14018
2009-07-27 12:13:29 +00:00
Maximilian Attems 238bf2017b axe old k-p legacy checks on files in /
linux-2.6 never installed stuff in /,
we shouldn't care at all about this.

svn path=/dists/trunk/linux-2.6/; revision=14016
2009-07-27 12:12:53 +00:00
Maximilian Attems 3f8cb4be09 preinst don't check against do_initrd setting
initramfs is the default and user shouldn't be prompted for it.
nukes thus some useless templates.

also nuke do_initrd and warn_initrd variables all over the places.

svn path=/dists/trunk/linux-2.6/; revision=14014
2009-07-27 12:12:07 +00:00
Maximilian Attems bdb19873b1 powerpc fix installation of images
"The problem is that (a) the kernel's postinst uses debconf, which uses
stdin and stdout for communication and forbids other junk from appearing
there, and (b) the kernel's postinst calls update-initramfs, which
outputs status information to stdout which debconf thinks is a command
in its protocol and thus confuses any future real debconf commands.
Since the kernel's postinst is the thing with special requirements due
to using debconf, it should be the thing responsible for redirecting
file descriptors around as necessary." -cjwatson

svn path=/dists/sid/linux-2.6/; revision=13347
2009-04-06 09:50:07 +00:00
Maximilian Attems 7d24d1946c plain image simplify postinst
we don't need there any notion of "$hostversion".
also reword error message.

svn path=/dists/trunk/linux-2.6/; revision=12829
2009-02-18 02:01:03 +00:00