Moving from 14.1 or 14.0 Freebsd Kernel source code /usr/src to 15.0 current
Moving from 14.1 or 14.0 Freebsd Kernel source code /usr/src to 15.0 current
move over old source code
su - ; mv /usr/src /usr/14.1_src
mv: rename src to src14.1: Operation not supported
root@Ghost14-selfbuilt-rpi4B-nginx-tst1:/usr # zfs list
NAME USED AVAIL REFER MOUNTPOINT
arm64pool 406G 401G 96K /arm64pool
arm64pool/ROOT 355G 401G 96K none
arm64pool/ROOT/default 355G 401G 354G /
arm64pool/ROOT/freds_first 56K 401G 982M /
arm64pool/boot 57.7M 401G 57.7M /boot
arm64pool/etc 1.97M 401G 1.97M /etc
arm64pool/home 417M 401G 417M /home
arm64pool/poudriere 7.91G 401G 104K /arm64pool/poudriere
arm64pool/poudriere/jails 3.61G 401G 96K /arm64pool/poudriere/jails
arm64pool/poudriere/jails/ghostbsd-13-2-aarch64 2.29G 401G 2.16G /usr/local/poudriere/jails/ghostbsd-13-2-aarch64
arm64pool/poudriere/jails/ghostbsd-14-aarch64 1.32G 401G 1.32G /usr/local/poudriere/jails/ghostbsd-14-aarch64
arm64pool/poudriere/ports 4.30G 401G 96K /arm64pool/poudriere/ports
arm64pool/poudriere/ports/default 980M 401G 980M /usr/local/poudriere/ports/default
arm64pool/poudriere/ports/ghostbsd_ports 3.35G 401G 3.35G /usr/local/poudriere/ports/ghostbsd_ports
arm64pool/tftpboot 824M 4.20G 824M /tftpboot
arm64pool/tmp 144K 401G 144K /tmp
arm64pool/usr 34.7G 401G 96K /usr
arm64pool/usr/ports 30.5G 401G 30.5G /usr/ports
arm64pool/usr/src 2.44G 401G 2.44G /usr/src
arm64pool/usr/src-old 1.78G 401G 1.78G /usr/src-old
arm64pool/var 6.93G 401G 96K /var
arm64pool/var/audit 96K 401G 96K /var/audit
arm64pool/var/ccache 6.92G 401G 6.92G /var/ccache
arm64pool/var/crash 96K 401G 96K /var/crash
arm64pool/var/log 8.54M 401G 8.54M /var/log
arm64pool/var/mail 5.51M 401G 5.51M /var/mail
arm64pool/var/tmp 112K 401G 112K /var/tmp
root@Ghost14-selfbuilt-rpi4B-nginx-tst1:/usr # zfs rename arm64pool/usr/src arm64pool/usr/src-14.1
root@Ghost14-selfbuilt-rpi4B-nginx-tst1:/usr # zfs list | grep src
arm64pool/usr/src-14.1 2.44G 401G 2.44G /usr/src
arm64pool/usr/src-old 1.78G 401G 1.78G /usr/src-old
root@Ghost14-selfbuilt-rpi4B-nginx-tst1:/usr #
Example 1: Creating a ZFS File System Hierarchy
The following commands create a file system named pool/home and a file
system named pool/home/bob. The mount point /export/home is set for the
parent file system, and is automatically inherited by the child file
system.
# zfs create pool/home
# zfs set mountpoint=/export/home pool/home
# zfs create pool/home/bob
No manual entry for get
root@Ghost14-selfbuilt-rpi4B-nginx-tst1:/usr # zfs get mountpoint /usr/src
NAME PROPERTY VALUE SOURCE
arm64pool/usr/src-14.1 mountpoint /usr/src local
root@Ghost14-selfbuilt-rpi4B-nginx-tst1:/usr # zfs get mountpoint arm64pool/usr/src-14.1
NAME PROPERTY VALUE SOURCE
arm64pool/usr/src-14.1 mountpoint /usr/src local
root@Ghost14-selfbuilt-rpi4B-nginx-tst1:/usr # zfs set mountpoint='/usr/src-14.1' arm64pool/usr/src-14.1
root@Ghost14-selfbuilt-rpi4B-nginx-tst1:/usr # zfs get mountpoint arm64pool/usr/src-14.1
NAME PROPERTY VALUE SOURCE
arm64pool/usr/src-14.1 mountpoint /usr/src-14.1 local
root@Ghost14-selfbuilt-rpi4B-nginx-tst1:/usr #
root@Ghost14-selfbuilt-rpi4B-nginx-tst1:/usr # zfs get mountpoint arm64pool/usr/src-14.1
NAME PROPERTY VALUE SOURCE
arm64pool/usr/src-14.1 mountpoint /usr/src-14.1 local
root@Ghost14-selfbuilt-rpi4B-nginx-tst1:/usr # zfs create arm64pool/usr/src
root@Ghost14-selfbuilt-rpi4B-nginx-tst1:/usr # ls -l
total 325
drwxr-xr-x 2 root wheel 486 Sep 22 2023 bin
-rw-r--r-- 1 root wheel 103016 Sep 5 2021 Free_Test_Data_100KB_MP3.mp3
drwxr-xr-x 9 root wheel 10 Sep 19 09:49 ghost14
drwxr-xr-x 4 root wheel 6 Sep 27 06:30 ghost24
drwxr-xr-x 28 root wheel 73 Jan 17 2024 ghostbsd-src
drwxr-xr-x 56 root wheel 354 Sep 22 2023 include
drwxr-xr-x 11 root wheel 574 Sep 22 2023 lib
drwxr-xr-x 9 root wheel 597 Sep 22 2023 lib32
drwxr-xr-x 5 root wheel 5 Jul 6 2023 libdata
drwxr-xr-x 11 root wheel 69 Sep 22 2023 libexec
drwxr-xr-x 21 root wheel 22 Sep 27 15:14 local
drwxr-xr-x 3 root wheel 4 May 11 2024 netbsd
drwxr-xr-x 3 root wheel 3 Aug 7 2023 obj
drwxr-xr-x 3 root wheel 3 Mar 25 2024 openbsd
-rw-r--r-- 1 root wheel 47621 Jul 31 2023 patch_vchiq_D37878_diff.txt
drwxr-xr-x 2 root wheel 5 Jan 22 2024 Patches
drwxr-xr-x 70 root wheel 83 Dec 22 19:29 ports
drwxr-xr-x 3 root wheel 3 Feb 2 2024 ports_orig
drwxr-xr-x 4 root wheel 8 Jan 15 2024 repos
drwxr-xr-x 2 root wheel 280 Sep 22 2023 sbin
drwxr-xr-x 33 root wheel 33 Jul 6 2023 share
drwxr-xr-x 2 root wheel 2 Feb 17 06:55 src
drwxr-xr-x 28 root wheel 48 Jan 6 03:32 src-14.1
drwxr-xr-x 29 root wheel 73 Sep 21 16:42 src-old
drwxr-xr-x 18 root wheel 23 Sep 22 2023 tests
zfs rename zroot/usr/src zroot/usr/src-no
sudo git clone --branch releng/13.1 https://git.freebsd.org/src.git /usr/src
https://forums.freebsd.org/threads/installing-and-updating-the-src-tree-with-git.78367/
Documentation on using GIT for freeBSD
https://forums.freebsd.org/threads/guide-using-git-to-manage-ports-source-and-documentation.79721/
root@Ghost14-selfbuilt-rpi4B-nginx-tst1:/usr # ls -ld /usr/src*
drwxr-xr-x 2 root wheel 2 Feb 17 06:55 /usr/src
drwxr-xr-x 28 root wheel 48 Jan 6 03:32 /usr/src-14.1
drwxr-xr-x 29 root wheel 73 Sep 21 16:42 /usr/src-old
root@Ghost14-selfbuilt-rpi4B-nginx-tst1:/usr # sudo git clone --branch releng/15.0 https://git.freebsd.org/src.git /usr/src
Cloning into '/usr/src'...
fatal: Remote branch releng/15.0 not found in upstream origin
root@Ghost14-selfbuilt-rpi4B-nginx-tst1:/usr # ls
bin libexec repos
Free_Test_Data_100KB_MP3.mp3 local sbin
ghost14 netbsd share
ghost24 obj src
ghostbsd-src openbsd src-14.1
include patch_vchiq_D37878_diff.txt src-old
lib Patches tests
lib32 ports
libdata ports_orig
root@Ghost14-selfbuilt-rpi4B-nginx-tst1:/usr # du -hs src src-14.1 src-old
512B src
2.5G src-14.1
1.8G src-old
root@Ghost14-selfbuilt-rpi4B-nginx-tst1:/usr #
Cloning into '/usr/src'...
remote: Enumerating objects: 4616300, done.
remote: Counting objects: 100% (487499/487499), done.
remote: Compressing objects: 100% (108194/108194), done.
remote: Total 4616300 (delta 439816), reused 393239 (delta 377390), pack-reused 4128801 (from 1)
Receiving objects: 100% (4616300/4616300), 1.78 GiB | 9.50 MiB/s, done.
Resolving deltas: 100% (3649346/3649346), done.
Updating files: 100% (103103/103103), done.
#
Updating files: 100% (103103/103103), done.
root@Ghost14-selfbuilt-rpi4B-nginx-tst1:/usr # date
Mon Feb 17 07:44:50 UTC 2025
root@Ghost14-selfbuilt-rpi4B-nginx-tst1:/usr # df -h /usr/src
Filesystem Size Used Avail Capacity Mounted on
arm64pool/usr/src 401G 2.5G 398G 1% /usr/src
root@Ghost14-selfbuilt-rpi4B-nginx-tst1:/usr # du -hs /usr/src
2.5G /usr/src
root@Ghost14-selfbuilt-rpi4B-nginx-tst1:/usr #
Comments
Post a Comment