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

Re: control the UID/GID assignment by installer

Ross Boylan <rossboylan@stanfordalumni.org> writes:

> On Sun, Sep 28, 2014 at 6:32 PM, Philip Hands <phil@hands.com> wrote:
> .....
>> The right way to do this is almost certainly by creating a new hook
>> script, in an early script -- see:
>>   http://d-i.alioth.debian.org/doc/internals/apb.html#ap-hooks-general
>> Here's an ancient example of doing that:
>>   http://hands.com/d-i/lenny/classes/koolu/early_script.disabled
>> so pick the point in the install that you want to edit the passwd file,
>> and just create a script in one of the hooks that will do that for you.
> How do I make the hook script effective?  Unpack and iso image, add
> the script, recreate the iso?

No, you just need to put it somewhere that you can grab it from, and
then use an early_command to get it -- I've gone completely overboard
with that approach by chaining a load of preseed files together, but you
only really need something like the preseed/early_command from here:


and then put the bits of the above scripts into an early script, and run

Cheers, Phil.
|)|  Philip Hands  [+44 (0)20 8530 9560]  HANDS.COM Ltd.
|-|  http://www.hands.com/    http://ftp.uk.debian.org/
|(|  Hugo-Klemm-Strasse 34,   21075 Hamburg,    GERMANY

Attachment: pgpnSbtZk2VOD.pgp
Description: PGP signature

Reply to: