Re: Dracut -- Cross distribution initramfs infrastructure

2008-12-19 Thread Hannes Reinecke
Hi Jeremy, Jeremy Katz wrote: (dropping lkml again) On Thu, 2008-12-18 at 08:36 +0100, Hannes Reinecke wrote: We definitely should get together to hammer our one implementation. Having different scripts for every distributions is a PITA. Indeed -- but as davej noticed, going with one

Re: Dracut -- Cross distribution initramfs infrastructure

2008-12-19 Thread Hannes Reinecke
Hi all, Bernhard Walle wrote: * Seewer Philippe [2008-12-19 08:41]: Hannes Reinecke wrote: [snip] If anyone is interested I can give a short overview of it. Please do so, would be appreciated. A good start is the manual page in section 5: http://git.opensuse.org/?p=projects/mkinitrd.git;a

Re: Dracut -- Cross distribution initramfs infrastructure

2009-01-07 Thread Hannes Reinecke
ndividual packages / vendors. And then we would have a small common initramfs which well could be included with the kernel sources. Cheers, Hannes -- Dr. Hannes Reinecke zSeries & Storage h...@suse.de +49 911 74053 688 SUSE LINUX Products GmbH, Maxfe

Re: Dracut -- Cross distribution initramfs infrastructure

2009-01-07 Thread Hannes Reinecke
Hi Jeremy, Jeremy Katz wrote: On Dec 19, 2008, at 3:21 AM, Hannes Reinecke wrote: Jeremy Katz wrote: (dropping lkml again) On Thu, 2008-12-18 at 08:36 +0100, Hannes Reinecke wrote: By instead moving to where we're basing everything off of uevents we can hopefully move away from the ma

Re: module 90kernel-modules-loaded

2009-03-09 Thread Hannes Reinecke
not. So you basically have to write some device-specific udev rules for enabling multipath on some devices. The hard part here is to remove the component device from the list of eligible devices so that eg LVM doesn't erroneously tries to scan from a multipath or dmraid component device. Ch

Re: Thoughts on mounting the rootfs from a udev rule

2009-03-20 Thread Hannes Reinecke
m there. However, you're still facing the problem that you'd might want to run 'fsck' on the root device. And you might want to know when 'mount' has actually finished, as only then you can execute 'init'. Sadly the 'mount' events

Re: [RFT PATCH] Delay netroot mounting by 1 second

2009-06-22 Thread Hannes Reinecke
error condition). The only safe way here is to send a ping to the host port we're trying to connect to, and limit this with a timeout. And start up the command once the ping succeeds. Otherwise timeout and start error recovery. Cheers, Hannes -- Dr. Hannes Reinecke zSeries

Re: initqueue

2009-07-02 Thread Hannes Reinecke
appear. Even the udev queue check is pointless here; either we have a device node, in which case we can continue regardless of how many events are still in the udev queue; or we don't have one, in which case it quite irrelevant if udev has still events to process or not. Think of multipath taking

Re: [dracut] Loading of modules that don't have a uevent or pci device: ideas?

2010-01-11 Thread Hannes Reinecke
tput - which means that on machines not running Xen it would still jump > in the > "then" clause. > > I think I am going to modify the xen-detect to accept another flag that would > just print a string if it is running in a PV context and nothing else- that > should make

Re: dracut: ordering of modules

2012-02-13 Thread Hannes Reinecke
On 02/13/2012 10:59 AM, Harald Hoyer wrote: > Am 10.02.2012 16:01, schrieb Mimi Zohar: >> Hi Harald, >> [ .. ] Ohh, can you _order_ dracut modules now? Harald, that'll be four modules for me, please :-) Sorry, I just _had_ to go for that cheap pun. Cheers, Hannes --

[PATCH 01/10] 95dasd: Install kernel modules only once

2013-11-27 Thread Hannes Reinecke
Move kernel module selection to 95dasd_mod and make 95dasd depend on that module. Signed-off-by: Hannes Reinecke --- modules.d/95dasd/module-setup.sh | 6 +- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/modules.d/95dasd/module-setup.sh b/modules.d/95dasd/module-setup.sh

[PATCH 02/10] 95dasd: Only install module if normalize_dasd_arg is present

2013-11-27 Thread Hannes Reinecke
normalize_dasd_arg is a RedHat specific script, so no point installing this module if the script isn't present. Signed-off-by: Hannes Reinecke --- modules.d/95dasd/module-setup.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/modules.d/95dasd/module-setup.sh b/modules.d/95dasd/m

[PATCH 00/10] SUSE S/390 integration

2013-11-27 Thread Hannes Reinecke
apply. Hannes Reinecke (10): 95dasd: Install kernel modules only once 95dasd: Only install module if normalize_dasd_arg is present 95dasd_mod: make dasd_cio_free optional 95zfcp: Make installation optional 95znet: Make installation optional Install /bin/mount Fixup keymap setting for ope

[PATCH 09/10] Add DASD configuration for SuSE

2013-11-27 Thread Hannes Reinecke
On SuSE the DASD configuration is kept in udev rules, one rule file per device. So add a new module for copying and creating these rules during boot. Signed-off-by: Hannes Reinecke --- dracut-functions.sh| 28 + modules.d/95dasd_rules/module-setup.sh | 27

[PATCH 08/10] Check for plymouth lib directories

2013-11-27 Thread Hannes Reinecke
SUSE installs plymount files in /usr/lib, not /usr/libexec. So check for both when including plymouth support. Signed-off-by: Hannes Reinecke --- modules.d/50plymouth/module-setup.sh | 17 - 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/modules.d/50plymouth

[PATCH 06/10] Install /bin/mount

2013-11-27 Thread Hannes Reinecke
systemd relies on /bin/mount to be present, so install it. Signed-off-by: Hannes Reinecke --- modules.d/99fs-lib/module-setup.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/modules.d/99fs-lib/module-setup.sh b/modules.d/99fs-lib/module-setup.sh index 7979bab..b24207d 100755 --- a

[PATCH 05/10] 95znet: Make installation optional

2013-11-27 Thread Hannes Reinecke
znet_cio_free is a RedHat-specific tool, so do not install this module on systems where the program is missing. Signed-off-by: Hannes Reinecke --- modules.d/95znet/module-setup.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/modules.d/95znet/module-setup.sh b/modules.d/95znet/module

[PATCH 10/10] Add zfcp scripts for SUSE

2013-11-27 Thread Hannes Reinecke
SuSE is storing the zfcp configuration in udev files, so we should be including these. Signed-off-by: Hannes Reinecke --- modules.d/95zfcp_rules/module-setup.sh | 25 modules.d/95zfcp_rules/parse-zfcp.sh | 54 ++ 2 files changed, 79 insertions

[PATCH 07/10] Fixup keymap setting for openSUSE

2013-11-27 Thread Hannes Reinecke
openSUSE is using compressed keymaps. Signed-off-by: Hannes Reinecke --- modules.d/10i18n/module-setup.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/modules.d/10i18n/module-setup.sh b/modules.d/10i18n/module-setup.sh index 0741c64..f07b148 100755 --- a/modules.d/10i18n/module

[PATCH 04/10] 95zfcp: Make installation optional

2013-11-27 Thread Hannes Reinecke
zfcp_cio_free is a RedHat-specific tool, so do not install this module if the program isn't present. Signed-off-by: Hannes Reinecke --- modules.d/95zfcp/module-setup.sh | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/modules.d/95zfcp/module-setup.sh b/modules.d/9

[PATCH 03/10] 95dasd_mod: make dasd_cio_free optional

2013-11-27 Thread Hannes Reinecke
dasd_cio_free is a RedHat-specific tool, so make it optional. Signed-off-by: Hannes Reinecke --- dracut-functions.sh| 9 + modules.d/95dasd_mod/module-setup.sh | 3 ++- modules.d/95dasd_mod/parse-dasd-mod.sh | 4 +++- 3 files changed, 14 insertions(+), 2 deletions

Re: [PATCH 03/10] 95dasd_mod: make dasd_cio_free optional

2013-11-28 Thread Hannes Reinecke
On 11/28/2013 01:51 PM, Harald Hoyer wrote: > On 11/27/2013 04:44 PM, Hannes Reinecke wrote: >> dasd_cio_free is a RedHat-specific tool, so make it optional. >> >> Signed-off-by: Hannes Reinecke >> --- >> dracut-functions.sh| 9

Re: [PATCH 06/10] Install /bin/mount

2013-11-28 Thread Hannes Reinecke
On 11/27/2013 04:44 PM, Hannes Reinecke wrote: > systemd relies on /bin/mount to be present, so install it. > > Signed-off-by: Hannes Reinecke > --- > modules.d/99fs-lib/module-setup.sh | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/modules.d/99fs-lib/module

SUSE mkinitrd wrapper

2013-11-28 Thread Hannes Reinecke
Having two separate scripts? As I'm not sure if anybody is actually using the 'mkinitrd-dracut.sh' script I could as well merge the changes into that one. Just tell me what you prefer. Cheers, Hannes -- Dr. Hannes Reinecke zSeries & Storage h...@suse.de

[PATCH 01/13] 95dasd: Install kernel modules only once

2013-11-29 Thread Hannes Reinecke
Move kernel module selection to 95dasd_mod and make 95dasd depend on that module. Signed-off-by: Hannes Reinecke --- modules.d/95dasd/module-setup.sh | 6 +- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/modules.d/95dasd/module-setup.sh b/modules.d/95dasd/module-setup.sh

[PATCHv2 00/13] SUSE S/390 integration

2013-11-29 Thread Hannes Reinecke
dded a new SUSE-specific mkinitrd compability script, as the SUSE mkinitrd is quite different. And some minor fixes which came up during package build. Please apply. Hannes Reinecke (13): 95dasd: Install kernel modules only once 95dasd: Only install module if normalize_dasd_arg is present

[PATCH 03/13] 95dasd_mod: make dasd_cio_free optional

2013-11-29 Thread Hannes Reinecke
dasd_cio_free is a RedHat-specific tool, so make it optional. Signed-off-by: Hannes Reinecke --- modules.d/95dasd_mod/module-setup.sh | 3 ++- modules.d/95dasd_mod/parse-dasd-mod.sh | 4 +++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/modules.d/95dasd_mod/module-setup.sh

[PATCH 02/13] 95dasd: Only install module if normalize_dasd_arg is present

2013-11-29 Thread Hannes Reinecke
normalize_dasd_arg is a RedHat specific script, so no point installing this module if the script isn't present. Signed-off-by: Hannes Reinecke --- modules.d/95dasd/module-setup.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/modules.d/95dasd/module-setup.sh b/modules.d/95dasd/m

[PATCH 04/13] 95zfcp: Make installation optional

2013-11-29 Thread Hannes Reinecke
zfcp_cio_free is a RedHat-specific tool, so do not install this module if the program isn't present. Signed-off-by: Hannes Reinecke --- modules.d/95zfcp/module-setup.sh | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/modules.d/95zfcp/module-setup.sh b/modules.d/9

[PATCH 08/13] Make logfile configurable

2013-11-29 Thread Hannes Reinecke
Add '--logfile' option to make the log file configurable during runtime. Signed-off-by: Hannes Reinecke --- dracut.8.asc | 6 ++ dracut.sh| 4 2 files changed, 10 insertions(+) diff --git a/dracut.8.asc b/dracut.8.asc index 2ea6744..d381dcf 100644 --- a/dracut.8.asc +++

[PATCH 06/13] Add DASD configuration for SuSE

2013-11-29 Thread Hannes Reinecke
On SuSE the DASD configuration is kept in udev rules, one rule file per device. So add a new module for copying and creating these rules during boot. Signed-off-by: Hannes Reinecke --- dracut-functions.sh| 28 + modules.d/95dasd_rules/module-setup.sh | 27

[PATCH 10/13] mkinitrd-suse.8.asc: Add manpage for SUSE compat mkinitrd

2013-11-29 Thread Hannes Reinecke
Signed-off-by: Hannes Reinecke --- Makefile| 1 + mkinitrd-suse.8.asc | 106 2 files changed, 107 insertions(+) create mode 100644 mkinitrd-suse.8.asc diff --git a/Makefile b/Makefile index e7da948..ba551cf 100644 --- a

[PATCH 12/13] Fixup script permissions

2013-11-29 Thread Hannes Reinecke
Scripts with a shebang should be marked as executable. Signed-off-by: Hannes Reinecke --- modules.d/03modsign/load-modsign-keys.sh | 0 modules.d/03modsign/module-setup.sh | 0 modules.d/40network/net-lib.sh | 0 modules.d/40network/parse-vlan.sh| 0 modules.d/50drm

[PATCH 09/13] mkinitrd-suse: Add SUSE compability wrapper for dracut

2013-11-29 Thread Hannes Reinecke
SUSE has its own mkinitrd system. As the arguments clash with the dracut-provided mkinitrd script I've added a new mkinitrd-suse.sh wrapper. Signed-off-by: Hannes Reinecke --- mkinitrd-suse.sh | 354 +++ 1 file changed, 354 inser

[PATCH 05/13] 95znet: Make installation optional

2013-11-29 Thread Hannes Reinecke
znet_cio_free is a RedHat-specific tool, so do not install this module on systems where the program is missing. Signed-off-by: Hannes Reinecke --- modules.d/95znet/module-setup.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/modules.d/95znet/module-setup.sh b/modules.d/95znet/module

[PATCH 13/13] Remove shebang from shell-completion files

2013-11-29 Thread Hannes Reinecke
Shell-completion files are meant to be sourced, not executed. So they shouldn't have a shebang at the start. Signed-off-by: Hannes Reinecke --- dracut-bash-completion.sh | 2 +- lsinitrd-bash-completion.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dracut

[PATCH 11/13] Fixup keymap setting for openSUSE

2013-11-29 Thread Hannes Reinecke
openSUSE is using compressed keymaps. Signed-off-by: Hannes Reinecke --- modules.d/10i18n/module-setup.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/modules.d/10i18n/module-setup.sh b/modules.d/10i18n/module-setup.sh index 0741c64..f07b148 100755 --- a/modules.d/10i18n/module

[PATCH 07/13] Add zfcp scripts for SUSE

2013-11-29 Thread Hannes Reinecke
SuSE is storing the zfcp configuration in udev files, so we should be including these. Signed-off-by: Hannes Reinecke --- modules.d/95zfcp_rules/module-setup.sh | 25 + modules.d/95zfcp_rules/parse-zfcp.sh | 65 ++ 2 files changed, 90 insertions

check_finished() syntax weirdness

2014-05-13 Thread Hannes Reinecke
ed' will return '0', causing the main initqueue to short-circuit and the actual initqueue jobs will never be executed. Is this the intended outcome? IE are all jobs for the initqueue are _required_ to supply a 'finished' job? I would have thought it

Re: check_finished() syntax weirdness

2014-05-13 Thread Hannes Reinecke
On 05/13/2014 11:48 AM, Harald Hoyer wrote: On 13.05.2014 11:44, Hannes Reinecke wrote: Hi all, I'm trying to figure out why my initqueue scripts are never called. Eg 95fcoe is just installing an initqueue job, which should call 'fcoe-up' on the interface. However, this script

Re: check_finished() syntax weirdness

2014-05-13 Thread Hannes Reinecke
On 05/13/2014 12:22 PM, Harald Hoyer wrote: On 13.05.2014 11:55, Hannes Reinecke wrote: [ .. ] Ah. So fcoe never worked? (As it doesn't supply an 'finished' script) Cheers, Hannes What do you mean? Normally there are "finished" scripts installed, which wait for

Re: check_finished() syntax weirdness

2014-05-13 Thread Hannes Reinecke
On 05/13/2014 12:39 PM, Harald Hoyer wrote: On 13.05.2014 12:30, Hannes Reinecke wrote: On 05/13/2014 12:22 PM, Harald Hoyer wrote: On 13.05.2014 11:55, Hannes Reinecke wrote: [ .. ] Ah. So fcoe never worked? (As it doesn't supply an 'finished' script) Cheers, Hannes W

Re: check_finished() syntax weirdness

2014-05-13 Thread Hannes Reinecke
On 05/13/2014 02:10 PM, Harald Hoyer wrote: On 13.05.2014 12:42, Hannes Reinecke wrote: On 05/13/2014 12:39 PM, Harald Hoyer wrote: On 13.05.2014 12:30, Hannes Reinecke wrote: On 05/13/2014 12:22 PM, Harald Hoyer wrote: On 13.05.2014 11:55, Hannes Reinecke wrote: [ .. ] Ah. So fcoe never

Re: check_finished() syntax weirdness

2014-05-20 Thread Hannes Reinecke
On 05/13/2014 04:32 PM, Harald Hoyer wrote: On 13.05.2014 16:21, Hannes Reinecke wrote: On 05/13/2014 02:10 PM, Harald Hoyer wrote: On 13.05.2014 12:42, Hannes Reinecke wrote: On 05/13/2014 12:39 PM, Harald Hoyer wrote: for systemd: modules.d/98systemd/rootfs-generator.sh: [ "$

Re: check_finished() syntax weirdness

2014-05-20 Thread Hannes Reinecke
On 05/20/2014 10:46 AM, Hannes Reinecke wrote: On 05/13/2014 04:32 PM, Harald Hoyer wrote: On 13.05.2014 16:21, Hannes Reinecke wrote: On 05/13/2014 02:10 PM, Harald Hoyer wrote: On 13.05.2014 12:42, Hannes Reinecke wrote: On 05/13/2014 12:39 PM, Harald Hoyer wrote: for systemd

[PATCH] 98systemd: fixup rootfs-generator installation path

2014-05-20 Thread Hannes Reinecke
The rootfs-generator was installed in the wrong path in the initrd, cause it never to be run. References: bnc#878714 Signed-off-by: Hannes Reinecke --- modules.d/98systemd/module-setup.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules.d/98systemd/module-setup.sh b

iBFT oddities

2014-06-04 Thread Hannes Reinecke
e 'ip=ibft' setting does look a bit odd. And confuses the logic ... Cheers, Hannes -- Dr. Hannes Reinecke zSeries & Storage h...@suse.de +49 911 74053 688 SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg GF: J. Hawn, J. Guild, F. Imendörf

Re: iBFT oddities

2014-06-04 Thread Hannes Reinecke
On 06/04/2014 01:50 PM, Harald Hoyer wrote: On 04.06.2014 09:52, Hannes Reinecke wrote: Hi all, I'm trying to setup a machine with root on iSCSI via iBFT (on SR-IOV, yay!). But anyhow, I'll be setting 'ip=ibft' on the commandline as per documentation and the iBFT sett

Multithreaded programs crashing due to libgcc_s missing

2014-06-06 Thread Hannes Reinecke
of those calls will generate a SIGABRT. Nasty. Best would be to pull libgcc_s in always when libpthread is required. But that would be some library detection magic. Can you fix this up? Cheers, Hannes -- Dr. Hannes Reinecke zSeries & Storage h...@suse.de

Re: about to release dracut version 039

2014-07-22 Thread Hannes Reinecke
them posted. Cheers, Hannes -- Dr. Hannes Reinecke zSeries & Storage h...@suse.de +49 911 74053 688 SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg GF: J. Hawn, J. Guild, F. Imendörffer, HRB 16746 (AG Nürnberg) -- To unsubscribe from this list:

Re: about to release dracut version 039

2014-08-19 Thread Hannes Reinecke
On 08/19/2014 04:00 PM, Harald Hoyer wrote: On 22.07.2014 15:45, Hannes Reinecke wrote: On 07/22/2014 03:41 PM, Harald Hoyer wrote: Anything missing? Wishes? Bugs? Well, apart from roughly 150 patches queued for SLES ... (cf github.com:/hreinecke/dracut.git branch sles12) Sadly I haven&#

Re: [PATCH 11/33] 95iscsi: Autodetect iSCSI firmware

2014-11-20 Thread Hannes Reinecke
On 11/21/2014 06:43 AM, WANG Chao wrote: > Hi, > > On 11/20/14 at 03:56pm, Thomas Renninger wrote: >> From: Hannes Reinecke >> >> Some iSCSI initiator present firmware information in >> /sys/firmware/ibft or /sys/firmware/iscsi_bootX >> >> Whenever

Re: [PATCH 31/42] 95fcoe: Store current configuration in dracut cmdline

2014-12-12 Thread Hannes Reinecke
On 12/12/2014 04:02 AM, Baoquan He wrote: > On 12/11/14 at 03:46pm, Thomas Renninger wrote: >> From: Hannes Reinecke >> >> When running with --hostonly-cmdline we should be storing >> the current configuration in /etc/cmdline.d so that dracut >> will be c

Re: [PATCH 41/42] 95rootfs-block: Correctly terminate commandline parameter

2014-12-17 Thread Hannes Reinecke
* > Stored kernel commandline: > root=UUID=d5e53483-30bc-4119-8c0c-841d47a2f76brootflags=rw,noatime,compress=lzo,ssd,discard,space_cache,autodefrag,inode_cacherootfstype=btrfs > … > Any specific reason for this? Errors, failures? Cheers, Hannes -- Dr. Hannes Rei

Re: [PATCH] Use udev rules to create dmraid /dev/mapper/ devices

2015-07-07 Thread Hannes Reinecke
On 07/07/2015 01:41 PM, Harald Hoyer wrote: > On 29.06.2015 19:36, Thomas Renninger wrote: >> From: Hannes Reinecke >> >> https://bugzilla.opensuse.org/show_bug.cgi?id=905746 >> >> Version 2: Remove 64-md-raid.rules >> >> Signed-off-by: Thomas Renni

Re: [PATCH] Use udev rules to create dmraid /dev/mapper/ devices

2015-11-13 Thread Hannes Reinecke
On 11/13/2015 12:00 PM, Harald Hoyer wrote: > On 07.07.2015 13:54, Hannes Reinecke wrote: >> On 07/07/2015 01:41 PM, Harald Hoyer wrote: >>> On 29.06.2015 19:36, Thomas Renninger wrote: >>>> From: Hannes Reinecke >>>> >>>> https://bugzilla.o