Re: [systemd-devel] Make systemd-localed modify the kernel commandline for the initrd keymap?

2019-11-25 Thread Colin Walters
On Thu, Oct 31, 2019, at 12:26 PM, Lennart Poettering wrote: > Well, what I proposed is a file. OSTree can cover files on disk, no? Yes...we can try to figure out an extension to version them. > I doubt on AWS you want to configure keymaps though, do you? No, but there are similar server case

Re: [systemd-devel] Make systemd-localed modify the kernel commandline for the initrd keymap?

2019-10-31 Thread Lennart Poettering
On Di, 01.10.19 15:33, Colin Walters (walt...@verbum.org) wrote: > On Sun, Sep 29, 2019, at 6:08 AM, Lennart Poettering wrote: > > > i.e maybe write down a spec, that declares how to store settings > > shared between host OS, boot loader and early-boot kernel environment > > on systems that have n

Re: [systemd-devel] Make systemd-localed modify the kernel commandline for the initrd keymap?

2019-10-31 Thread Lennart Poettering
On Mo, 07.10.19 10:32, Colin Guthrie (gm...@colin.guthr.ie) wrote: > Colin Walters wrote on 01/10/2019 20:33: > > On Sun, Sep 29, 2019, at 6:08 AM, Lennart Poettering wrote: > > > >> i.e maybe write down a spec, that declares how to store settings > >> shared between host OS, boot loader and early

Re: [systemd-devel] Make systemd-localed modify the kernel commandline for the initrd keymap?

2019-10-31 Thread Lennart Poettering
On Mo, 30.09.19 16:07, Hans de Goede (hdego...@redhat.com) wrote: > > So what you are arguing for is replacing the overlay initramfs > > with a key-value config file which gets used by both the bootloader > > and the OS. > > > > That is an interesting concept, esp. since it limits (as you advocate

Re: [systemd-devel] Make systemd-localed modify the kernel commandline for the initrd keymap?

2019-10-31 Thread Lennart Poettering
On Mo, 30.09.19 13:23, Hans de Goede (hdego...@redhat.com) wrote: > > i.e. generating initrd images with cpio and so on is hacky, gluey, > > Linux-specific. If you just use plain simple, standardized config > > files at clearly defined locations, then reading and writing them is > > simple, they c

Re: [systemd-devel] Make systemd-localed modify the kernel commandline for the initrd keymap?

2019-10-07 Thread Colin Guthrie
Colin Walters wrote on 01/10/2019 20:33: > On Sun, Sep 29, 2019, at 6:08 AM, Lennart Poettering wrote: > >> i.e maybe write down a spec, that declares how to store settings >> shared between host OS, boot loader and early-boot kernel environment >> on systems that have no EFI NVRAM, and then we ca

Re: [systemd-devel] Make systemd-localed modify the kernel commandline for the initrd keymap?

2019-10-01 Thread Colin Walters
On Sun, Sep 29, 2019, at 6:08 AM, Lennart Poettering wrote: > i.e maybe write down a spec, that declares how to store settings > shared between host OS, boot loader and early-boot kernel environment > on systems that have no EFI NVRAM, and then we can make use of > that. i.e. come up with semantic

Re: [systemd-devel] Make systemd-localed modify the kernel commandline for the initrd keymap?

2019-09-30 Thread Hans de Goede
Hi, On 30-09-2019 13:23, Hans de Goede wrote: Hi, On 29-09-2019 12:08, Lennart Poettering wrote: On Fr, 27.09.19 16:00, Hans de Goede (hdego...@redhat.com) wrote: Anyway, even if you insist that the Fedora desktop should care about non-EFI, which I can accept, isn't the lesson to learn to

Re: [systemd-devel] Make systemd-localed modify the kernel commandline for the initrd keymap?

2019-09-30 Thread Hans de Goede
Hi, On 29-09-2019 12:08, Lennart Poettering wrote: On Fr, 27.09.19 16:00, Hans de Goede (hdego...@redhat.com) wrote: Anyway, even if you insist that the Fedora desktop should care about non-EFI, which I can accept, isn't the lesson to learn to add some concept like EFI vars to those archs t

Re: [systemd-devel] Make systemd-localed modify the kernel commandline for the initrd keymap?

2019-09-29 Thread Reindl Harald
Am 29.09.19 um 12:08 schrieb Lennart Poettering: > Who are you designing this for anyway? I mean, isn't Fedora dropping > i386 support even these days, so that in particular the Fedora > *desktop* becomes an x86-64 only thing (and thus an EFI-only thing) seriously? what has x86_64 only to do wi

Re: [systemd-devel] Make systemd-localed modify the kernel commandline for the initrd keymap?

2019-09-29 Thread Lennart Poettering
On Fr, 27.09.19 16:16, Hans de Goede (hdego...@redhat.com) wrote: > > > > Secondly, the boot loader specification (the original one, not the > > weird templating/macro language fedora grub adopted) allows multiple > > initrds to be specified, with any path you like (as long as it's > > relative t

Re: [systemd-devel] Make systemd-localed modify the kernel commandline for the initrd keymap?

2019-09-29 Thread Lennart Poettering
On Fr, 27.09.19 16:00, Hans de Goede (hdego...@redhat.com) wrote: > Well until we make sure nothing ever writes outside of the user > homedir security conscious users will likely still want to use I am pretty sure the security conscious users should not run an OS that writes user stuff all over t

Re: [systemd-devel] Make systemd-localed modify the kernel commandline for the initrd keymap?

2019-09-27 Thread Hans de Goede
Hi, On 9/27/19 1:59 PM, Lennart Poettering wrote: On Fr, 27.09.19 10:20, Hans de Goede (hdego...@redhat.com) wrote: "So my plan for regular Fedora for this is as follows: 1. Have a /boot/initramfs-config.img which for now will just contain /etc/vconsole.conf (chances are this will get more

Re: [systemd-devel] Make systemd-localed modify the kernel commandline for the initrd keymap?

2019-09-27 Thread Hans de Goede
Hi, On 9/27/19 1:49 PM, Lennart Poettering wrote: On Mi, 25.09.19 16:50, Hans de Goede (hdego...@redhat.com) wrote: Hi all, Currently, at least in Fedora, but I do not believe that this problem is unique to Fedora, there are 2 problems with keymap handling in the initrd. Hmm, why do you nee

Re: [systemd-devel] Make systemd-localed modify the kernel commandline for the initrd keymap?

2019-09-27 Thread Alexander E. Patrakov
пт, 27 сент. 2019 г. в 16:50, Lennart Poettering : > > 1. full disk encryption with the user typing in the password on the >kbd. But isn't the answer to this to link the root OS to the tpm >instead, and use user-keyed crypto only for $HOME? The OS itself >doesn't need to be protected a

Re: [systemd-devel] Make systemd-localed modify the kernel commandline for the initrd keymap?

2019-09-27 Thread Reindl Harald
Am 27.09.19 um 14:33 schrieb Lennart Poettering: > I mean, this sounds like needless complexity, no? As long as you can > still access your $HOME the OS shouldn't need to be saved. I mean, > that's the idea of Atomic OS that it is immutable, and everywhere > identical and thus can be downloaded a

Re: [systemd-devel] Make systemd-localed modify the kernel commandline for the initrd keymap?

2019-09-27 Thread Mantas Mikulėnas
On Fri, Sep 27, 2019 at 3:18 PM Alberto Ruiz wrote: > > > On Fri, Sep 27, 2019 at 12:50 PM Lennart Poettering > wrote: > >> On Mi, 25.09.19 16:50, Hans de Goede (hdego...@redhat.com) wrote: >> >> > Hi all, >> > >> > Currently, at least in Fedora, but I do not believe that this problem is >> > un

Re: [systemd-devel] Make systemd-localed modify the kernel commandline for the initrd keymap?

2019-09-27 Thread Lennart Poettering
On Fr, 27.09.19 13:17, Alberto Ruiz (ar...@redhat.com) wrote: > > Hmm, why do you need a correct initrd in the early boot? I can see two > > reasons: > > > > 1. full disk encryption with the user typing in the password on the > >kbd. But isn't the answer to this to link the root OS to the tpm

Re: [systemd-devel] Make systemd-localed modify the kernel commandline for the initrd keymap?

2019-09-27 Thread Alberto Ruiz
On Fri, Sep 27, 2019 at 12:50 PM Lennart Poettering wrote: > On Mi, 25.09.19 16:50, Hans de Goede (hdego...@redhat.com) wrote: > > > Hi all, > > > > Currently, at least in Fedora, but I do not believe that this problem is > > unique to Fedora, there are 2 problems with keymap handling in the > >

Re: [systemd-devel] Make systemd-localed modify the kernel commandline for the initrd keymap?

2019-09-27 Thread Reindl Harald
Am 27.09.19 um 13:49 schrieb Lennart Poettering: > 1. full disk encryption with the user typing in the password on the >kbd. But isn't the answer to this to link the root OS to the tpm >instead, and use user-keyed crypto only for $HOME? The OS itself >doesn't need to be protected afte

Re: [systemd-devel] Make systemd-localed modify the kernel commandline for the initrd keymap?

2019-09-27 Thread Lennart Poettering
On Fr, 27.09.19 10:20, Hans de Goede (hdego...@redhat.com) wrote: > Hi, > > On 26-09-2019 14:13, Alberto Ruiz wrote: > > Hello Hans, > > > > Thanks for starting this discussion. > > > > Looking at this from a Fedora/Dracut POV, I think we should look at this as > > the start of implementing a con

Re: [systemd-devel] Make systemd-localed modify the kernel commandline for the initrd keymap?

2019-09-27 Thread Lennart Poettering
On Mi, 25.09.19 16:50, Hans de Goede (hdego...@redhat.com) wrote: > Hi all, > > Currently, at least in Fedora, but I do not believe that this problem is > unique to Fedora, there are 2 problems with keymap handling in the > initrd. Hmm, why do you need a correct initrd in the early boot? I can se

Re: [systemd-devel] Make systemd-localed modify the kernel commandline for the initrd keymap?

2019-09-27 Thread Javier Martinez Canillas
Hello Hans, On 9/27/19 10:20 AM, Hans de Goede wrote: > Hi, > > On 26-09-2019 14:13, Alberto Ruiz wrote: >> Hello Hans, >> >> Thanks for starting this discussion. >> >> Looking at this from a Fedora/Dracut POV, I think we should look at this as >> the start of implementing a configuration-only i

Re: [systemd-devel] Make systemd-localed modify the kernel commandline for the initrd keymap?

2019-09-27 Thread Hans de Goede
Hi, On 26-09-2019 14:13, Alberto Ruiz wrote: Hello Hans, Thanks for starting this discussion. Looking at this from a Fedora/Dracut POV, I think we should look at this as the start of implementing a configuration-only initramfs, (something Matthew Garret has been advocating for a while) rathe

Re: [systemd-devel] Make systemd-localed modify the kernel commandline for the initrd keymap?

2019-09-26 Thread Alberto Ruiz
Hello Hans, Thanks for starting this discussion. Looking at this from a Fedora/Dracut POV, I think we should look at this as the start of implementing a configuration-only initramfs, (something Matthew Garret has been advocating for a while) rather than making this a vconsole.conf/plymouth specif

Re: [systemd-devel] Make systemd-localed modify the kernel commandline for the initrd keymap?

2019-09-26 Thread Hans de Goede
Hi, On 26-09-2019 11:53, Michael Chapman wrote: On Thu, 26 Sep 2019, Hans de Goede wrote: Hi, On 26-09-2019 11:10, Michael Chapman wrote: On Thu, 26 Sep 2019, Hans de Goede wrote: [...] I believe that the best alternative is to have localed append / update a rd.vconsole.keymap=foo argument t

Re: [systemd-devel] Make systemd-localed modify the kernel commandline for the initrd keymap?

2019-09-26 Thread Michael Chapman
On Thu, 26 Sep 2019, Hans de Goede wrote: > Hi, > > On 26-09-2019 11:10, Michael Chapman wrote: > > On Thu, 26 Sep 2019, Hans de Goede wrote: > > [...] > >> I believe that the best alternative is to have localed append / update > >> a rd.vconsole.keymap=foo argument to the kernel commandline, to o

Re: [systemd-devel] Make systemd-localed modify the kernel commandline for the initrd keymap?

2019-09-26 Thread Hans de Goede
Hi, On 26-09-2019 11:10, Michael Chapman wrote: On Thu, 26 Sep 2019, Hans de Goede wrote: [...] I believe that the best alternative is to have localed append / update a rd.vconsole.keymap=foo argument to the kernel commandline, to override the vconsole.conf KEYMAP setting, but only in the initr

Re: [systemd-devel] Make systemd-localed modify the kernel commandline for the initrd keymap?

2019-09-26 Thread Michael Chapman
On Thu, 26 Sep 2019, Hans de Goede wrote: [...] > I believe that the best alternative is to have localed append / update > a rd.vconsole.keymap=foo argument to the kernel commandline, to override > the vconsole.conf KEYMAP setting, but only in the initrd (so that later > runtime changes when booted

Re: [systemd-devel] Make systemd-localed modify the kernel commandline for the initrd keymap?

2019-09-25 Thread Javier Martinez Canillas
Hello Hans, On 9/25/19 4:50 PM, Hans de Goede wrote: > Hi all, > > Currently, at least in Fedora, but I do not believe that this problem is > unique to Fedora, there are 2 problems with keymap handling in the initrd. > > 1: If the keymap in vconsole.conf is changed then this does not apply to th

[systemd-devel] Make systemd-localed modify the kernel commandline for the initrd keymap?

2019-09-25 Thread Hans de Goede
Hi all, Currently, at least in Fedora, but I do not believe that this problem is unique to Fedora, there are 2 problems with keymap handling in the initrd. 1: If the keymap in vconsole.conf is changed then this does not apply to the initrd without rebuilding it. This means that any changes are o