summaryrefslogtreecommitdiffstats
path: root/boot-env/OpenSLX/MakeInitRamFS/Engine/PrebootCD.pm
blob: 1f6aa045782a2ed7d329721350a97a3dcb12deec (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# Copyright (c) 2006-2008 - 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::PrebootCD.pm
#    - provides driver engine for MakeInitialRamFS API, implementing the
#      preboot behaviour that is specific for CDs.
# -----------------------------------------------------------------------------
package OpenSLX::MakeInitRamFS::Engine::PrebootCD;

use strict;
use warnings;

use base qw(OpenSLX::MakeInitRamFS::Engine::Preboot);

use OpenSLX::Basics;
use OpenSLX::Utils;

################################################################################
### implementation methods
################################################################################
sub _copyVariantSpecificFiles
{
    my $self = shift;

    my $dataDir = "$openslxConfig{'base-path'}/share/boot-env/preboot-cd";
    $self->addCMD("cp $dataDir/init $self->{'build-path'}/");
    
    return 1;
}

1;