8.2-RELEASE sysinstall creates duplicate rc.conf lines

Rick Miller vmiller at hostileadmin.com
Wed Feb 15 13:35:44 UTC 2012


Hi all,

We recently discovered that sysinstall appears to be adding it's own
lines to /etc/rc.conf which are duplicates of lines that we are
inserting during builds.  For example, on one of our hosts, we are
adding "defaultrouter" and "ifconfig_em0" with certain network
configurations.  When we reboot the system we find that sysinstall
also inserted a "defaultrouter" and "ifconfig_em0" populated with the
data that existed on the interface during the build.  See a sample of
the rc.conf below.  We are making use of the keeprcconf in the
install.cfg, but this does not prevent sysinstall from adding those
lines.  Is there some way to prevent this behavior?



# Sample rc.conf after sysinstall build
defaultrouter="10.0.0.1"
defaultrouter="192.168.0.1"
hostname="bsdtest"
ifconfig_em0="inet 10.0.0.2 netmask 255.255.252.0"
ifconfig_em0="inet 192.168.0.2 netmaks 255.255.255.0"
sshd_enable="YES"

-- 
Take care
Rick Miller


More information about the freebsd-questions mailing list