ghostbsd / issues

Issue tracker for GhostBSD
BSD 2-Clause "Simplified" License
3 stars 1 forks source link

Investigate what will be needed to switch to pkgbase. #153

Closed ericbsd closed 5 months ago

ericbsd commented 5 months ago

This issue investigates and notes what is needed to accomplish Switch OS packages to pkgbase.

Add the task to the epic issue Switch OS packages to pkgbase.

ericbsd commented 5 months ago

To build the pkgbase packages for GhostBSD without touching Makefile.inc1:

make buildworld buildkernel
make PKG_NAME_PREFIX=GhostBSD PKG_VERSION=24.04.1 packages
ericbsd commented 5 months ago

We can set PKG_REPO_SIGNING_KEY to sign all packages.

ericbsd commented 5 months ago

Replacing OS packages with pkgbase using bectl.

sudo bectl create basepkg-test
sudo bectl mount basepkg-test /mnt/
sudo pkg-static -r /mnt delete -g 'os-generic-*'
sudo pkg-static -r /mnt install -r GhostBSD-base -g 'GhostBSD-*'
sudo cp /etc/passwd /mnt/etc/passwd
sudo cp /etc/master.passwd /mnt/etc/master.passwd
sudo cp /etc/group /mnt/etc/group
sudo cp /etc/sysctl.conf /mnt/etc/sysctl.conf
sudo chroot /mnt pwd_mkdb -p /etc/master.passwd
sudo bectl umount basepkg-test