On Sun, 10 Jun 2001, David Eastcott wrote:
> > Also, here are a couple of contributions which may be of interest:
> > I always change the first line of auto-install scripts to
> > #!/usr/bin/perl -cw
> This would make a nice touch to the generated file.
> > and make the scripts executable. After editing you can then simply
> > execute the script to do a syntax check. It only saves three seconds, but
> > it's three seconds that can occur hundreds of times.
> This might be better left to the discretion of the user, but perhaps adding a
> comment to go along with the above #!... would let the user know he has the
> option...
--- usr/bin/perl-install/install_any.pm Wed Apr 18 09:19:12 2001
+++ usr/bin/perl-install/install_any.pm.new Sun Jun 10 16:57:12 2001
@@ -629,7 +629,11 @@
require Data::Dumper;
join('',
- "# You should always check the syntax with 'perl -cw auto_inst.cfg.pl'
before testing\n",
+ "#!/usr/bin/perl -cw\n",
+ "#\n",
+ "# You should check the syntax of this file before using it in an
+auto-install. You\n",
+ "# can do this with 'perl -cw auto_inst.cfg.pl' or by executing this file
+(note the\n",
+ "# '#!/usr/bin/perl -cw' on the first line).\n",
Data::Dumper->Dump([$o], ['$o']), if_($replay,
qq(\npackage install_steps_auto_install;), q(
$graphical = 1;
> > You therefore don't need to do anything once you've started off the
> > auto-install : just have a cup of coffee and come back ten minutes later
> > to find a system that's fully installed and also up and running.
> Neat approach. I gather that you left the orginal section declarations in
> syslinux.cfg and just added a new one? So then you would boot up with the
> floppy, and select 'linux' on the command line to allow the initial install
> to proceed?
Yes (although in my case I also replaced the boot message and added
options for "server" and "client" which use my custom auto-install files).
> Would it not be easier to just wait a few seconds more till the 2nd stage
> install started, then pop the floppy out to acheive the same result? This
> would ensure that the computer really does boot correctly from disk.
I often want to start an auto-install and then get on with something else,
often in a different location. The "pass.bs" technique minimises the time
I have to wait by the machine I'm installing and, once it's written, is
transparent and easy to use (you don't have to do anything!).
Michael