Hello.
I'm using 14.0-RELEASE and I want to upgrade it from source code to 14.1-RELEASE. The problem is with the src directory. At the moment is not empty,but git clone does not want a full directory,it wants to create it by itself. This is what happens when I rename it :
I can't rename that directory with mv(1) when it's mounted, but I can zfs-rename(8) a dataset :
but I suspect that's wrong because in this way the source code will be stored in a directory,but shouldn't it goes into the "src" dataset ? But the src dataset is not empty. So what should I do ?
I tried to do something like this :
Not sure at all that it is the correct procedure to follow in this case. I feel to be smart,but I'm sure that I'm not.
I'm using 14.0-RELEASE and I want to upgrade it from source code to 14.1-RELEASE. The problem is with the src directory. At the moment is not empty,but git clone does not want a full directory,it wants to create it by itself. This is what happens when I rename it :
Code:
[root@marietto /usr]==> mv src src-old
mv: rename src to src-old: Operation not supported
I can't rename that directory with mv(1) when it's mounted, but I can zfs-rename(8) a dataset :
Code:
[root@marietto /usr]==> zfs rename zroot3/usr/src zroot3/usr/src-old
[root@marietto /usr]==> git clone https://git.FreeBSD.org/src.git /usr/src
but I suspect that's wrong because in this way the source code will be stored in a directory,but shouldn't it goes into the "src" dataset ? But the src dataset is not empty. So what should I do ?
I tried to do something like this :
Code:
[root@marietto /]==> cd /usr/src
[root@marietto /usr/src]==> mkdir src-old
[root@marietto /usr/src]==> mv * /usr/src-old
[root@marietto /usr/src]==> git clone https://git.FreeBSD.org/src.git /usr/src-new
[root@marietto /usr/src]==> cd /usr/src-new
[root@marietto /usr/src-new]==> mv * /usr/src
[root@marietto /usr/src-new]==> cd /usr/src
[root@marietto /usr/src]==> git checkout releng/14.1
Not sure at all that it is the correct procedure to follow in this case. I feel to be smart,but I'm sure that I'm not.