4 ms·
Its all nice and small, etc. but its Apples to Oranges comparison. On FreeBSD You have ZFS with ZFS Boot Environments - which gives GREAT flexibility and prote
by vermaden 2y ago
Its all nice and small, etc. but its Apples to Oranges comparison.
On FreeBSD You have ZFS with ZFS Boot Environments - which gives GREAT flexibility and protection against all kind od updates, changes and even accidental files deletion in the system. Moving to 'oldschool' LVM and EXT4 is just a huge downgrade. Especially without any advanced features such as compression or snapshots or clones or ... all the other wonders from ZFS.
As from the busybox ... You can also use it on FreeBSD - its under 'sysutils/busybox' port ... and FreeBSD has 'kinda' itself busybox-like solution - its called FreeBSD Rescue System and its located at /rescue. It contains one executable file 17 MB in size (and ZFS lz4 makes that 11 MB) with hardlinks as commands - including all needed ZFS commands - which BusyBox obviously does not have.
FreeBSD % % du -sm /rescue
11 /rescue
FreeBSD % du -smA /rescue
17 /rescue
FreeBSD % ls /rescue
[ dhclient gbde kldstat mt rmdir umount
bectl dhclient-script geom kldunload mv route unlink
bsdlabel disklabel getfacl ldconfig nc routed unlzma
bunzip2 dmesg glabel less newfs rrestore unxz
bzcat dump gpart link newfs_msdos rtquery unzstd
bzip2 dumpfs groups ln nextboot rtsol vi
camcontrol dumpon gunzip ls nos-tun savecore whoami
cat echo gzcat lzcat pgrep sed xz
ccdconfig ed gzip lzma ping setfacl xzcat
chflags ex halt md5 ping6 sh zcat
chgrp expr head mdconfig pkill shutdown zdb
chio fastboot hostname mdmfs poweroff sleep zfs
chmod fasthalt id mkdir ps stty zpool
chown fdisk ifconfig mknod pwd swapon zstd
chroot fetch init more rcorder sync zstdcat
clri fsck ipf mount rdump sysctl zstdmt
cp fsck_4.2bsd iscsictl mount_cd9660 realpath tail
csh fsck_ffs iscsid mount_msdosfs reboot tar
date fsck_msdosfs kenv mount_nfs red tcsh
dd fsck_ufs kill mount_nullfs rescue tee
devfs fsdb kldconfig mount_udf restore test
df fsirand kldload mount_unionfs rm tunefs
The MUSL also limits some things - but that is topic for another discussion.
... and do not get me wrong - I like Alpine (same as Void or Gentoo or Devuan) - its just not the same thing.
... and its even possible to setup Alpine with root on ZFS - https://openzfs.github.io/openzfs-docs/Getting%20Started/Alpine%20Linux/Root%20on%20ZFS.html https://openzfs.github.io/openzfs-docs/Getting%20Started/Alp... - it will just take a quite large amount of work while on FreeBSD you just select 'Auto (ZFS)' installer option and hit enter.
Hope that helps.
- hedora 2y agoI can imagine ZFS taking lots of space, but liblz4 is only 123KiB on current-ish ubuntu: $ ls -lh /usr/lib/x86_64-linux-gnu/liblz4.so.1.9.3 -rw-r--r-- 1 root root 123K Mar 24 2022 /usr/lib/x86_64-linux-gnu/liblz4.so.1.9.3 $ ldd /usr/lib/x86_64-linux-gnu/liblz4.so.1.9.3 linux-vdso.so.1 (0x00007ffd3df82000) libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007fe560800000) /lib64/ld-linux-x86-64.so.2 (0x00007fe560b81000)
- adamomada 2y agoTo clarify, he’s noting that the binary is reduced to 11 MB with ZFS compression, not that liblz4 is 11 MB. HTH
- aeadio 2y agoWorth mentioning aside Alpine (and other small Linuxes) supporting ZFS just fine, we also have ZFSBootMenu, which is frankly a hell of a lot better than the boot environment experience in FreeBSD. https://docs.zfsbootmenu.org https://docs.zfsbootmenu.org From within the bootloader's interactive (fzf-based) menu, you can: * Select boot environment (and change the default boot environment) * Select specific kernels within each boot environment (and change the default kernel) * Edit kernel command line temporarily * Roll back boot environments to a previous snapshot * Rewind to a pool checkpoint * Create, destroy, promote and orphan boot environments * Diff boot environments to some previous snapshot to see all file changes * View pool health / status * Jump into a chroot of a boot environment * Get a recovery shell with a full suite of tools available including zfs and zpool, in addition to many helper scripts for managing your pool/datasets and getting things back into a working state before either relaunching the boot menu, or just directly booting into the selected dataset/kernel/initrd pair. It also supports 100% of ZFS features that the host system supports, since it uses the ZFS kmod. That includes native encryption.
- vermaden 2y agoI have seen what ZFSBootMenu can do and I really like it. Its just 'crazy' to me that there are ZERO Linux distributions that install as root on ZFS with ZFSBootMenu and enabled ZFS Boot Environments. None. Zero. Why?