From: Jacob Moody <moody@mail.posixcafe.org>
To: 9front@9front.org
Subject: Re: [9front] [PATCH] embed git head hash as /dev/head
Date: Tue, 14 Jun 2022 13:37:44 -0600 [thread overview]
Message-ID: <99f34c74-1578-c00a-8237-66b00fb2a1f5@posixcafe.org> (raw)
In-Reply-To: <b5156cb7bf5d0d73@orthanc.ca>
On 6/14/22 11:32, Lyndon Nerenberg (VE7TFX/VE6BBM) wrote:
>> Wasn't aware we shipped with other version control software :P.
>
> It was hg until just a few months ago. Don't assume it will be git
> this time next year.
Yeah fair point.
>
> Also, I am not a fan of /dev/head. I'd prefer to see this as an attribute
> of /dev/config, perhaps added to the start of its output:
>
> term% cat /dev/config
> # kernel version xyzzy
> #
> # pc64 - amd64 pc terminal with local disk
> [...]
> term%
>
> 'xyzzy' can be whatever version string is appropriate.
>
> To be clear, I'm talking about having the /dev/config driver synthesize
> those first two lines whenever someone does a read on the file.
>
If we did want to add it, I think this would be the way to go.
A lot less intrusive if it does/doesn't exist.
But to take a step back, I haven't seen anyone _love_
this idea. My original intent with this was to provide
the revision in the kernel to assist in debugging.
But I am not entirely convinced this would be useful.
We already have KERNDATE, and it's quite easy to just
say 'update your kernel if you haven't in a while'.
If it becomes suspect in a debugging session.
Since the general update flow to me seems to be:
: sysupdate
: @{ cd /sys/src/ && mk install }
What might be more useful is keeping track of where we
updated from. To have a list of commits as suspect for
if a bug appears after updating. You have this to some extent
already, if you update and things break today, you have a dump
from yesterday with your previous commit hash in /dist/plan9front.
That works fine, but does assume daily dumps. To avoid that assumption
you could have something like /dist/plan9front/revisions or /sys/log/revisions,
append only files that just log the jumps between versions done by sysupdate.
But I dont love this either.
Thanks,
moody
next prev parent reply other threads:[~2022-06-14 19:40 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-06-10 7:32 Jacob Moody
2022-06-10 14:07 ` ori
2022-06-10 16:03 ` Jacob Moody
2022-06-14 17:32 ` Lyndon Nerenberg (VE7TFX/VE6BBM)
2022-06-14 19:37 ` Jacob Moody [this message]
2022-06-10 19:01 ` mkf9
2022-06-10 19:13 ` Jacob Moody
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=99f34c74-1578-c00a-8237-66b00fb2a1f5@posixcafe.org \
--to=moody@mail.posixcafe.org \
--cc=9front@9front.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).