[Pkg-freeipa-devel] Bug#905184: Bug#905184: Bug#905184: Bug#905184: upgrade of 389-ds-base fails if /var/lib/dirsrv is on different partition as /etc

Timo Aaltonen tjaalton at debian.org
Tue Oct 9 20:10:34 BST 2018


On 09.10.2018 21:03, Timo Aaltonen wrote:
> On 03.09.2018 11:16, Jan Kowalsky wrote:
>>
>> solves the issue:
>>
>> --- updates.orig/60upgradeconfigfiles.pl	2018-09-03 09:58:45.911804203 +0200
>> +++ updates/60upgradeconfigfiles.pl	2018-09-03 09:59:36.420699451 +0200
>> @@ -31,7 +31,7 @@
>>          next if (! -f $oldname); # does not exist - skip - already
>> (re)moved
>>          my $newname = "$bakdir/$file";
>>          $! = 0; # clear
>> -        rename $oldname, $newname;
>> +        move $oldname, $newname;
>>          if ($!) {
>>              push @errs, ["error_renaming_config", $oldname, $newname, $!];
>>          }
>> @@ -57,7 +57,7 @@
>>              next if (! -f $oldname); # does not exist - not backed up
>>              my $newname = $inf->{slapd}->{config_dir} . "/" . $file;
>>              next if (-f $newname); # not removed
>> -            rename $oldname, $newname;
>> +            move $oldname, $newname;
>>          }
>>          return @errs;
>>      }
> 
> Unfortunately the upgrade only works once with this.. try running
> 'setup-ds -u -s General.UpdateMode=offline' after shutting down the
> daemon, every second attempt works and the other fails.
> 
> so I'm forced to revert the change unless it can be fixed to work each
> time..

nevermind, using 'copy' instead works fine..


-- 
t



More information about the Pkg-freeipa-devel mailing list