I try to set a diskless Raspberry Pi5. I boot magiea 9 over the wired network on nfs v4 root share.
urpmi show always this error:
- Code: Select all
urpmi database is locked (another program is already using it).
1) I removed /var/lib/urpmi/.LOCK and /var/lib/rpm/.RPMLOCK, but error emerge again.
2) I suspect it has to do with locking issue on NFSv4. I try to make Raspberry Pi5 to boot on nfs v3 but can't succeed despite I have a well working nfsv3 server.
3) I have found that urpmi use perl flock that is said not to work on nfs. I've seen also that there is a mageia perl packet named perl-File-NFSLock-1.290.0-3.mga9. I installed it and I try to modify /usr/share/perl5/vendor_perl/urpm/lock.pm despite I don't understand a word of perl. I replaced the three occurances of flock(... by File::NFSLock->new(... with no success. Error message was:
- Code: Select all
$VAR1 = undef;
Not a HASH reference at /usr/share/perl5/vendor_perl/File/NFSLock.pm line 88.
4) I tried also to use fcntl(... instead of flock(... but still get the same message "urpmi database is locked (another program is already using it)."
I think that with 3) I was not far to the solution but I don't know anything of perl and can't get the correct syntax or give correct arguments to the NFSLock function.
Maybe there is here a more skilled guy to help me?