if($root_part =~ /\/dev\/md/) {
$root_part = check_raid($root_part);
}
- # now find the right block device name
- $root_part =~ s/\d+$//;
- $root_part =~ s/part$/disc/;
+ unless ($root_part =~ /^UUID/) {
+ # now find the right block device name
+ $root_part =~ s/\d+$//;
+ $root_part =~ s/part$/disc/;
+ }
return $root_part;
}
@status = stat($liloconf);
move ($liloconf, $liloconfold);
utime ($status[9],$status[9],$liloconfold);
+ chmod (0600,$liloconfold);
# copy all lines from lilo.conf_old into
# new lilo.conf and add 'boot=' line
}
close(MYFH_OLD);
close(MYFH_NEW);
+ chmod (0600,$liloconf);
}
else {
print "file $liloconf does not exist: nothing changed\n";