fabrik-red / images

Scripts for creating bootable (FreeBSD/zfs) images

Home Page:https://fabrik.red

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Download

More about Fabrik: https://fabrik.red

To create a jail using with create-jail.sh:

# ./create-jail.sh -p=/jails/foo

Here /jails already exists

To mount the disk.raw:

> zpool import -o readonly=on -d /dev -f -R /mnt
   pool: zroot
     id: 15033985127548010097
  state: ONLINE
 action: The pool can be imported using its name or numeric identifier.
 config:

        zroot        ONLINE
          gpt/disk0  ONLINE

Then use:

zpool import -o readonly=on -d /dev -f -R /mnt 15033985127548010097

If know the pool name:

zpool import -o readonly=on -d /dev -f -R /mnt zroot

update existing jail

cd into /usr/src:

env MAKEOBJDIRPREFIX=/fabrik/jail/obj SRCCONF=/etc/src-jail.conf __MAKE_CONF=/etc/make.conf make -DNO_CLEAN -j16 buildworld

Then stop the jail and install the world:

env MAKEOBJDIRPREFIX=/fabrik/jail/obj SRCCONF=/etc/src-jail.conf __MAKE_CONF=/etc/make.conf make DESTDIR=/jails/test installworld

Using gtar for google compute engine:

gtar -cSzf disk-zfs-swap.tar.gz disk.raw

About

Scripts for creating bootable (FreeBSD/zfs) images

https://fabrik.red


Languages

Language:Shell 100.0%