Bsdinstall and unattended ZFS installation

Kamil Czekirda kczekirda at gmail.com
Tue Jul 19 06:27:45 UTC 2016


Victor,

I missed nonInteractive="YES" and export

This works fine:

=====================================

export nonInteractive="YES"

DISTRIBUTIONS="kernel.txz base.txz games.txz"

export ZFSBOOT_VDEV_TYPE="stripe"

export ZFSBOOT_DISKS="ada0"

export ZFSBOOT_SWAP_SIZE=2g

export ZFSBOOT_CONFIRM_LAYOUT=1

=====================================



2016-07-19 4:04 GMT+02:00 Victor Sudakov <vas at mpeks.tomsk.su>:

> Kamil Czekirda wrote:
> > Dear Victor,
> >
> > you should use something like:
>
> >
> > =====================================
> > # by VAS
> > DISTRIBUTIONS="kernel.txz base.txz games.txz"
> >
> > # Virtual Device (vdev) type to create, possible options:
> > # stripe - no redundancy,
> > # mirror - n-Way Mirroring,
> > # raidz1, raidz2, raidz3 - single, double, triple redundant RAID
> > #
> > ZFSBOOT_VDEV_TYPE="stripe"
> >
> > ZFSBOOT_DISKS="md0"
> >
> > ZFSBOOT_SWAP_SIZE=2g
> >
> > ZFSBOOT_CONFIRM_LAYOUT=1
> >
> > #!/bin/sh
>
> Dear Kamil,
>
> The script you provided goes interactive into the "ZFS Configuration"
> dialogue. So technically it is not a working unattended script I am
> looking for.
>
> I tried it on 10.3-RELEASE-p4.
>
> [dd]
>
> > # sed -i .bak 's/Components src world kernel/Components world kernel/'
> > /etc/freebsd-update.conf # you don't need it since r284425
>
> And what do you mean by the above BTW?
>

https://lists.freebsd.org/pipermail/svn-src-head/2015-June/073165.html

Removing src component from Components lists is unnecessary, because
freebsd-update can recognize that src is not installed.

Kamil


>
>
> --
> Victor Sudakov,  VAS4-RIPE, VAS47-RIPN
> sip:sudakov at sibptus.tomsk.ru
>


More information about the freebsd-sysinstall mailing list