Discussion:
bootonly release target not creating etc/ssh/
(too old to reply)
Roger Pau Monné
2017-11-09 17:55:52 UTC
Permalink
Hello,

Since recently it seems like the bootonly release make target doesn't
create the etc/ssh directory. I've usually done:

# make buildworld
# make buildkernel
# make -C release ftp
# make -C release bootonly
# cp <keys> release/bootonly/etc/ssh/

But the ssh directory doesn't seem to exist anymore. Is this expected?

I expect also trying to launch sshd inside of that install is going to
cause trouble, but I cannot verify because I cannot finish building
the image.

Thanks, Roger.
Herbert J. Skuhra
2017-11-09 23:33:01 UTC
Permalink
On Thu, 09 Nov 2017 18:55:52 +0100,
Post by Roger Pau Monné
Hello,
Since recently it seems like the bootonly release make target doesn't
# make buildworld
# make buildkernel
# make -C release ftp
# make -C release bootonly
# cp <keys> release/bootonly/etc/ssh/
But the ssh directory doesn't seem to exist anymore. Is this expected?
Hi,

on my system the files are no longer in $SRCPATH/release but in
/usr/obj/$SRCPATH/$TARGET.$TARGET_ARCH/release:

$ ls -l /usr/obj/usr/home/herbert/source/freebsd/head/src/amd64.amd64/release/bootonly/etc/ssh
total 54
-rw-r--r-- 1 root wheel 553185 10 Nov 00:26 moduli
-rw-r--r-- 1 root wheel 1780 10 Nov 00:26 ssh_config
-rw-r--r-- 1 root wheel 3359 10 Nov 00:26 sshd_config


Not sure if this is expected, a bug or PBKAC. :)

--
Herbert
Roger Pau Monné
2017-12-01 13:50:39 UTC
Permalink
Post by Herbert J. Skuhra
On Thu, 09 Nov 2017 18:55:52 +0100,
Post by Roger Pau Monné
Hello,
Since recently it seems like the bootonly release make target doesn't
# make buildworld
# make buildkernel
# make -C release ftp
# make -C release bootonly
# cp <keys> release/bootonly/etc/ssh/
But the ssh directory doesn't seem to exist anymore. Is this expected?
Hi,
on my system the files are no longer in $SRCPATH/release but in
$ ls -l /usr/obj/usr/home/herbert/source/freebsd/head/src/amd64.amd64/release/bootonly/etc/ssh
total 54
-rw-r--r-- 1 root wheel 553185 10 Nov 00:26 moduli
-rw-r--r-- 1 root wheel 1780 10 Nov 00:26 ssh_config
-rw-r--r-- 1 root wheel 3359 10 Nov 00:26 sshd_config
Not sure if this is expected, a bug or PBKAC. :)
Thanks! The main problem is that the flow specified above is run
inside of a script, that should be able to build images pre/post
whatever changeset that modified this behavior. IMHO there should be
a way to restore previous behavior.
FWIW, the previous behavior can be restored by using -DWITHOUT_AUTO_OBJ, ie:

# make -C release bootonly -DWITHOUT_AUTO_OBJ

Roger.

Loading...