* debian/control:
- Remove dependency to lilo in package lilo-doc. (Closes: #613753)
* Fix: save errno for second command (device.c).
+ * Fix: save file permissions for converted lilo.conf. (Closes: #615103)
- -- Joachim Wiedorn <ad_debian@joonet.de> Thu, 17 Feb 2011 21:39:38 +0100
+ -- Joachim Wiedorn <ad_debian@joonet.de> Thu, 03 Mar 2011 22:22:54 +0100
lilo (1:23.1-1) unstable; urgency=low
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";