Date: Fri, 16 Dec 2005 20:15:15 +0100 From: =?ISO-8859-1?Q?Erik_N=F8rgaard?= <norgaard@locolomo.org> To: Josh Endries <josh@endries.org> Cc: freebsd-questions@freebsd.org Subject: Re: Adding lines to /etc/rc.conf during sysinstall wihout being "REMOVED" Message-ID: <43A31243.5010905@locolomo.org> In-Reply-To: <43A30EB0.9000802@endries.org> References: <43A2F7CE.2010603@endries.org> <43A30792.1040208@locolomo.org> <43A30EB0.9000802@endries.org>
next in thread | previous in thread | raw e-mail | index | archive | help
Josh Endries wrote: > Here is my install.cfg: > > debug=YES > #nonInteractive=YES > #noWarn=YES > > disk=ad0 > partition=all > bootManager=standard > diskPartitionEditor > #diskPartitionWrite > > ad0s1-2=swap 4194304 none > ad0s1-1=ufs 524288 / > ad0s1-3=ufs 19531250 /home 1 > ad0s1-4=ufs 2097152 /tmp 1 > ad0s1-5=ufs 19531250 /usr 1 > ad0s1-6=ufs 0 /var 1 > diskLabelEditor > diskLabelCommit > > hostname=test > netDev=vr0 > nfs=192.168.0.3:/var/export/6.0-RELEASE/ > tryDHCP=YES > mediaSetNFS > > #nameserver=192.168.0.7 > > dists=base > distSetCustom > > installCommit > ... > command=cp /dist/pkgtools.conf /usr/local/etc > system > command=sed -i '' 's/md5/blf/' /etc/login.conf > system > command=cap_mkdb /etc/login.conf > system > command=pkg_add /dist/packages/All/my_base.tgz > system > > shutdown have you considered command=shutdown system ? it may not be the nicest way to do things though. > After sysinstall's "shutdown" and reboot, it comments out these > lines (using "#REMOVED: %s"). Converting them to something like this > in install.cfg didn't help, regardless of quotes: > > command=echo sshd_enable="YES" >> /etc/rc.conf > system two things: try this before shutdown: command=cp /etc/rc.conf /tmp/rc.conf system and also try to echo like this: command=echo 'sshd_enable="YES"' >> /etc/rc.conf I don't know how sysinstall treats quotes. Well, honestly, I don't _know_ the answer to your question, but I hope this helps. Cheers, Erik -- Ph: +34.666334818 web: http://www.locolomo.org S/MIME Certificate: http://www.locolomo.org/crt/2004071206.crt Subject ID: A9:76:7A:ED:06:95:2B:8D:48:97:CE:F2:3F:42:C8:F2:22:DE:4C:B9 Fingerprint: 4A:E8:63:38:46:F6:9A:5D:B4:DC:29:41:3F:62:D3:0A:73:25:67:C2
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?43A31243.5010905>
