Re: d-i preseed/late_command and interactive scripts.
Hello
I also have the problem, Now I want to custom the Debian cd,
d-i preseed/late_command string cp -R /cdrom/iredmail /target/opt/; chroot
/target chmod +x /opt/iredmail/iRedMail.sh; chroot /target bash
/opt/iredmail/iRedMail.sh
I have install dialog, I need use dialog interactive.
but when install 28% and stop,
the whole of the preseed files is below, very simple, just disable DHCP, min
install, install openssh dialog.
d-i netcfg/disable_dhcp boolean true
tasksel tasksel/first multiselect Standard system
d-i pkgsel/include string openssh-server dialog
d-i preseed/late_command string cp -R /cdrom/iredmail /target/opt/; chroot
/target chmod +x /opt/iredmail/iRedMail.sh; chroot /target bash
/opt/iredmail/iRedMail.sh
Ryan Braun wrote:
>
> I have a dialog driven configuration script I want to use to configure
> several
> aspects of the install. The preseed works for the majority of the
> install,
> all the apps get installed, then it doesn't seem to want to run the
> dialog
> script.
>
> I'm not sure if there is an issue with scripts that require user input ( I
> kind of recall reading somewhere this was an issue ).
>
> Here is the line from my preseed file.
>
> d-i preseed/late_command string cp -R /cdrom/ads/sitechooser
> /target/var/opt/;
> in-target /bin/sh /var/opt/sitechooser/sitechooser > /root/log 2>
> /root/error
>
> I can see that the directory tree sitechooser is getting copied into the
> target at /var/opt/sitechooser, but it seems like the script never gets
> run.
> And there doesn't seem to be any script output to /root/log or /root/error
> .
> I've added dialog to the preseed so the package is installed in the
> target,
> and if I drop to a terminal window before the final reboot, I can
> chroot /target;/var/opt/sitechooser/sitechooser and the script will fun
> fine.
>
> Thanks,
>
> Ryan
>
>
> --
> To UNSUBSCRIBE, email to debian-boot-REQUEST@lists.debian.org
> with a subject of "unsubscribe". Trouble? Contact
> listmaster@lists.debian.org
>
>
>
--
View this message in context: http://old.nabble.com/d-i-preseed-late_command-and-interactive-scripts.-tp18717893p29003505.html
Sent from the Debian Boot mailing list archive at Nabble.com.
Reply to: