On Fri, Oct 02, 2015 at 08:45:42AM +0200, Wolfgang Schweer wrote: > Package: debian-edu-config > Version: 1.818 > Severity: important > Tags: patch This patch works for me:
--- a/debian-edu-fsautoresize 2015-09-20 14:11:49.000000000 +0200 +++ b/debian-edu-fsautoresize 2015-09-25 11:34:51.859501842 +0200 @@ -14,6 +14,7 @@ use Getopt::Std; use Sys::Syslog qw(openlog syslog closelog LOG_NOTICE); +use File::Basename; # Using this module (instead of Filesys::DiskSpace) to get a version # providing the device size, and not only free and used. @@ -194,6 +195,13 @@ chomp; my @f = split(/\s+/); my $device = $f[0]; + # Always use mapper names instead of kernel ones. + if (index ($f[0], "/dev/dm-") != -1) { + for my $mapdevice (glob "/dev/mapper/*") { + my $dmdevice = basename(readlink $mapdevice) if -l $mapdevice; + $device = $mapdevice if defined($dmdevice) && $dmdevice =~ basename($f[0]); + } + } my $mountpoint = $f[1]; my $typename = $f[2]; next unless (exists $fsops{$typename}); Wolfgang
signature.asc
Description: PGP signature