Skip to content

Instantly share code, notes, and snippets.

@segrax
Last active July 6, 2017 21:43
Show Gist options
  • Save segrax/1968f1582ca0180afd50 to your computer and use it in GitHub Desktop.
Save segrax/1968f1582ca0180afd50 to your computer and use it in GitHub Desktop.
FreeBSD manual install on zfs
mdconfig -a -t vnode -f FreeBSD-11.0-RELEASE-amd64-disc1.iso
mount -t cd9660 /dev/md0 /cdrom
zfs create pool/os
zfs create pool/os/fbsd11
export DESTDIR=/pool/os/fbsd11
cd /cdrom/usr/freebsd-dist
for file in base.txz lib32.txz kernel.txz;
do (cat $file | tar --unlink -xpJf - -C ${DESTDIR:-/}); done
zpool set bootfs=pool/os/fbsd11 pool
cd
umount /cdrom
mdconfig -d -u 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment