Bug#577735: linux-base: Damaged /etc/crypttab after migration to UUIDs
Package: linux-base
Version: 2.6.32-11
Severity: normal
Tags: patch
There is no newline character after #<oldline>\n<newline> in the /etc/crypttab
file, so everything is just a big furry text ball.
The "\n" is needed as whitespace is removed at lines 856 and 857.
Proposed patch included.
-- System Information:
Debian Release: squeeze/sid
APT prefers testing
APT policy: (600, 'testing'), (500, 'stable'), (50, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)
Kernel: Linux 2.6.32-4-686 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages linux-base depends on:
ii debconf [debconf-2.0] 1.5.30 Debian configuration management sy
ii libapt-pkg-perl 0.1.24 Perl interface to libapt-pkg
ii libuuid-perl 0.02-3+b1 Perl extension for using UUID inte
linux-base recommends no packages.
linux-base suggests no packages.
-- debconf information:
linux-base/disk-id-manual-boot-loader:
* linux-base/disk-id-manual:
* linux-base/disk-id-convert-plan-no-relabel: true
* linux-base/disk-id-convert-auto: true
linux-base/disk-id-convert-plan: true
diff -r -u linux-base/postinst linux-base-patched/postinst
--- linux-base/postinst 2010-04-06 01:57:28.000000000 +0200
+++ linux-base-patched/postinst 2010-04-14 03:59:14.000000000 +0200
@@ -881,7 +881,7 @@
my ($text, $dst, $src, $key, $opts) = cryptsetup_next($old);
last unless defined($text);
if (defined($src) && defined($map->{$src})) {
- $text = "# $text" . join(' ', $dst, $map->{$src}, $key, $opts);
+ $text = "# $text" . join(' ', $dst, $map->{$src}, $key, $opts) . "\n";
}
$new->print($text);
}
Reply to: