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

Re: preseed/late_command Question



Anthony Awtrey wrote:
> d-i  preseed/late_command string  cd /target ; chroot . ; \
> wget -q -O - http://intranet/client-install/late_command.sh | \
> /bin/bash

Running "chroot ." with no command leaves the installer sitting at a
chrooted shell forever. In addition, piping to /bin/bash will try to run
that outide the chroot. Also, it's useful to get /target in a usable
state for installing packages, which the in-target command can do.
This should work:

d-i preseed/late_command string wget -q -O /target/tmp/late_command.sh \
http://intranet/client-install/late_command.sh; \
in-target bash /tmp/late_command.sh

-- 
see shy jo

Attachment: signature.asc
Description: Digital signature


Reply to: