run script on first boot
Carl Karsten
carl at personnelware.com
Mon Aug 13 22:26:22 UTC 2018
I need to run a script
on first boot
after a preseeded install, so late_command or whatever can set it up.
is this a solved problem?
like how does the "Welcome to Ubuntu" and OEM "Setup your username/pw..."
I don't think these details matter, but if you are interested, the
goal is to move this ansible command from running in under DI to the
real system:
d-i preseed/late_command string cd /target/tmp && unset http_proxy;
wget http://$url/scripts/late_command.sh && chmod u+x late_command.sh
&& in-target /tmp/late_command.sh $url
https://salsa.debian.org/debconf-video-team/ansible/blob/master/roles/tftp-server/files/d-i/xenial/preseed.cfg#L28
https://salsa.debian.org/debconf-video-team/ansible/blob/master/roles/tftp-server/files/scripts/late_command.sh
--
Carl K
More information about the Ubuntu-installer
mailing list