Hi all,
I'm having an issue with applying my desired disk partitioning scheme in an unattended
I'm calling
I tried adding this line to rc.local before calling
I also tried to integrate the
Eric
/etc/rc.local:
/etc/installerconfig:
I'm having an issue with applying my desired disk partitioning scheme in an unattended
bsdinstall, FreeBSD 10.1 (32GB root disk, da0). After reading the bsdinstall man page and related threads on web, I'm still unsure how to apply the scriptedpart target as I have listed below.I'm calling
bsdinstall script /etc/installerconfig from rc.local. My relevant etc/rc.local and etc/installconfig are below.
Code:
# bsdinstall scriptedpart da0 { 8G freebsd-ufs /, 8G freebsd-swap, 8G freebsd-ufs /var, auto freebsd-ufs /usr }
I tried adding this line to rc.local before calling
bsdinstall script /etc/installerconfig, which will indeed partition the disk properly, however the installer then repartitions my disk to it's liking before installing the system.I also tried to integrate the
bsdinstall scriptedpart da0 into /etc/installerconfig but could not find proper way to do so. I am able to complete a successful installation with the configuration I listed, but not with the partitioning scheme I desire. thanks in advance for any help in how to do so,Eric
/etc/rc.local:
Code:
#!/bin/sh
export DISTRIBUTIONS="kernel.txz base.txz"
bsdinstall script /etc/installerconfig
/etc/installerconfig:
Code:
PARTITIONS="da0"
DISTRIBUTIONS="kernel.txz base.txz"
#!/bin/sh
echo "Installation complete, running in host system"
echo "autoboot_delay=\"5\"" >> /boot/loader.conf
echo "==> Setting up rc.conf"
cat > /etc/rc.conf << RC_CONF
sshd_enable="YES"
ntpd_enable="YES"
ntpd_sync_on_start="YES"
RC_CONF
echo "Setup done."
poweroff