preseed late_command for dapper

Colin Watson cjwatson at
Mon Mar 13 11:21:33 UTC 2006

On Mon, Mar 13, 2006 at 01:49:39AM -0600, Carl Karsten wrote:
> Now that base-config is gone, how do I run commands like I did with 
> base-config/late_command ?

Use preseed/late_command, taking account of the fact that it's run in
the installation ramdisk and you need to use /target if you want to
access the installed system.

> I want to do:
> echo send host-name \"$(cat /etc/hostname)\"\;  >> /etc/dhcp3/dhclient.conf
> Which may need to be:
> echo send host-name \"$(cat /target/etc/hostname)\"\;  >> 
> /target/etc/dhcp3/dhclient.conf

That second command looks like a reasonable thing to put in

Colin Watson                                       [cjwatson at]

More information about the ubuntu-users mailing list