View Single Post
  #5   (View Single Post)  
Old 12th December 2014
J65nko J65nko is offline
Administrator
 
Join Date: May 2008
Location: Budel - the Netherlands
Posts: 3,824
Default

Re: custom disk layout

The disklabels can be defined with a disktab(5) entry. The only other thing that would be needed is a method to supply the installer with the mount points for /etc/fstab creation.

Customized generation of install.conf

This could be done with a shell script, where at the top you only have to modify the variables, that contain the answers. For example:
Code:
#!/bin/sh
TERMINAL_TYPE=vt100
HOSTNAME=heraclitus
NIC=fxp0
NIC_IP=dhcp

cat <<END
Terminal type? = ${TERMINAL_TYPE}
System hostname = ${HOSTNAME} 
Which network interface do you wish to configure? = ${NIC} 
IPv4 address for = ${NIC_IP} 
END
This will generate:
Code:
Terminal type? = vt100
System hostname = sophocles 
Which network interface do you wish to configure? = fxp0 
IPv4 address for = dhcp
__________________
You don't need to be a genius to debug a pf.conf firewall ruleset, you just need the guts to run tcpdump
Reply With Quote