blob: 83d848d0f296a635846e2a552779fe1f4480816e (
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
39
40
41
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/rootfs";
$self->addCMD("rsync -rlpt $prebootRootfs/ $self->{'build-path'}");
# overwrite preboot defaults
my $pbsRootfs
= "$openslxConfig{'base-path'}/share/boot-env/pbs/rootfs";
$self->addCMD("rsync -rlpt $pbsRootfs/ $self->{'build-path'}");
return 1;
}
1;
|