Commit Graph

39 Commits

Author SHA1 Message Date
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
Maximilian Attems e6402c82e3 initramfs-tools: update-initramfs
don't use mkinitramfs-kpkg vestiges.
preinst and postinst needed a bit of surge to not call
the old mkinitramfs-kpkg interfaces. just check which initramfs
binary is around and call them.
 they support all relevant linux-2.6 versions.

svn path=/dists/trunk/linux-2.6/; revision=12828
2009-02-18 01:35:38 +00:00
Maximilian Attems 237a444fe0 postinst don't spam on reinstall
user proably don't even cares about the symbolic link,
nuke 2 messages as they don't provide info.
nor is there any action for the admin.

svn path=/dists/trunk/linux-2.6/; revision=12163
2008-09-04 13:52:56 +00:00
Maximilian Attems dff52f05ea shorten postinst output
no need to bother the user if this is postinst or even a "hook script".

svn path=/dists/trunk/linux-2.6/; revision=12067
2008-08-14 17:41:51 +00:00
Maximilian Attems 101770431a linux image postinst cosmetic printf fix.
currently is printed:
Running depmod.
Using mkinitramfs-kpkg to build the ramdisk.

just print:
Running depmod.
Running mkinitramfs-kpkg.

(which reminds me that this wrapper should be nuked).

svn path=/dists/trunk/linux-2.6/; revision=11743
2008-07-01 15:09:13 +00:00
Maximilian Attems 7fb1ffc66c linux image postinst shut up useless message
if no initrd creator is around we cry woolf anyway.

svn path=/dists/trunk/linux-2.6/; revision=11528
2008-06-05 21:05:40 +00:00
Maximilian Attems 6f51a74eae postinst: nuke the real user mentioned useless warn()
svn path=/dists/trunk/linux-2.6/; revision=10529
2008-02-12 22:55:06 +00:00
Maximilian Attems 99cc5aa0df reboot warning gone
warldi killed some time ago, no need to reference it.

svn path=/dists/trunk/linux-2.6/; revision=10528
2008-02-12 22:51:43 +00:00
Maximilian Attems b71724c48f postinst: Nuke confusing postinst message.
this message generates far to many bugreports
and seems pretty useless, so just get rid of it.

svn path=/dists/trunk/linux-2.6/; revision=10527
2008-02-12 22:43:43 +00:00
Bastian Blank e4ecb6ce61 * debian/changelog: Update.
* debian/templates/temp.image.plain: Merge from kernel-package 11.001.

svn path=/dists/trunk/linux-2.6/; revision=9662
2007-10-14 10:39:04 +00:00
Bastian Blank 641195b4ff * debian/rules.real:
Support plain image type. This uses the kernel-package templates for now.
* debian/templates/temp.image.plain: Import from kernel-package.

svn path=/dists/trunk/linux-2.6/; revision=7944
2006-12-06 10:31:20 +00:00