Fix for "config(8) "kernel building" instructions lead to bad kernel name (which breaks relink)"

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Fix for "config(8) "kernel building" instructions lead to bad kernel name (which breaks relink)"

Il Ka
See:
https://marc.info/?l=openbsd-bugs&m=152380023916176&w=2


diff --git usr.sbin/config/config.8 usr.sbin/config/config.8
index 748aaab7a..10fdf7b92 100644
--- usr.sbin/config/config.8
+++ usr.sbin/config/config.8
@@ -341,6 +341,7 @@ mounted on
 do the following:
 .Bd -literal -offset indent
 # cd /somedir
+# mkdir SOMEFILE && cd SOMEFILE
 # cp /usr/src/sys/arch/somearch/conf/SOMEFILE .
 # vi SOMEFILE  (to make any changes)
 # config -s /usr/src/sys -b . SOMEFILE
Reply | Threaded
Open this post in threaded view
|

Re: Fix for "config(8) "kernel building" instructions lead to bad kernel name (which breaks relink)"

Jason McIntyre-2
On Mon, Apr 16, 2018 at 12:32:25AM +0300, IL Ka wrote:

> See:
> https://marc.info/?l=openbsd-bugs&m=152380023916176&w=2
>
>
> diff --git usr.sbin/config/config.8 usr.sbin/config/config.8
> index 748aaab7a..10fdf7b92 100644
> --- usr.sbin/config/config.8
> +++ usr.sbin/config/config.8
> @@ -341,6 +341,7 @@ mounted on
>  do the following:
>  .Bd -literal -offset indent
>  # cd /somedir
> +# mkdir SOMEFILE && cd SOMEFILE
>  # cp /usr/src/sys/arch/somearch/conf/SOMEFILE .
>  # vi SOMEFILE  (to make any changes)
>  # config -s /usr/src/sys -b . SOMEFILE

evening.

i'm not sure i like the idea of adding an instruction "mkdir SOMEFILE"
(and no, i don;t want a lesson on directories being files too).

i'd be tempted to remove the instructions for building off a cd-rom, and
leaving it as an exercise to the reader. the second (more common usage
case) works fine, right?

anyone else have an opinion?

jmc

Reply | Threaded
Open this post in threaded view
|

Re: Fix for "config(8) "kernel building" instructions lead to bad kernel name (which breaks relink)"

Il Ka
In reply to this post by Il Ka
Hello,

> i'd be tempted to remove the instructions for building off a cd-rom, and
> leaving it as an exercise to the reader.
I am OK with it.
Lack of instructions is better than instruction that leads to
broken relink.

> the second (more common usage case) works fine, right?
Yes.
Reply | Threaded
Open this post in threaded view
|

Re: Fix for "config(8) "kernel building" instructions lead to bad kernel name (which breaks relink)"

Jason McIntyre-2
In reply to this post by Il Ka
On Mon, Apr 16, 2018 at 12:32:25AM +0300, IL Ka wrote:

> See:
> https://marc.info/?l=openbsd-bugs&m=152380023916176&w=2
>
>
> diff --git usr.sbin/config/config.8 usr.sbin/config/config.8
> index 748aaab7a..10fdf7b92 100644
> --- usr.sbin/config/config.8
> +++ usr.sbin/config/config.8
> @@ -341,6 +341,7 @@ mounted on
>  do the following:
>  .Bd -literal -offset indent
>  # cd /somedir
> +# mkdir SOMEFILE && cd SOMEFILE
>  # cp /usr/src/sys/arch/somearch/conf/SOMEFILE .
>  # vi SOMEFILE  (to make any changes)
>  # config -s /usr/src/sys -b . SOMEFILE

hi.

i just removed both examples related to kernel building. it was out of
date and unhelpful.

jmc