Preseed not pulling in file from network with wget
On Mon, Mar 26, 2012 at 1:43 PM, Todd A. Jacobs
> I've got the following snippet in a Debian preseed.cfg file:
> d-i preseed/late_command string
> in-target mkdir --mode=700 /home/vagrant/.ssh;
> in-target chown vagrant:vagrant /home/vagrant/.ssh;
> in-target wget --no-check-certificate
> in-target chown vagrant:vagrant /home/vagrant/.ssh/authorized_keys;
> in-target chmod 0600 /home/vagrant/.ssh/authorized_keys;
> but I'm having a terrible time with the preseed not actually installing the
> vagrant.pub key in the .ssh directory. This works when I perform the tasks
> by hand from within the configured system, but the point of the exercise is
> to use the preseed file to "just make it happen."
> Any idea what could be wrong? I find the preseed/late_commands very
> difficult to debug, especially when they aren't throwing any obvious errors.
> On a hunch, I've checked the installer syslog, but the error makes no sense.
> The logs are saying that there's no such directory as /home/vagrant/.ssh,
> but since preseed/late_command should be running after the user has been
> created (along with their home directory and files from /etc/skel) and just
> before the installer unmounts /target, what could possibly be causing this?
When you boot into your install, does "vagrant" exist and is its home
You can add "dbg/flags=all-x" to the kernel boot line.
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact email@example.com
Archive: CAOdo=Sz0UabxTj+a0zHixHJ6r8JMJ_eo3A2pfWgk2WpR7OTkv firstname.lastname@example.org">http://lists.debian.org/CAOdo=Sz0UabxTj+a0zHixHJ6r8JMJ_eo3A2pfWgk2WpR7OTkv email@example.com