Re: [gentoo-dev] timezone configuration - why copying, not symlinking /etc/localtime ?

2021-04-22 Thread Marek Szuba
On 2021-03-27 23:40, Joshua Kinard wrote: The MIPS machine has functioning local disk drives, and currently, it boots fine by just pulling a kernel off my TFTP server and booting from the local drive, no initramfs needed because I compiled everything into it. Out of curiosity, if your kernel

Re: [gentoo-dev] timezone configuration - why copying, not symlinking /etc/localtime ?

2021-04-22 Thread Marek Szuba
On 2021-03-29 10:06, James Le Cuirot wrote: Have you seen CONFIG_CMDLINE? It lets you bake command line args into the kernel image itself. And since 5.6, there is also bootconfig: https://www.kernel.org/doc/html/latest/admin-guide/bootconfig.html -- MS OpenPGP_signature Description:

Re: [gentoo-dev] timezone configuration - why copying, not symlinking /etc/localtime ?

2021-03-29 Thread James Le Cuirot
On Sun, 28 Mar 2021 19:46:32 -0400 Joshua Kinard wrote: > I've kinda come to this conclusion myself. I could probably host an > extracted, micro-initramfs on my NFS server that would be loaded by the > kernel to jump to $REAL_ROOT. Not *too* much of an issue on the Octane, > because I can

Re: [gentoo-dev] timezone configuration - why copying, not symlinking /etc/localtime ?

2021-03-29 Thread William Hubbs
This is getting really long, so I'm going to remove more things I'm not answering directly. On Sun, Mar 28, 2021 at 07:31:02PM -0400, Joshua Kinard wrote: > > The problem is, there's a chicken-and-egg problem in the scenario where > > / and /usr are on separate partitions, and this is why a

Re: [gentoo-dev] timezone configuration - why copying, not symlinking /etc/localtime ?

2021-03-28 Thread Joshua Kinard
On 3/28/2021 05:25, James Le Cuirot wrote:> On Sat, 27 Mar 2021 18:40:52 -0400 Joshua Kinard > wrote: > >> On 3/27/2021 18:16, James Le Cuirot wrote: >>> On Sat, 27 Mar 2021 17:43:34 -0400 Joshua Kinard >>> wrote: >>> I kinda wish the Linux kernel had an ability to partially boot, init

Re: [gentoo-dev] timezone configuration - why copying, not symlinking /etc/localtime ?

2021-03-28 Thread Joshua Kinard
On 3/28/2021 16:05, William Hubbs wrote: > On Sat, Mar 27, 2021 at 10:51:11PM -0400, Joshua Kinard wrote: >> On 3/27/2021 20:32, William Hubbs wrote: >>> On Sat, Mar 27, 2021 at 05:43:34PM -0400, Joshua Kinard wrote: On 3/23/2021 07:31, Rich Freeman wrote: > On Mon, Mar 22, 2021 at 6:54

Re: [gentoo-dev] timezone configuration - why copying, not symlinking /etc/localtime ?

2021-03-28 Thread William Hubbs
On Sat, Mar 27, 2021 at 10:51:11PM -0400, Joshua Kinard wrote: > On 3/27/2021 20:32, William Hubbs wrote: > > On Sat, Mar 27, 2021 at 05:43:34PM -0400, Joshua Kinard wrote: > >> On 3/23/2021 07:31, Rich Freeman wrote: > >>> On Mon, Mar 22, 2021 at 6:54 PM Andreas K. Huettel > >>> wrote: > >

Re: [gentoo-dev] timezone configuration - why copying, not symlinking /etc/localtime ?

2021-03-28 Thread James Le Cuirot
On Sat, 27 Mar 2021 18:40:52 -0400 Joshua Kinard wrote: > On 3/27/2021 18:16, James Le Cuirot wrote: > > On Sat, 27 Mar 2021 17:43:34 -0400 > > Joshua Kinard wrote: > > > >> I kinda wish the Linux kernel had an ability to partially boot, init the > >> networking subsystem, then fetch an

Re: [gentoo-dev] timezone configuration - why copying, not symlinking /etc/localtime ?

2021-03-27 Thread Joshua Kinard
On 3/27/2021 20:32, William Hubbs wrote: > On Sat, Mar 27, 2021 at 05:43:34PM -0400, Joshua Kinard wrote: >> On 3/23/2021 07:31, Rich Freeman wrote: >>> On Mon, Mar 22, 2021 at 6:54 PM Andreas K. Huettel >>> wrote: >> Council decided years ago that we don't support separate /usr without

Re: [gentoo-dev] timezone configuration - why copying, not symlinking /etc/localtime ?

2021-03-27 Thread Joshua Kinard
On 3/27/2021 21:00, Rich Freeman wrote: > On Sat, Mar 27, 2021 at 5:43 PM Joshua Kinard wrote: >> >> I kinda wish the Linux kernel had an ability to partially boot, init the >> networking subsystem, then fetch an initramfs image over TFTP like it can do >> with NFS Root. That would solve the

Re: [gentoo-dev] timezone configuration - why copying, not symlinking /etc/localtime ?

2021-03-27 Thread Rich Freeman
On Sat, Mar 27, 2021 at 5:43 PM Joshua Kinard wrote: > > I kinda wish the Linux kernel had an ability to partially boot, init the > networking subsystem, then fetch an initramfs image over TFTP like it can do > with NFS Root. That would solve the problem on my MIPS system(s) (and make > install

Re: [gentoo-dev] timezone configuration - why copying, not symlinking /etc/localtime ?

2021-03-27 Thread William Hubbs
On Sat, Mar 27, 2021 at 05:43:34PM -0400, Joshua Kinard wrote: > On 3/23/2021 07:31, Rich Freeman wrote: > > On Mon, Mar 22, 2021 at 6:54 PM Andreas K. Huettel > > wrote: > >> > Council decided years ago that we don't support separate /usr without > an initramfs, but we haven't

Re: [gentoo-dev] timezone configuration - why copying, not symlinking /etc/localtime ?

2021-03-27 Thread Joshua Kinard
On 3/27/2021 18:16, James Le Cuirot wrote: > On Sat, 27 Mar 2021 17:43:34 -0400 > Joshua Kinard wrote: > >> I kinda wish the Linux kernel had an ability to partially boot, init the >> networking subsystem, then fetch an initramfs image over TFTP like it can do >> with NFS Root. That would solve

Re: [gentoo-dev] timezone configuration - why copying, not symlinking /etc/localtime ?

2021-03-27 Thread James Le Cuirot
On Sat, 27 Mar 2021 17:43:34 -0400 Joshua Kinard wrote: > I kinda wish the Linux kernel had an ability to partially boot, init the > networking subsystem, then fetch an initramfs image over TFTP like it can do > with NFS Root. That would solve the problem on my MIPS system(s) (and make >

Re: [gentoo-dev] timezone configuration - why copying, not symlinking /etc/localtime ?

2021-03-27 Thread Joshua Kinard
On 3/23/2021 07:31, Rich Freeman wrote: > On Mon, Mar 22, 2021 at 6:54 PM Andreas K. Huettel > wrote: >> Council decided years ago that we don't support separate /usr without an initramfs, but we haven't completed that transition yet. >>> >>> Which doesn't imply that we deliberately

Re: [gentoo-dev] timezone configuration - why copying, not symlinking /etc/localtime ?

2021-03-23 Thread Rich Freeman
On Mon, Mar 22, 2021 at 6:54 PM Andreas K. Huettel wrote: > > > > Council decided years ago that we don't support separate /usr without > > > an initramfs, but we haven't completed that transition yet. > > > > Which doesn't imply that we deliberately break things. > > That's right. Though we

Re: [gentoo-dev] timezone configuration - why copying, not symlinking /etc/localtime ?

2021-03-23 Thread Jaco Kroon
Hi Andreas, On 2021/03/23 00:54, Andreas K. Huettel wrote: >>> Council decided years ago that we don't support separate /usr without >>> an initramfs, but we haven't completed that transition yet. >> Which doesn't imply that we deliberately break things. > That's right. Though we should at some

Re: [gentoo-dev] timezone configuration - why copying, not symlinking /etc/localtime ?

2021-03-22 Thread Andreas Sturmlechner
On Monday, 22 March 2021 21:18:32 CET Lars Wendler wrote: > With enough motivation we can carry that revert for a very long time. I > know that because I still carry reverts in my udev packages from when > it was devoured by systemd. It is 11.2 KiB worth of patch that at least I know I won't take

Re: [gentoo-dev] timezone configuration - why copying, not symlinking /etc/localtime ?

2021-03-22 Thread Andreas K. Huettel
> > Council decided years ago that we don't support separate /usr without > > an initramfs, but we haven't completed that transition yet. > > Which doesn't imply that we deliberately break things. That's right. Though we should at some point start thinking about an end of support for separate

Re: [gentoo-dev] timezone configuration - why copying, not symlinking /etc/localtime ?

2021-03-22 Thread Lars Wendler
On Mon, 22 Mar 2021 09:59:11 +0100 Andreas Sturmlechner wrote: >On Sonntag, 21. März 2021 08:58:34 CET James Le Cuirot wrote: >> How about making emerge --config dynamic, copying if it's on a >> different partition and symlinking if it's not? You can't accurately >> determine the use of an

Re: [gentoo-dev] timezone configuration - why copying, not symlinking /etc/localtime ?

2021-03-22 Thread Andreas Sturmlechner
On Sonntag, 21. März 2021 08:58:34 CET James Le Cuirot wrote: > How about making emerge --config dynamic, copying if it's on a > different partition and symlinking if it's not? You can't accurately > determine the use of an initramfs but at least this is closer to what > we want. We will not be

Re: [gentoo-dev] timezone configuration - why copying, not symlinking /etc/localtime ?

2021-03-21 Thread Mike Gilbert
On Sun, Mar 21, 2021 at 11:06 PM Thomas Deutschmann wrote: > > On 2021-03-22 03:06, Mike Gilbert wrote: > > Based on that commit message, it looks systemd switched to looking at > > the symlink target instead of /etc/timezone well *after* some major > > distro started using a symlink for

Re: [gentoo-dev] timezone configuration - why copying, not symlinking /etc/localtime ?

2021-03-21 Thread Thomas Deutschmann
PS: Even Debian is mentioning "to follow systemd" when they updated their tzdata package end of 2015, https://bugs.debian.org/803144. OpenPGP_signature Description: OpenPGP digital signature

Re: [gentoo-dev] timezone configuration - why copying, not symlinking /etc/localtime ?

2021-03-21 Thread Thomas Deutschmann
On 2021-03-22 03:06, Mike Gilbert wrote: Based on that commit message, it looks systemd switched to looking at the symlink target instead of /etc/timezone well *after* some major distro started using a symlink for /etc/localtime. I suspect Kay Sievers noticed that the content of /etc/timezone

Re: [gentoo-dev] timezone configuration - why copying, not symlinking /etc/localtime ?

2021-03-21 Thread Mike Gilbert
On Sat, Mar 20, 2021 at 11:37 AM Andreas K. Huettel wrote: > > Hi all, > > why do we *copy* the timezone file to /etc/localtime, instead of symlinking > it like everyone else? > > 1) Our handbook recommends: > > echo "Europe/Brussels" > /etc/timezone > emerge --config sys-libs/timezone-data > >

Re: [gentoo-dev] timezone configuration - why copying, not symlinking /etc/localtime ?

2021-03-21 Thread Mike Gilbert
On Sun, Mar 21, 2021 at 7:58 PM Thomas Deutschmann wrote: > > On 2021-03-20 16:37, Andreas K. Huettel wrote: > > 2) Most other distros seem to just do > > No, not most distros are doing that. systemd is forcing that downstream > (the result is the same)! > > It was added via >

Re: [gentoo-dev] timezone configuration - why copying, not symlinking /etc/localtime ?

2021-03-21 Thread Thomas Deutschmann
On 2021-03-20 16:37, Andreas K. Huettel wrote: 2) Most other distros seem to just do No, not most distros are doing that. systemd is forcing that downstream (the result is the same)! It was added via https://github.com/systemd/systemd/commit/92c4ef2d357baeef78b6f82f119b92f7ed12ac77

Re: [gentoo-dev] timezone configuration - why copying, not symlinking /etc/localtime ?

2021-03-21 Thread James Le Cuirot
On Sun, 21 Mar 2021 05:18:52 +0100 Ulrich Mueller wrote: > > On Sat, 20 Mar 2021, William Hubbs wrote: > > > /etc/localtime should definitely be a symlink to the proper file in > > /usr/share/zoneinfo. > > > This works fine if /usr is on a separate partition *and* you are using > > an

Re: [gentoo-dev] timezone configuration - why copying, not symlinking /etc/localtime ?

2021-03-21 Thread Ulrich Mueller
> On Sun, 21 Mar 2021, Alec Warner wrote: > https://bugs.gentoo.org/737914 seems to imply for some upstreams, it > being a file is not a valid option anymore? > (I'm ignoring the logic of that decision of course, but this was the > original reason this was raised.) Indeed, that's a strange

Re: [gentoo-dev] timezone configuration - why copying, not symlinking /etc/localtime ?

2021-03-20 Thread Alec Warner
On Sat, Mar 20, 2021 at 10:27 PM Ulrich Mueller wrote: > > > On Sun, 21 Mar 2021, Alec Warner wrote: > > >> Which doesn't imply that we deliberately break things. > > > Not sure I follow.. how is updating the handbook breaking anything? > > Both configurations (regular file and symlink) work

Re: [gentoo-dev] timezone configuration - why copying, not symlinking /etc/localtime ?

2021-03-20 Thread Ulrich Mueller
> On Sun, 21 Mar 2021, Alec Warner wrote: >> Which doesn't imply that we deliberately break things. > Not sure I follow.. how is updating the handbook breaking anything? Both configurations (regular file and symlink) work just fine, and sys-libs/timezone-data supports them. I don't see a

Re: [gentoo-dev] timezone configuration - why copying, not symlinking /etc/localtime ?

2021-03-20 Thread Alec Warner
On Sat, Mar 20, 2021 at 9:19 PM Ulrich Mueller wrote: > > > On Sat, 20 Mar 2021, William Hubbs wrote: > > > /etc/localtime should definitely be a symlink to the proper file in > > /usr/share/zoneinfo. > > > This works fine if /usr is on a separate partition *and* you are using > > an

Re: [gentoo-dev] timezone configuration - why copying, not symlinking /etc/localtime ?

2021-03-20 Thread Ulrich Mueller
> On Sat, 20 Mar 2021, William Hubbs wrote: > /etc/localtime should definitely be a symlink to the proper file in > /usr/share/zoneinfo. > This works fine if /usr is on a separate partition *and* you are using > an initramfs. The only time it doesn't work is if /usr is separate > without

Re: [gentoo-dev] timezone configuration - why copying, not symlinking /etc/localtime ?

2021-03-20 Thread William Hubbs
On Sat, Mar 20, 2021 at 05:04:06PM +0100, Nils Freydank wrote: > Hi Andreas, > > Am Samstag, den 20.03.2021 um 16:37:23 Uhr +0100 schrieb "Andreas K. Huettel" > : > > [...] > > Does anyone remember the reason for 1) ? Or is that lost in history? > > I just quote comment 3 from the linked bug

Re: [gentoo-dev] timezone configuration - why copying, not symlinking /etc/localtime ?

2021-03-20 Thread Nils Freydank
Hi Andreas, Am Samstag, den 20.03.2021 um 16:37:23 Uhr +0100 schrieb "Andreas K. Huettel" : > [...] > Does anyone remember the reason for 1) ? Or is that lost in history? I just quote comment 3 from the linked bug https://bugs.gentoo.org/737914#c3: "copying the zonefile to /etc/localtime is a