I completely forgot about the HTTP service - thanks. On Thursday, 30 May 2019 07:21:16 UTC-4, Rickard von Essen wrote: > > You can pass arguments from the boot_command to kickstart that you can > read in your pre and post scripts. A good way is to pass a base url > http://{{ .HTTPIP}}:{{ .HTTPPort }} and put your scripts in the > http_directory. Then in your kickstart script you can just curl/wget > additional scripts and execute them. For how to pass arguments to kickstart > see 1). > > But it might actually be more convenient to just inline everything into > the kickstart cfg. > > 1) > https://serverfault.com/questions/372609/how-do-i-pass-arguments-from-the-pxe-command-line-to-a-kickstart-pre-post-scr > > On Tue, May 28, 2019 at 11:18 PM Mike <[email protected] <javascript:>> > wrote: > >> I have Centos 7 kickstart scripts. The main kickstart file (the one >> loaded by boot_command) uses several other scripts. These all need to added >> to the Centos minimal ISO that I am using to build my full QEmu VM. >> >> What is the best way to make all these scripts available to the main >> kickstart file? I think the kickstart script is expecting to find them >> under /mnt/source. >> >> I've tried using floppy_dir but then I can't mount the floppy drive >> before the image is built. File provisioners run after the image is built. >> >> Thanks >> >> -- >> This mailing list is governed under the HashiCorp Community Guidelines - >> https://www.hashicorp.com/community-guidelines.html. Behavior in >> violation of those guidelines may result in your removal from this mailing >> list. >> >> GitHub Issues: https://github.com/mitchellh/packer/issues >> IRC: #packer-tool on Freenode >> --- >> You received this message because you are subscribed to the Google Groups >> "Packer" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected] <javascript:>. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/packer-tool/cce5bbab-de06-4662-ad0f-151316a9d905%40googlegroups.com >> >> <https://groups.google.com/d/msgid/packer-tool/cce5bbab-de06-4662-ad0f-151316a9d905%40googlegroups.com?utm_medium=email&utm_source=footer> >> . >> For more options, visit https://groups.google.com/d/optout. >> >
-- This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list. GitHub Issues: https://github.com/mitchellh/packer/issues IRC: #packer-tool on Freenode --- You received this message because you are subscribed to the Google Groups "Packer" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/packer-tool/a1dab8b5-6157-4fcd-9c6c-2cffede14558%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
