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
This commit is contained in:
Maximilian Attems 2010-02-16 10:13:55 +00:00
parent 71af6e5df6
commit 0444600a0f
2 changed files with 7 additions and 7 deletions

1
debian/changelog vendored
View File

@ -9,6 +9,7 @@ linux-2.6 (2.6.32-9) UNRELEASED; urgency=low
[ maximilian attems]
* Postinst don't refercence k-p related manpage. (Closes: #542208)
* Postinst only write kernel-img.conf for palo boxes.
[ Bastian Blank ]
* Restrict access to sensitive SysRq keys by default.

View File

@ -475,22 +475,21 @@ sub handle_missing_link {
die("Failed to copy " . $realimageloc . "$image_name to "
. $image_dest . "$kimage .\n");
}
}
else {
} else {
if (! $have_conffile) {
# current default
$do_symlink = "Yes";
if (open(CONF, ">$CONF_LOC")) {
print CONF "# Kernel Image management overrides\n";
if ($loader =~ /palo/i) {
if ($loader =~ /palo/i) {
if (open(CONF, ">$CONF_LOC")) {
print CONF "# Kernel Image management overrides\n";
print CONF "link_in_boot = Yes\n";
print CONF "do_symlinks = Yes\n";
print CONF "do_bootloader = No\n";
close CONF;
$have_conffile = "Yes";
}
close CONF;
}
$have_conffile = "Yes";
}
}