Fix update of boot device name for LILO and related loaders

svn path=/dists/trunk/linux-2.6/; revision=15352
This commit is contained in:
Ben Hutchings 2010-03-11 03:10:21 +00:00
parent a87ba5e96a
commit c1021b3bb4
2 changed files with 2 additions and 1 deletions

1
debian/changelog vendored
View File

@ -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 <ben@decadent.org.uk> Sun, 28 Feb 2010 17:01:33 +0000

View File

@ -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;
}