Emanuele Rocca <e...@debian.org> writes: > On 2025-01-24 12:08, Colin Watson wrote: >> You can do this with preseed/late_command >> (https://www.debian.org/releases/bookworm/amd64/apbs05.en.html#preseed-hooks, >> and see https://www.debian.org/releases/bookworm/amd64/apb.en.html for >> general advice on preseeding if you haven't used it before). Something >> like this should work: >> >> d-i preseed/late_command string mkdir -p /target/root/.ssh; echo 'ssh-rsa >> ...' >/target/root/.ssh/authorized_keys > > An easy way to do that with preseeding, assuming your setup has network > connectivity, is adding the string Colin mentioned to a file such as > https://example.org/preseed.txt and then appending the following to your > kernel arguments when booting the installer: > > preseed/url=https://example.org/preseed.txt
You can get away with just `url=` there, since `url` is an alias[1] for the `preseed/url` setting. Also, if you put the preseed file in the right place[2], you can actually get away with something like: url=autoserver which is nice if you're having to type things by hand. Cheers, Phil. [1] https://d-i.debian.org/manual/en.amd64/apbs02.html#preseed-aliases [2] https://d-i.debian.org/manual/en.amd64/apbs02.html#preseed-auto -- Philip Hands -- https://hands.com/~phil
signature.asc
Description: PGP signature