Re: How to make preseed.cfg available in no-internet install?
-----BEGIN PGP SIGNED MESSAGE-----
On 07/04/2014 05:07 PM, Brian wrote:
> On Fri 04 Jul 2014 at 16:30:28 -0400, The Wanderer wrote:
>> On 07/04/2014 04:25 PM, Brian wrote:
>>> What problem are you trying to solve?
>> I expect that (he?) wants to have the process be more-or-less fully
>> automated - i.e., have the mouting and whatever else is necessary
>> for the installer to recognize and use the (externally located)
>> preseed file be handled automatically, preferably without even
>> needing to explicitly specify the preseed-file location at install
> Possibly. The OP's response should clarify that. It's achievable
> wihout touching the initrd.
I'd be interested to know how. This is something I'd actually like to do
myself, at some point, though I don't have an active need for it soon.
>> Assuming the initrd used in the installer environment is
>> customizable / tweakable, this shouldn't be impossible, but I'd
>> have to do some research to figure out how to go about it.
> Basically: gunzip and use cpio on the initrd. Add preseed file.
> Reverse the previous process.
Yes, I know how to modify an initrd.
Putting the preseed file into the initrd would seem to involve baking it
into the (potentially read-only) boot media, though, which he
specifically indicated he wanted to avoid. What I read him as saying he
wants to do is to have the preseed file on a separate (writable) device,
probably a USB stick, and have it be automatically accessed from the
unchanging boot media.
The reason I thought it might be necessary to modify the initrd is to
add scripts to mount the appropriate device, and to specify a default
preseed-file path which is under the resulting mount point.
Depending on how exactly d-i is architected, it doesn't seem impossible
that doing that might even require a custom build of d-i, but it's
certainly far more likely that it wouldn't. As I said, it would
represent a worst-case scenario.
Secrecy is the beginning of tyranny.
A government exists to serve its citizens, not to control them.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
-----END PGP SIGNATURE-----