<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=UTF-8" http-equiv="Content-Type">
  <title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
What do you say, are we ready to start deploying binary-version of
this??<br>
<br>
Rickard.<br>
<br>
Niclas Rosell wrote:<br>
<span style="white-space: pre;">&gt; Hi<br>
&gt;<br>
&gt; I have made som changes to resolv a issue with the config variable
in<br>
&gt; rc.conf. Thanks Damien for pointing this out, I didnt read your
question<br>
&gt; properly at first.<br>
&gt; I also renamed the config variable to initial_config in rc.conf, I
think<br>
&gt; this is a better name.<br>
&gt; Now createconfig will only run from rc if initial_config exists
and is<br>
&gt; set to YES. Upgrading from older releases that does not have<br>
&gt; initial_config variable should now be safe.<br>
&gt;<br>
&gt; /Niclas<br>
&gt;<br>
&gt;<br>
&gt; ons 2007-06-20 klockan 10:22 +0200 skrev Niclas Rosell:</span><br>
<blockquote type="cite">Hello<br>
  <br>
The changes i have made does not change the bootup behavior unless<br>
config=YES is in rc.conf.<br>
The "restoration" process (in rc.initial) of backup files on the<br>
flash card is left untouched. When running a system with config=YES<br>
(or by running createconfig manually) you are asked if you want to<br>
make a backup of your changes. If the answer is yes then the changed<br>
files will be copied to /flash/conf/ and will be restored by rc at<br>
next reboot.<br>
Any changes made at any time can be backed up by running the command<br>
backupconfig. By default it only looks in /etc but you can change<br>
this by editing /etc/backup.conf. Take a look in /flash/conf/ after<br>
running backupconfig to verify.<br>
Good to know is that if a USB memory stick is plugged in then that<br>
will be used as /flash instead of the flash disk.<br>
  <br>
At first I did not use config=NO/YES but instead i checked if there<br>
was a backup on flash and used that instead of going into<br>
createconfig (no questions asked), but that was before I was thinking<br>
of backing up to a USB memory.<br>
  <br>
I was thinking of renaming createconfig/backupconfig to<br>
flashboot-autoconf/flashboot-backup. (thanks to Jakob for helping out<br>
with the names)<br>
  <br>
Niclas<br>
  <br>
  <br>
&gt;&gt;&gt; -----Ursprungligt meddelande-----<br>
&gt;&gt;&gt; Från: Damien Miller [<a class="moz-txt-link-freetext" href="mailto:djm@mindrot.org">mailto:djm@mindrot.org</a>]<br>
&gt;&gt;&gt; Skickat: den 20 juni 2007 06:43<br>
&gt;&gt;&gt; Till: Niclas Rosell<br>
&gt;&gt;&gt; Kopia: <a class="moz-txt-link-abbreviated" href="mailto:flashboot@mindrot.org">flashboot@mindrot.org</a><br>
&gt;&gt;&gt; Ämne: Re: [flashboot] New backup and network configuration
tools<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; On Fri, 15 Jun 2007, Niclas Rosell wrote:<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; -----BEGIN PGP SIGNED MESSAGE-----<br>
&gt;&gt;&gt;&gt; Hash: SHA1<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; Hi<br>
&gt;&gt;&gt;&gt; A few hours ago Jakob committed a some diffs from me.<br>
&gt;&gt;&gt;&gt; It includes a new backup tool (backupconfig) and a
network<br>
&gt;&gt;&gt;&gt; configuration tool (createconfig).<br>
&gt;&gt;&gt;&gt; Here is the short description of what it does.<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; Createconfig is checking for existing backups and
presents a<br>
&gt;&gt;&gt;&gt; (very short) list of devices containing backups. It
should detect<br>
&gt;&gt;&gt; if a usb<br>
&gt;&gt;&gt;&gt; memory is inserted and contains a /conf/etc folder.<br>
&gt;&gt;&gt;&gt; It then presents 4 options which should be
self-explainatory.<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; 0. Use existing config<br>
&gt;&gt;&gt;&gt; 1. Manual setup<br>
&gt;&gt;&gt;&gt; 2. DHCP<br>
&gt;&gt;&gt;&gt; 3. Do not run createconfig<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; Backupconfig uses /etc/backup.conf and mtree to decide
what<br>
&gt;&gt;&gt; files to<br>
&gt;&gt;&gt;&gt; backup. backup.conf is for directories to look for
changes<br>
&gt;&gt;&gt; and mtree<br>
&gt;&gt;&gt;&gt; for files different then the version in bsd.gz. The
backup is<br>
&gt;&gt;&gt;&gt; then  copied to /flash/conf/.<br>
&gt;&gt;&gt;&gt; A mtree of the initial filesystem is stored in<br>
&gt;&gt;&gt; /root/flashboot.mtree.<br>
&gt;&gt;&gt;&gt; Flashboot.mtree is created at the end of list.<br>
&gt;&gt;&gt; Thanks, I'm sure a lot of people will find these useful.<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; Are there any caveats for people who are running flashboot<br>
&gt;&gt;&gt; systems who upgrade the a new image that incorporates these<br>
&gt;&gt;&gt; changes? It seems that their systems may not come back<br>
&gt;&gt;&gt; properly from a reboot if the "config" variable is not set
in<br>
&gt;&gt;&gt; rc.conf. <br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; -d<br>
</blockquote>
_______________________________________________<br>
flashboot mailing list<br>
<a class="moz-txt-link-abbreviated" href="mailto:flashboot@mindrot.org">flashboot@mindrot.org</a><br>
<a class="moz-txt-link-freetext" href="http://lists.mindrot.org/mailman/listinfo/flashboot">http://lists.mindrot.org/mailman/listinfo/flashboot</a><br>
<span style="white-space: pre;">&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;</span><br>
-------------------------<br>
<span style="white-space: pre;">&gt;&gt;</span><br>
_______________________________________________<br>
flashboot mailing list<br>
<a class="moz-txt-link-abbreviated" href="mailto:flashboot@mindrot.org">flashboot@mindrot.org</a><br>
<a class="moz-txt-link-freetext" href="https://lists.mindrot.org/mailman/listinfo/flashboot">https://lists.mindrot.org/mailman/listinfo/flashboot</a><br>
<br>
</body>
</html>