diff options
author | schmelzs | 2010-01-12 14:49:44 +0100 |
---|---|---|
committer | schmelzs | 2010-01-12 14:49:44 +0100 |
commit | 527219e9cc9de99fc74e46f4dc23fbd1a0b5da58 (patch) | |
tree | ca259e5d540a4bcaff0c0de4920f381e70e35ecc /boot-env/OpenSLX/MakeInitRamFS | |
parent | Merge branch 'master' of git@openslx.org:openslx (diff) | |
download | core-527219e9cc9de99fc74e46f4dc23fbd1a0b5da58.tar.gz core-527219e9cc9de99fc74e46f4dc23fbd1a0b5da58.tar.xz core-527219e9cc9de99fc74e46f4dc23fbd1a0b5da58.zip |
added pbs stuff
Diffstat (limited to 'boot-env/OpenSLX/MakeInitRamFS')
-rw-r--r-- | boot-env/OpenSLX/MakeInitRamFS/Engine/PBS.pm | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/boot-env/OpenSLX/MakeInitRamFS/Engine/PBS.pm b/boot-env/OpenSLX/MakeInitRamFS/Engine/PBS.pm new file mode 100644 index 00000000..571057ad --- /dev/null +++ b/boot-env/OpenSLX/MakeInitRamFS/Engine/PBS.pm @@ -0,0 +1,42 @@ +# Copyright (c) 2009 - OpenSLX GmbH +# +# This program is free software distributed under the GPL version 2. +# See http://openslx.org/COPYING +# +# If you have any feedback please consult http://openslx.org/feedback and +# send your suggestions, praise, or complaints to feedback@openslx.org +# +# General information about OpenSLX can be found at http://openslx.org/ +# ----------------------------------------------------------------------------- +# MakeInitialRamFS::Engine::PBS.pm +# - provides driver engine for MakeInitialRamFS API, implementing the +# base of all preboot variants. +# ----------------------------------------------------------------------------- +package OpenSLX::MakeInitRamFS::Engine::PBS; + +use strict; +use warnings; + +use base qw(OpenSLX::MakeInitRamFS::Engine::Preboot); + +use OpenSLX::Basics; +use OpenSLX::Utils; + +sub _copyPrebootSpecificFiles +{ + my $self = shift; + + # write secondary rootfs-layer (including init) on top of base layer + my $prebootRootfs + = "$openslxConfig{'base-path'}/share/boot-env/preboot/uclib-rootfs"; + $self->addCMD("rsync -rlpt $prebootRootfs/ $self->{'build-path'}"); + + # overwrite preboot defaults + my $pbsRootfs + = "$openslxConfig{'base-path'}/share/boot-env/pbs/uclib-rootfs"; + $self->addCMD("rsync -rlpt $pbsRootfs/ $self->{'build-path'}"); + + return 1; +} + +1; |