Date: Mon, 9 Feb 2015 17:18:31 +0100 From: Baptiste Daroussin <bapt@freebsd.org> To: John Baldwin <jhb@freebsd.org> Cc: svn-src-projects@freebsd.org, src-committers@freebsd.org Subject: Re: svn commit: r278447 - projects/release-pkg/release/packages/kernel Message-ID: <20150209161830.GH29891@ivaldir.etoilebsd.net> In-Reply-To: <2379227.vPTf1TCfaA@ralph.baldwin.cx> References: <201502091025.t19APxwK057568@svn.freebsd.org> <2379227.vPTf1TCfaA@ralph.baldwin.cx>
next in thread | previous in thread | raw e-mail | index | archive | help
--2xzXx3ruJf7hsAzo Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Feb 09, 2015 at 11:07:19AM -0500, John Baldwin wrote: > On Monday, February 09, 2015 10:25:59 AM Baptiste Daroussin wrote: > > Author: bapt > > Date: Mon Feb 9 10:25:58 2015 > > New Revision: 278447 > > URL: https://svnweb.freebsd.org/changeset/base/278447 > >=20 > > Log: > > Rerunning kldxref after installing the kernel is still needed as > > rc.d/kldxref will happen too late > >=20 > > Added: > > projects/release-pkg/release/packages/kernel/post-install > > - copied unchanged from r278395, > > projects/release-pkg/release/packages/kernel/post-install > >=20 > > Copied: projects/release-pkg/release/packages/kernel/post-install (from > > r278395, projects/release-pkg/release/packages/kernel/post-install) > > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D > > =3D=3D=3D --- /dev/null 00:00:00 1970 (empty, because file is newly add= ed) > > +++ projects/release-pkg/release/packages/kernel/post-install Mon Feb 9 > > 10:25:58 2015 (r278447, copy of r278395, > > projects/release-pkg/release/packages/kernel/post-install) @@ -0,0 +1 @@ > > +/usr/sbin/kldxref /boot/kernel >=20 > Hmm, are you hardcoding /boot/kernel as the location for kernels? I like= to=20 > keep an up-to-date GENERIC on all my boxes at /boot/kernel.GENERIC along = with=20 > /boot/kernel which runs the machine's "custom" config. I do think I like= that=20 > the packages default to /boot/kernel in general (so I can 'pkg install ke= rnel- > <CONF>' to pick a specific conf), but it might be nice to be able to inst= all a=20 > fallback kernel under an alternate name. We are at very early state of packaging but yes before it becomes official = it will allow to have custom location for the kernel (chosen at build time) >=20 > Also, do you have a graceful way of switching configs? That is, if kerne= l-FOO=20 > is installed at /boot/kernel and I want to switch to kernel-BAR, do you j= ust=20 > have to delete FOO and install BAR? That's fine if so, though there is a= =20 > window where you don't have a kernel if you crash / power-failure. :-P N= ot=20 > sure how easy it would be to be able to move the FOO kernel to kernel.old= in=20 > that case and install BAR as /boot/kernel? Nothing planned for that so far, I'm open for suggestions, nothing is done = in pkg yet to allow to move a directory with its content before actually upgra= ding. IMHO that would be a bad idea to have kernel specific hacks, but it sounds a good idea to first anyway create the kernel.old directory. Still don't know= how to do that. >=20 > On a related note, I assume that for base packages you will keep the beha= vior=20 > of preserving /boot/loader.old and /libexec/ld-elf.so.1.old each time the= =20 > respective file changes? (I think those are the only files in userland w= ith=20 > that kind of special magic.) I haven't thought about those, but it is easy to make I'll modity pkg(8) to allow such behaviour. Best regards, Bapt --2xzXx3ruJf7hsAzo Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iEYEARECAAYFAlTY3dYACgkQ8kTtMUmk6ExVYgCdEWrSxgPDoleCSZFnCSS5bOn9 9qQAoIFCEZKxBS4INWSQJ7c/mRxRIWvJ =tS93 -----END PGP SIGNATURE----- --2xzXx3ruJf7hsAzo--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20150209161830.GH29891>