[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: How to make preseed.cfg available in no-internet install?



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

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
>> time.
> 
> 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.

- --
   The Wanderer

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/

iQIcBAEBCgAGBQJTtxwBAAoJEASpNY00KDJrKx0P/A2z1YwzW0C9MguRpfLcugHz
a+/oSfRL2WT+7RCgPagOTxBnCPCnrit4o8Hho4Ybfngh7+EuKkMJNUq0bBFp0mq1
m6u+u6A3sqiI8NXzBPEbR4GI8UTeFXc0tjvNzcPKjaB0pNdTTgihM8+ZQ/tBHG+J
PAZiAg5hpggTjuTegUoBX/742371XGr8o6+2ULFt7bn+5frzg8pOwsen5qpFyOiZ
xNQ6DrFESxzUSKeFq8qRUSElF67Ux4OK5y6x4api18xd+WkcBjS0C7xyUVmd1/nS
HoAS4/jN3XjmNas8oC4Ch6uqth2AlbxgXOKeiYrRNwpslThgX5LKXBjv/4TwH9p1
ERE5POxuf7kH3Nk/7/a9Y+QvScAyzGJ5F5r9zg3Lm2FK/aF9prz2moy5K19YYxJp
5FK16Sa9s5S6EFD13zIJfbx34HEwQn9wcRS5dMzFuKPXvf1+kGlL34viN1pnrjFM
8JcDJqusjUA+tTizqb6/u5UGXnB+FEis2zbuInyGCVpJRPAbEiJSGEOm2JSGG2CV
PhB7cOp+VCJj1cYVVwfxoSedcHRpGlGcLph6Rg4za63fJgzbYQtybuEsmYBr0YXc
4TZaOz57UnmmRHWj/DwrU6W9kKKGoC8p0rVnS05fNC0+lEb2L7afVzLi5ITgb8pG
QVUkTzGx2wuNuwQrh+Ui
=J4nb
-----END PGP SIGNATURE-----


Reply to: