Re: [gentoo-user] systemd and initramfs

2013-08-23 Thread Stefan G. Weichinger
Am 23.08.2013 00:44, schrieb Neil Bothwick: /etc/grub.d/40_custom Add you entries there, and change the number in the filename to have them appear before the autogenerated entries. Thanks for the pointer. Gotta play with that.

Re: [gentoo-user] systemd and initramfs

2013-08-22 Thread J. Roeleveld
On Wed, August 21, 2013 22:02, Neil Bothwick wrote: On Wed, 21 Aug 2013 11:50:57 -0400, Tanstaafl wrote: This sounds like a bug in LVM. If it was down to a version clash, why did a restart find the PVs? Sorry, ianap, but I do know that this kind of thing has never happened to me in my 8+

Re: [gentoo-user] systemd and initramfs

2013-08-22 Thread Alan McKinnon
On 22/08/2013 08:20, J. Roeleveld wrote: On Wed, August 21, 2013 22:02, Neil Bothwick wrote: On Wed, 21 Aug 2013 11:50:57 -0400, Tanstaafl wrote: [snip] No one has demonstrated that it can. An initramfs isn't magic, it caries out a couple of trivial tasks before switching to the real root

Re: [gentoo-user] systemd and initramfs

2013-08-22 Thread J. Roeleveld
On Thu, August 22, 2013 08:39, Alan McKinnon wrote: On 22/08/2013 08:20, J. Roeleveld wrote: On Wed, August 21, 2013 22:02, Neil Bothwick wrote: On Wed, 21 Aug 2013 11:50:57 -0400, Tanstaafl wrote: [snip] No one has demonstrated that it can. An initramfs isn't magic, it caries out a

Re: [gentoo-user] systemd and initramfs

2013-08-22 Thread Neil Bothwick
On Thu, 22 Aug 2013 10:23:57 +0200, J. Roeleveld wrote: True, but with the scripts that are floating in this thread, a usable solution can be build. It took me a few seconds to do that, so why hasn't it been done before? It's obviously not due to the work involved, so it must be that no one

Re: [gentoo-user] systemd and initramfs

2013-08-22 Thread Neil Bothwick
On Thu, 22 Aug 2013 08:20:23 +0200, J. Roeleveld wrote: No one has demonstrated that it can. An initramfs isn't magic, it caries out a couple of trivial tasks before switching to the real root partition. The issue mentioned was an example. It was also: 1) The only one I can remember

Re: [gentoo-user] systemd and initramfs

2013-08-22 Thread Neil Bothwick
On Thu, 22 Aug 2013 07:26:38 +0200, J. Roeleveld wrote: So the only out of sync scenario that should matter is with the kernel or kernel modules. Even if it were out of sync with your current toolset it should still be able to perform the pivot. Shouldn't any userland stuff that breaks

Re: [gentoo-user] systemd and initramfs

2013-08-22 Thread Mark David Dumlao
On Aug 22, 2013 1:28 PM, J. Roeleveld jo...@antarean.org wrote: Correct, and here lies the cause for the out of sync scenario. So the only out of sync scenario that should matter is with the kernel or kernel modules. Even if it were out of sync with your current toolset it should still be

Re: [gentoo-user] systemd and initramfs

2013-08-22 Thread Alan McKinnon
On 22/08/2013 13:47, Mark David Dumlao wrote: On Aug 22, 2013 1:28 PM, J. Roeleveld jo...@antarean.org mailto:jo...@antarean.org wrote: Correct, and here lies the cause for the out of sync scenario. So the only out of sync scenario that should matter is with the kernel or kernel modules.

Re: [gentoo-user] systemd and initramfs

2013-08-22 Thread J. Roeleveld
On Thu, August 22, 2013 11:07, Neil Bothwick wrote: On Thu, 22 Aug 2013 10:23:57 +0200, J. Roeleveld wrote: True, but with the scripts that are floating in this thread, a usable solution can be build. It took me a few seconds to do that, so why hasn't it been done before? It's obviously not

Re: [gentoo-user] systemd and initramfs

2013-08-22 Thread J. Roeleveld
On Thu, August 22, 2013 11:17, Neil Bothwick wrote: On Thu, 22 Aug 2013 08:20:23 +0200, J. Roeleveld wrote: No one has demonstrated that it can. An initramfs isn't magic, it caries out a couple of trivial tasks before switching to the real root partition. The issue mentioned was an

Re: [gentoo-user] systemd and initramfs

2013-08-22 Thread Neil Bothwick
On Thu, 22 Aug 2013 14:55:58 +0200, J. Roeleveld wrote: No thanks you. As Alan said, portage doesn't have a mechanism to run a command after a batch emerge, it would have to be done after every single package. So the next time a bunch of Perl packages and their virtuals are updated, look

Re: [gentoo-user] systemd and initramfs

2013-08-22 Thread Stefan G. Weichinger
Am 20.08.2013 08:54, schrieb Canek Peláez Valdés: Unless you want to learn the ins and outs of using an initramfs (and having a lot of fun and failed boots in the process), I highly recommend using Dracut. It does everything for you. I'd dig a short and working howto systemd and dracut. My

Re: [gentoo-user] systemd and initramfs

2013-08-22 Thread Neil Bothwick
On Thu, 22 Aug 2013 23:08:43 +0200, Stefan G. Weichinger wrote: Additionally I would really like to understand how to influence the default entry for grub2 ... letting grub2-mkconfig detect the available options is one thing ... but do I really have to count down the available kernels and

Re: [gentoo-user] systemd and initramfs

2013-08-21 Thread thegeezer
On 08/21/2013 02:13 AM, Canek Peláez Valdés wrote: On Tue, Aug 20, 2013 at 7:32 PM, Walter Dnes waltd...@waltdnes.org wrote: On Tue, Aug 20, 2013 at 01:54:26AM -0500, Canek Peláez Valdés wrote No, the kernel has a mini filesystem (doesn't matter which directory structure has inside), and it

Re: [gentoo-user] systemd and initramfs

2013-08-21 Thread Tanstaafl
On 2013-08-21 3:06 AM, thegeezer thegee...@thegeezer.net wrote: On 08/21/2013 02:13 AM, Canek Peláez Valdés wrote: The worry about falling out of sync, although justified, I think it's a little overreacted; even for things like LVM2 and NFS, how many times changes the metadata or format used by

Re: [gentoo-user] systemd and initramfs

2013-08-21 Thread Neil Bothwick
On Wed, 21 Aug 2013 10:40:32 -0400, Tanstaafl wrote: update LVM2 kernel remains the same reboot initramfs finds all PVS and activates VG main system init /etc/init.d/lvm2 start error can't read from USB PVS login to system with missing PVS /etc/init.d/lvm2 restart all PVS

Re: [gentoo-user] systemd and initramfs

2013-08-21 Thread Tanstaafl
On 2013-08-21 11:10 AM, Neil Bothwick n...@digimed.co.uk wrote: On Wed, 21 Aug 2013 10:40:32 -0400, Tanstaafl wrote: update LVM2 kernel remains the same reboot initramfs finds all PVS and activates VG main system init /etc/init.d/lvm2 start error can't read from USB PVS login to system with

Re: [gentoo-user] systemd and initramfs

2013-08-21 Thread thegeezer
On 08/21/2013 04:10 PM, Neil Bothwick wrote: On Wed, 21 Aug 2013 10:40:32 -0400, Tanstaafl wrote: update LVM2 kernel remains the same reboot initramfs finds all PVS and activates VG main system init /etc/init.d/lvm2 start error can't read from USB PVS login to system with missing PVS

Re: [gentoo-user] systemd and initramfs

2013-08-21 Thread Canek Peláez Valdés
On Wed, Aug 21, 2013 at 10:54 AM, thegeezer thegee...@thegeezer.net wrote: On 08/21/2013 04:10 PM, Neil Bothwick wrote: On Wed, 21 Aug 2013 10:40:32 -0400, Tanstaafl wrote: update LVM2 kernel remains the same reboot initramfs finds all PVS and activates VG main system init

Re: [gentoo-user] systemd and initramfs

2013-08-21 Thread thegeezer
On 08/21/2013 05:42 PM, Canek Peláez Valdés wrote: On Wed, Aug 21, 2013 at 10:54 AM, thegeezer thegee...@thegeezer.net wrote: On 08/21/2013 04:10 PM, Neil Bothwick wrote: On Wed, 21 Aug 2013 10:40:32 -0400, Tanstaafl wrote: update LVM2 kernel remains the same reboot initramfs finds all PVS

Re: [gentoo-user] systemd and initramfs

2013-08-21 Thread Mike Gilbert
On Wed, Aug 21, 2013 at 12:56 PM, thegeezer thegee...@thegeezer.net wrote: anyone have any good pointers to an initramfs interrogator, maybe that takes as argument kernel command line ? If you are looking to test an initramfs, qemu is handy. qemu-kvm -kernel /boot/vmlinuz -initrd

Re: [gentoo-user] systemd and initramfs

2013-08-21 Thread Neil Bothwick
On Wed, 21 Aug 2013 17:56:36 +0100, thegeezer wrote: anyone have any good pointers to an initramfs interrogator, maybe that takes as argument kernel command line ? I posted a script fragment that compares the contents of the kernel's initramfs config file with the live filesystem. Dracut users

Re: [gentoo-user] systemd and initramfs

2013-08-21 Thread Tanstaafl
On 2013-08-21 2:52 PM, Neil Bothwick n...@digimed.co.uk wrote: On Wed, 21 Aug 2013 17:56:36 +0100, thegeezer wrote: anyone have any good pointers to an initramfs interrogator, maybe that takes as argument kernel command line ? I posted a script fragment that compares the contents of the

Re: [gentoo-user] systemd and initramfs

2013-08-21 Thread Mike Gilbert
On Wed, Aug 21, 2013 at 3:09 PM, Tanstaafl tansta...@libertytrek.org wrote: On 2013-08-21 2:52 PM, Neil Bothwick n...@digimed.co.uk wrote: On Wed, 21 Aug 2013 17:56:36 +0100, thegeezer wrote: anyone have any good pointers to an initramfs interrogator, maybe that takes as argument kernel

Re: [gentoo-user] systemd and initramfs

2013-08-21 Thread Neil Bothwick
On Wed, 21 Aug 2013 11:50:57 -0400, Tanstaafl wrote: This sounds like a bug in LVM. If it was down to a version clash, why did a restart find the PVs? Sorry, ianap, but I do know that this kind of thing has never happened to me in my 8+ years of running this old system with a separate

Re: [gentoo-user] systemd and initramfs

2013-08-21 Thread thegeezer
On 08/21/2013 07:52 PM, Neil Bothwick wrote: On Wed, 21 Aug 2013 17:56:36 +0100, thegeezer wrote: anyone have any good pointers to an initramfs interrogator, maybe that takes as argument kernel command line ? I posted a script fragment that compares the contents of the kernel's initramfs

Re: [gentoo-user] systemd and initramfs

2013-08-21 Thread Neil Bothwick
On Wed, 21 Aug 2013 21:09:41 +0100, thegeezer wrote: I posted a script fragment that compares the contents of the kernel's initramfs config file with the live filesystem. Dracut users could use the same method by parsing the output from lsinitrd. the script you posted referenced

Re: [gentoo-user] systemd and initramfs

2013-08-21 Thread Mark David Dumlao
On Tue, Aug 20, 2013 at 6:57 PM, Tanstaafl tansta...@libertytrek.org wrote: On 2013-08-20 2:54 AM, Canek Peláez Valdés can...@gmail.com wrote: Unless you want to learn the ins and outs of using an initramfs (and having a lot of fun and failed boots in the process), I highly recommend using

Re: [gentoo-user] systemd and initramfs

2013-08-21 Thread J. Roeleveld
On Tue, Aug 20, 2013 at 6:57 PM, Tanstaafl tansta...@libertytrek.org wrote: On 2013-08-20 2:54 AM, Canek Peláez Valdés can...@gmail.com wrote: Unless you want to learn the ins and outs of using an initramfs (and having a lot of fun and failed boots in the process), I highly recommend using

Re: [gentoo-user] systemd and initramfs

2013-08-20 Thread Helmut Jarausch
On 08/19/2013 04:55:29 PM, Mike Gilbert wrote: On Mon, Aug 19, 2013 at 5:58 AM, Helmut Jarausch jarau...@igpm.rwth-aachen.de wrote: Hi, what binaries and libraries have to be put into an initramfs for a system booting with init=/usr/lib/systemd/systemd ? (I am building the initramsfs

Re: [gentoo-user] systemd and initramfs

2013-08-20 Thread Alan McKinnon
On 20/08/2013 08:44, Helmut Jarausch wrote: On 08/19/2013 04:55:29 PM, Mike Gilbert wrote: On Mon, Aug 19, 2013 at 5:58 AM, Helmut Jarausch jarau...@igpm.rwth-aachen.de wrote: Hi, what binaries and libraries have to be put into an initramfs for a system booting with

Re: [gentoo-user] systemd and initramfs

2013-08-20 Thread Canek Peláez Valdés
On Tue, Aug 20, 2013 at 1:44 AM, Helmut Jarausch jarau...@igpm.rwth-aachen.de wrote: On 08/19/2013 04:55:29 PM, Mike Gilbert wrote: On Mon, Aug 19, 2013 at 5:58 AM, Helmut Jarausch jarau...@igpm.rwth-aachen.de wrote: Hi, what binaries and libraries have to be put into an initramfs for a

Re: [gentoo-user] systemd and initramfs

2013-08-20 Thread Helmut Jarausch
On 08/20/2013 08:54:26 AM, Canek Peláez Valdés wrote: On Tue, Aug 20, 2013 at 1:44 AM, Helmut Jarausch jarau...@igpm.rwth-aachen.de wrote: On 08/19/2013 04:55:29 PM, Mike Gilbert wrote: On Mon, Aug 19, 2013 at 5:58 AM, Helmut Jarausch jarau...@igpm.rwth-aachen.de wrote: Hi, what

Re: [gentoo-user] systemd and initramfs

2013-08-20 Thread Tanstaafl
On 2013-08-20 2:54 AM, Canek Peláez Valdés can...@gmail.com wrote: Unless you want to learn the ins and outs of using an initramfs (and having a lot of fun and failed boots in the process), I highly recommend using Dracut. It does everything for you. What about a previous posters comment that

Re: [gentoo-user] systemd and initramfs

2013-08-20 Thread Neil Bothwick
On Tue, 20 Aug 2013 06:57:02 -0400, Tanstaafl wrote: Unless you want to learn the ins and outs of using an initramfs (and having a lot of fun and failed boots in the process), I highly recommend using Dracut. It does everything for you. What about a previous posters comment that they

Re: [gentoo-user] systemd and initramfs

2013-08-20 Thread Neil Bothwick
On Tue, 20 Aug 2013 13:10:26 +0100, Neil Bothwick wrote: So, how do/can you *guarantee* that nothing ever gets out of sync? You could add a custom postinst function to /etc/portage that would check whether any of the files included in your initramfs are newer than the initramfs/kernel

Re: [gentoo-user] systemd and initramfs

2013-08-20 Thread Walter Dnes
On Tue, Aug 20, 2013 at 01:54:26AM -0500, Canek Peláez Valdés wrote No, the kernel has a mini filesystem (doesn't matter which directory structure has inside), and it executes the init script (or binary program) in the root of the initramfs. This init program/script is the responsible for

Re: [gentoo-user] systemd and initramfs

2013-08-20 Thread Canek Peláez Valdés
On Tue, Aug 20, 2013 at 7:32 PM, Walter Dnes waltd...@waltdnes.org wrote: On Tue, Aug 20, 2013 at 01:54:26AM -0500, Canek Peláez Valdés wrote No, the kernel has a mini filesystem (doesn't matter which directory structure has inside), and it executes the init script (or binary program) in the

Re: [gentoo-user] systemd and initramfs

2013-08-20 Thread Mike Gilbert
On Tue, Aug 20, 2013 at 2:44 AM, Helmut Jarausch jarau...@igpm.rwth-aachen.de wrote: On 08/19/2013 04:55:29 PM, Mike Gilbert wrote: On Mon, Aug 19, 2013 at 5:58 AM, Helmut Jarausch jarau...@igpm.rwth-aachen.de wrote: Hi, what binaries and libraries have to be put into an initramfs for a

[gentoo-user] systemd and initramfs

2013-08-19 Thread Helmut Jarausch
Hi, what binaries and libraries have to be put into an initramfs for a system booting with init=/usr/lib/systemd/systemd ? (I am building the initramsfs myself) Thanks for some hints, Helmut

Re: [gentoo-user] systemd and initramfs

2013-08-19 Thread Mike Gilbert
On Mon, Aug 19, 2013 at 5:58 AM, Helmut Jarausch jarau...@igpm.rwth-aachen.de wrote: Hi, what binaries and libraries have to be put into an initramfs for a system booting with init=/usr/lib/systemd/systemd ? (I am building the initramsfs myself) You need to get your root filesystem and /usr

Re: [gentoo-user] systemd and initramfs

2013-08-19 Thread thegeezer
On 08/19/2013 10:58 AM, Helmut Jarausch wrote: Hi, what binaries and libraries have to be put into an initramfs for a system booting with init=/usr/lib/systemd/systemd ? (I am building the initramsfs myself) Thanks for some hints, Helmut my 2c would be to autobuild one using genkernel or