From c1021b3bb4a709ff21ca70e3bd9a64d8a40c1b6b Mon Sep 17 00:00:00 2001 From: Ben Hutchings Date: Thu, 11 Mar 2010 03:10:21 +0000 Subject: [PATCH] Fix update of boot device name for LILO and related loaders svn path=/dists/trunk/linux-2.6/; revision=15352 --- debian/changelog | 1 + debian/linux-base.postinst | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/debian/changelog b/debian/changelog index e13276930..0f388e2bf 100644 --- a/debian/changelog +++ b/debian/changelog @@ -13,6 +13,7 @@ linux-2.6 (2.6.33-1~experimental.3) UNRELEASED; urgency=low - For consistency with fresh installations, use or assign UUIDs rather than labels where both are available (Closes: #572376) - Replace CD/DVD/BD device names with udev-provided persistent aliases + - Fix update of boot device name for LILO and related loaders -- Ben Hutchings Sun, 28 Feb 2010 17:01:33 +0000 diff --git a/debian/linux-base.postinst b/debian/linux-base.postinst index ba35892d7..11a086d56 100644 --- a/debian/linux-base.postinst +++ b/debian/linux-base.postinst @@ -31,7 +31,7 @@ package DebianKernel::DiskId; sub id_to_path { my ($id) = @_; $id =~ m|^/| - or $id =~ s{^(LABEL|UUID)=}{'/dev/disk/by-' . lc($1) . '/'}x + or $id =~ s{^(LABEL|UUID)=}{'/dev/disk/by-' . lc($1) . '/'}e or die "Could not map id $id to path"; return $id; }