Hello everybody,
I'm trying to install Debian over PXE.
I want to include extra packages in preseed conf with "d -i pkgsel/include".
Extra packages are listed in /PACKAGES, and that list is generated by a debconf question included in early_command.
My preseed file contains:
[code]d-i preseed/early_command string tftp -g -r PACKAGES.tar TFTP_SERVER; tar -x PACKAGES.tar
d -i pkgsel/include string $(for i in $(cat PACKAGES/debconf_answer.txt); do for l in $(ls PACKAGES/$i/*); do cat $l ; done ; done)[/code]
But installer does not have access to /PACKAGES at the moment pkgsel/include is called (installer might use /target as root?)
If I modify preseed :
[code]d-i preseed/early_command string tftp -g -r PACKAGES.tar TFTP_SERVER; tar -x PACKAGES.tar ; mkdir /target ; cp -R /PACKAGES /target
d -i pkgsel/include string $(for i in $(cat PACKAGES/debconf_answer.txt); do for l in $(ls PACKAGES/$i/*); do cat $l ; done ; done)[/code]
it doesn't get better, because installer overwrites /PACKAGES when /target is created.
I also tried to access /PACKAGES located on the server but of course it didn't work either:
How can I do it?
Thanks all for your help!!