View | Details | Raw Unified | Return to bug 18127
Collapse All | Expand All

(-)/usr/share/loader/bootloader_utils.pm.orig (+1 lines)
Lines 45-50 sub mnt2dev ($;$$) { Link Here
45
		if ($$fsent[0] =~ /^(LABEL|UUID)=/) {
45
		if ($$fsent[0] =~ /^(LABEL|UUID)=/) {
46
			foreach my $ment (@mtab) {
46
			foreach my $ment (@mtab) {
47
				if ($$ment[1] eq $$fsent[1]) {
47
				if ($$ment[1] eq $$fsent[1]) {
48
                                  return $$ment[0] if $$fsent[0] eq $mnt; # if mnt is LABEL/UUID=XXXXXX and present in fstab
48
					$$fsent[0] = $$ment[0];
49
					$$fsent[0] = $$ment[0];
49
				}
50
				}
50
			}
51
			}
(-)/usr/share/loader/grub.orig (+1 lines)
Lines 23-28 GetOptions "r|R|remove" => \my $remove, Link Here
23
23
24
sub dev2grub {
24
sub dev2grub {
25
	my $dev = shift;
25
	my $dev = shift;
26
        $dev = mnt2dev($dev) if $dev =~ /^(LABEL|UUID)=/;
26
	my ($disk, $part) = $dev =~ /([^\d\s]+)(\d+)/
27
	my ($disk, $part) = $dev =~ /([^\d\s]+)(\d+)/
27
		or return;
28
		or return;
28
# Sample device.map entry:
29
# Sample device.map entry:

Return to bug 18127