# 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;