Andrew M. Lyons wrote:
> 
> 1. im using si_mkautoinstalldisk to make a USB stick to boot from.  I 
> need to set a lot of installation parameters (hostname, ip, network, 
> etc.).  I tried putting all the parameters that are common among the 10 
> boxes (like netmask, gateway, gateway_dev, bittorrent=y etc.) inside a 
> local.cfg and then using the --config </path/to/local.cfg> parameter for 
> si_mkautoinstalldisk.  This placed it on the USB stick, but the image 
> clients dont ever process it.

OK, I see, this is a bug and we'll fix it ASAP. If you use a USB disk
you must put the file directly into the initrd_template
(/usr/share/systemimager/boot/<ARCH>/standard/initrd_template/), so I
think we must remove the --config option from si_mkautoinstalldisk and
add it to si_prepareclient and si_mkbootpackage.

> 
> I can get it to work by placing all the parameters on the append line in 
> syslinux.cfg, but now I have a new problem.  I think my append line is 
> too long.  Some parameters get cut off.  Is there a limit to how long 
> this line can be?  any way around it?

The limit is 255 characters. See /usr/src/linux/include/asm/param.h:
...
#define COMMAND_LINE_SIZE 256
...

The workaround is to use the local.cfg, but as said above with
autoinstall USB disk you must put it into the initrd_template.

> 
> 2. I got all the parameters working on the append line (I had to skip 
> some like monitoring, in order for it to fit).  I booted a client with 
> the standard i386 kernel/initrd.img and everything works fine until the 
> following line in the autoinstall script:
> 
> "chroot /a/ systemconfigurator 
> --excludesto=/etc/systemimager/systemconfig.local.exclude --configsi 
> --stdin << EOL || shellout"
> 
> It dies because it cannot find systemconfigurator.  i noticed that it's 
> in /a/usr/local/bin/ and my path doesnt contain /usr/local/bin.  I 
> manually edited the script so that the path to systemconfigurqator is 
> hard coded:
> 
> "chroot /a/ /usr/local/bin/systemconfigurator 
> --excludesto=/etc/systemimager/systemconfig.local.exclude --configsi 
> --stdin << EOL || shellout"
> 
> and that seems to work.

systemconfigurator should be always installed in /usr/bin in your image,
but ok... we must handle also the /usr/local/bin case. What about adding
an "export PATH=/usr/local/sbin:/usr/local/bin:$PATH" before the
systemconfigurator command?

Regards,
-Andrea


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
sisuite-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sisuite-users

Reply via email to