From 77ff585ab48626ade2d312102ae98202bf8b8d98 Mon Sep 17 00:00:00 2001 From: Michael Janczyk Date: Tue, 4 Dec 2012 18:32:15 +0100 Subject: - respect blacklisting of modules when autoloading modules in hwautocfg '-b' (stage3). - preinit.local enabled again for config/systemName/default, until now it was only possible for the default system in config/default. It make no sense for client specific configurations though. --- src/boot-env/OpenSLX/MakeInitRamFS/Engine/SlxBoot.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/boot-env/OpenSLX/MakeInitRamFS/Engine/SlxBoot.pm') diff --git a/src/boot-env/OpenSLX/MakeInitRamFS/Engine/SlxBoot.pm b/src/boot-env/OpenSLX/MakeInitRamFS/Engine/SlxBoot.pm index a0c24edb..cc5cc409 100644 --- a/src/boot-env/OpenSLX/MakeInitRamFS/Engine/SlxBoot.pm +++ b/src/boot-env/OpenSLX/MakeInitRamFS/Engine/SlxBoot.pm @@ -235,9 +235,9 @@ sub _copyPreAndPostinitFiles foreach my $cfg ( 'default/initramfs/preinit.local', - "$self->{'system-name'}/initramfs/preinit.local", + "$self->{'system-name'}/default/initramfs/preinit.local", 'default/initramfs/postinit.local', - "$self->{'system-name'}/initramfs/postinit.local" + "$self->{'system-name'}/default/initramfs/postinit.local" ) { my $cfgPath = "$openslxConfig{'private-path'}/config/stage3/$cfg"; next if !-f $cfgPath; -- cgit v1.2.3-55-g7522 From 00aca01bbf2daf8cdd63c3846ca29e3dc50185e5 Mon Sep 17 00:00:00 2001 From: Michael Janczyk Date: Wed, 12 Dec 2012 19:02:04 +0100 Subject: Respect aliases and blacklist of a system. /etc/modprobe.d is now copied to InitRamFS --- src/boot-env/OpenSLX/MakeInitRamFS/Engine/Base.pm | 11 +++++++++++ src/boot-env/OpenSLX/MakeInitRamFS/Engine/Preboot.pm | 2 ++ src/boot-env/OpenSLX/MakeInitRamFS/Engine/SlxBoot.pm | 2 ++ 3 files changed, 15 insertions(+) (limited to 'src/boot-env/OpenSLX/MakeInitRamFS/Engine/SlxBoot.pm') diff --git a/src/boot-env/OpenSLX/MakeInitRamFS/Engine/Base.pm b/src/boot-env/OpenSLX/MakeInitRamFS/Engine/Base.pm index e23dc40f..bf96daf6 100644 --- a/src/boot-env/OpenSLX/MakeInitRamFS/Engine/Base.pm +++ b/src/boot-env/OpenSLX/MakeInitRamFS/Engine/Base.pm @@ -336,6 +336,17 @@ sub _copyKernelModules return; } +sub _copyModprobeD +{ + my $self = shift; + + my $source = "$self->{'root-path'}/etc/modprobe.d"; + my $target = "$self->{'build-path'}/etc"; + $self->addCMD("cp -pr --dereference $source $target"); + + return; +} + sub _platformSpecificFileFor { my $self = shift; diff --git a/src/boot-env/OpenSLX/MakeInitRamFS/Engine/Preboot.pm b/src/boot-env/OpenSLX/MakeInitRamFS/Engine/Preboot.pm index 319ff65e..e0123aa7 100644 --- a/src/boot-env/OpenSLX/MakeInitRamFS/Engine/Preboot.pm +++ b/src/boot-env/OpenSLX/MakeInitRamFS/Engine/Preboot.pm @@ -43,6 +43,8 @@ sub _collectCMDs $self->_copyKernelModules(); + $self->_copyModprobeD(); + $self->_createInitRamFS(); return; diff --git a/src/boot-env/OpenSLX/MakeInitRamFS/Engine/SlxBoot.pm b/src/boot-env/OpenSLX/MakeInitRamFS/Engine/SlxBoot.pm index cc5cc409..23448998 100644 --- a/src/boot-env/OpenSLX/MakeInitRamFS/Engine/SlxBoot.pm +++ b/src/boot-env/OpenSLX/MakeInitRamFS/Engine/SlxBoot.pm @@ -52,6 +52,8 @@ sub _collectCMDs $self->{distro}->applyChanges($self); $self->_copyKernelModules(); + + $self->_copyModprobeD(); $self->_createInitRamFS(); -- cgit v1.2.3-55-g7522