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:
parent
a87ba5e96a
commit
c1021b3bb4
|
@ -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
|
||||
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue