4,325 karma · joined Sep 1, 2012 (14y ago) · 990 submissions
BLOG: https://vermaden.wordpress.com/ TWIT: https://twitter.com/vermaden
DESC: FreeBSD BSD UNIX Linux Backup Restore Storage Clusters Distributed Desktop Laptop X11 ThinkPad AMIGA Shell POSIX ZSH ZFS
comment 4d ago · link · parent
root@150:~ # head -2 pkgbase
#! /bin/sh
set -eu
root@150:~ # sh pkgbase
pkgbase: 1: parameter not set
pkgbase: VER_REG: parameter not set
root@150:~ # sh -x pkgbase
+ set -eu
+ ARG_BOOT=yes
+ trap __clean 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
pkgbase: 1: parameter not set
+ __clean
+ umount -f /boot/efi
Could not even handle 'trap' signals ...comment 6d ago · link · parent
I already mentioned GEFS in my comment ... but its 'just' filesystem - I did not heard about GEFS Boot Environments or anything similar.
> VMM, abandon all hope for chroot and extended chroots.
One can say the same about OpenBSD - abandon OpenBSD and just use FreeBSD.
> Literally in -current
Its a fresh thing - we will see if it sticks.
> Chromium and for Signal pick another client
I can not pick another client as I use Signal Desktop for my daily work - its like saying to my entire team 'fuck you use something else' ... and its NOT happening - I will just use FreeBSD that works for me instead of OpenBSD that does not.
> Unlocking more and more locks
It will take another at least 10 years to be on FreeBSD level with that. FreeBSD already has SMP PF ...
> You might find some tool in ports, no pun intended
That I believe that it can be possible to find something 'similar'.
comment 6d ago · link · parent
I have used `shellcheck` against many of my scripts and for 'well think and designed' scripts its like a 'false positive generator' tool that only waste my time.
I mean ... POSIX /bin/sh is a language like any other - like Python - like Perl ...
I have been writing scripts since 20+ years in POSIX /bin/sh tools and thinking and knowing what and how a thing can fail always wins.
... and as FreeBSD has ZFS Boot Environments (and even UFS Boot Environments) - no matter what fails and where - You are always protected from failures.
The `set -eu` is treated like some magic 'Save Game' thing - that after You set it in a script - You are always protected from everything ... You are not.
A command that will wipe Your entire / filesystem can succeed without an issue and You will see zero errors.
Regards,
vermaden
comment 6d ago · link · parent
On the other hand OpenBSD syspatch(8) was introduced in 2017 and sysupgrade(8) in 2019 so they both are younger then a decade.
It would be better to have this discussion in 2+ decades of usage of these OpenBSD equivalent tools.
While I admire OpenBSD team for all the things that are being created 'around' the OS - like:
- OpenSSH
- OpenRSYNC
- doas(1)
- LibreSSL
- OpenNTPd
- OpenSMTPd
- ... and many more listed here: https://openbsd.org/innovations.html
The OpenBSD is just 'too limited' for my needs.
I mean ... I need these for daily operation:
- ZFS/OpenZFS with ZFS Boot Environments
- Jails with VNET
- Hypervisor for ${ANYOS} which Bhyve provides
- WINE
- Linux Compat (for Signal Desktop and Google Chrome for a start)
- 'real' SMP
- Poudriere (or equivalent)
- ... I probably forgot something that is obvious in FreeBSD 'world'
... and OpenBSD 'by decision' just do not provide them.
But I liked the recent news about GEFS (Good Enough File System) - it does not have to be ZFS - GEFS sounds also 'OK' for most needs.
Hope that helps.
Regards,
vermaden
comment 6d ago · link · parent
It also reminded me of why Docker become so popular while being less secure and less good solution then FreeBSD Jails - it was all about TOOLING. FreeBSD Jails - and especially VNET ones are really great - but there is just 'limited' `jls(8)` that does not show VNET IPs or poweroff off Jails and `jail(8)` command and `jail.conf(5)` config. You do 95% of the stuff in `vi(1)` in the Jail configs ... the tools are really limited. Even check Solaris/Illumos Zones with its `zonecfg(1M)` and `zoneadm(1M)` tools. Same problem is here now with PKGBASE 'tooling' for upgrading process between both minor and major FreeBSD versions ... and its not better for 3rd party packages. If You want to 'just' upgrade the 3rd party packages - this is the command if You use PKGBASE system:
# pkg upgrade -r FreeBSD-ports -r FreeBSD-ports-kmods ...
... and its often that a lot of these tools are available - they are just ignored and not used. Take my `jmore(8)` Jails listing and manager tool. Its different then BastilleBSD or iocage that it does not need any organized way of doing Jails - its fully compatible with 'plain' Jails configured in `jail.conf(5)` file - it is BSD licensed ... but ignored. # jls
JID IP Address Hostname Path
# jmore -h
usage:
jmore list jail(8) containers
jmore -a list jail(8) containers with all IP(s)
jmore -d INTERVAL run 'jmore' every INTERVAL seconds like top(1)
jmore -h show help
jmore --help show help
jmore help show help
jmore version show version
manage:
jmore <JAILNAME> start
jmore <JAILNAME> restart
jmore <JAILNAME> stop
jmore <JAILNAME> status
jmore <JAILNAME> console
jmore <JAILNAME> shell
jmore <JAILNAME> jexec
shorts:
jmore <JAILNAME> u UP ------> alias for start
jmore <JAILNAME> d DOWN ----> alias for stop
jmore <JAILNAME> r RESTART -> alias for restart
jmore <JAILNAME> c CONSOLE -> alias for console|shell|jexec
jmore <JAILNAME> s STATUS --> alias for status
# jmore
JAIL JID CPU/% RAM/mb TYPE VER DIR IFACE IP(s)
classic - 0.0 0.0 std 13.2-R /jail/classic em0 10.0.0.199
ctld-two - 0.0 0.0 vnet 13.2-R /jail/ctld-two ${if}b -
ctld - 0.0 0.0 vnet 13.2-R /jail/ctld ${if}b -
fbsdjail - 0.0 0.0 std 13.1-R /jail/fbsdjail wlan0 10.0.0.43
iscsi - 0.0 0.0 vnet 13.2-R /jail/iscsi ${if}b -
joudriere - 0.0 0.0 vnet 14.3-R /jail/joudriere ${if}b -
kerberos - 0.0 0.0 vnet - [GONE]/jail/kerberos ${if}b -
minecraft - 0.0 0.0 std 14.2-R /jail/minecraft em0 10.0.0.210
minio - 0.0 0.0 std 14.0-R /jail/minio em0 10.0.0.133
nfsd - 0.0 0.0 vnet 14.1-R /jail/nfsd ${if}b -
other - 0.0 0.0 std 14.1-R /jail/other em0 10.0.0.199
pkgbase - 0.0 0.0 vnet 14.3-R /jail/pkgbase ${if}b -
sambajail - 0.0 0.0 vnet 14.1-R /jail/sambajail ${if}b -
unfs3 - 0.0 0.0 vnet 14.1-R /jail/unfs3 ${if}b -
# jmore classic u
Starting jails: classic.
# jmore ctld u
Starting jails: ctld.
# jmore ctld c
ctld # exit
# jmore
JAIL JID CPU/% RAM/mb TYPE VER DIR IFACE IP(s)
classic 1 0.1 18.0 std 13.2-R /jail/classic em0 10.0.0.199
ctld-two - 0.0 0.0 vnet 13.2-R /jail/ctld-two ${if}b -
ctld 2 1.4 18.0 vnet 13.2-R /jail/ctld epair110b 10.1.1.110
fbsdjail - 0.0 0.0 std 13.1-R /jail/fbsdjail wlan0 10.0.0.43
iscsi - 0.0 0.0 vnet 13.2-R /jail/iscsi ${if}b -
joudriere - 0.0 0.0 vnet 14.3-R /jail/joudriere ${if}b -
kerberos - 0.0 0.0 vnet - [GONE]/jail/kerberos ${if}b -
minecraft - 0.0 0.0 std 14.2-R /jail/minecraft em0 10.0.0.210
minio - 0.0 0.0 std 14.0-R /jail/minio em0 10.0.0.133
nfsd - 0.0 0.0 vnet 14.1-R /jail/nfsd ${if}b -
other - 0.0 0.0 std 14.1-R /jail/other em0 10.0.0.199
pkgbase - 0.0 0.0 vnet 14.3-R /jail/pkgbase ${if}b -
sambajail - 0.0 0.0 vnet 14.1-R /jail/sambajail ${if}b -
unfs3 - 0.0 0.0 vnet 14.1-R /jail/unfs3 ${if}b -
# jls
JID IP Address Hostname Path
1 10.0.0.199 classic /jail/classic
2 ctld /jail/ctld
... and `pkgbase(8)` will also be ignored.Regards,
vermaden
comment 6d ago · link · parent
one of the steps is already creation of new ZFS Boot Environment before the upgrade:
% grep bectl pkgbase
bectl create pkgbase-$( uname -r )-$( date '+%Y-%m-%d-%T' ) ; RET_VAL=${?}
I did not created upgrade inside new ZFS BE as I wanted to 'follow' official FreeBSD project instructions - but it cal also be done.Regards,
vermaden
11.
New FreeBSD Pkgbase(8) Tool(vermaden.wordpress.com ↗)
50 points · by vermaden · 1w ago · 26 comments
comment 1w ago · link · parent
But ... OpenVZ in the past had 'live migration' - so it would be nice to implement that feature into FreeBSD Jails to have 'high availability'.
14.
New FreeBSD pkgbase-update(8) Tool(vermaden.wordpress.com ↗)
2 points · by vermaden · 2w ago · discuss
17.
FreeBSD Cope with Signal Fuckup(vermaden.wordpress.com ↗)
3 points · by vermaden · 1mo ago · discuss
comment 2mo ago · link · parent
Details:
- https://vermaden.wordpress.com/2020/10/14/oldschool-gaming-o...
comment 2mo ago · link · parent
- https://vermaden.wordpress.com/2026/01/18/200-mb-ram-freebsd...
20.
AMD Based FreeBSD Desktop Reloaded(vermaden.wordpress.com ↗)
129 points · by vermaden · 2mo ago · 29 comments
comment 2mo ago · link · parent
Lets hope FreeCORE will make it longer.
Some comparison between Linux based TrueNAS SCALE and FreeBSD based TrueNAS CORE here:
- https://vermaden.wordpress.com/2024/04/20/truenas-core-versu...
Regards,
vermaden
22.
Lenovo XClarity Administrator in FreeBSD Bhyve VM(vermaden.wordpress.com ↗)
2 points · by vermaden · 2mo ago · discuss
23.
Custom FreeBSD Ucarp Setup(vermaden.wordpress.com ↗)
1 points · by vermaden · 3mo ago · discuss
25.
Move FreeBSD System Between ZFS Disks(vermaden.wordpress.com ↗)
15 points · by vermaden · 3mo ago · 3 comments
27.
FreeBSD Storage for OpenShift with Democratic CSI(vermaden.wordpress.com ↗)
3 points · by vermaden · 3mo ago · discuss
comment 4mo ago · link · parent
I do not have anything against NextBSD - but that 'macOS userland tools on FreeBSD kernel' term sounds as stupid as it can - knowing that Apple pulled FreeBSD userland as part of creating Mac OS X :D
Which generally means: 'FreeBSD userland tools on FreeBSD kernel' ...