summaryrefslogtreecommitdiffstats
path: root/installer
diff options
context:
space:
mode:
authorDirk von Suchodoletz2009-08-15 19:30:23 +0200
committerDirk von Suchodoletz2009-08-15 19:30:23 +0200
commitb2475aad5a9fab350c153b6cd2e964f946202273 (patch)
tree15022989c475cfe176e8f6b186ef879b8f99c181 /installer
parentFixes for the local device boot (loading fast USB driver, ...) (diff)
downloadcore-b2475aad5a9fab350c153b6cd2e964f946202273.tar.gz
core-b2475aad5a9fab350c153b6cd2e964f946202273.tar.xz
core-b2475aad5a9fab350c153b6cd2e964f946202273.zip
Adding another export item (highly experimental, see #156 for general
problem/idea and #495 for the export squash generation). git-svn-id: http://svn.openslx.org/svn/openslx/openslx/trunk@3094 95ad53e4-c205-0410-b2fa-d234c58c8868
Diffstat (limited to 'installer')
-rw-r--r--installer/OpenSLX/OSExport/BlockDevice/LBD.pm76
1 files changed, 76 insertions, 0 deletions
diff --git a/installer/OpenSLX/OSExport/BlockDevice/LBD.pm b/installer/OpenSLX/OSExport/BlockDevice/LBD.pm
new file mode 100644
index 00000000..e8df1b04
--- /dev/null
+++ b/installer/OpenSLX/OSExport/BlockDevice/LBD.pm
@@ -0,0 +1,76 @@
+# 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/
+# -----------------------------------------------------------------------------
+# LBD.pm
+# - provides the local block devices with Squashfs container specific
+# overrides of the OpenSLX::OSExport::BlockDevice API.
+# -----------------------------------------------------------------------------
+package OpenSLX::OSExport::BlockDevice::LBD;
+
+use strict;
+use warnings;
+
+use base qw(OpenSLX::OSExport::BlockDevice::Base);
+
+use File::Basename;
+use OpenSLX::Basics;
+use OpenSLX::ConfigDB qw(:support);
+use OpenSLX::OSExport::BlockDevice::Base 1;
+use OpenSLX::Utils;
+
+################################################################################
+### interface methods
+################################################################################
+sub new
+{
+ my $class = shift;
+ my $self = {'name' => 'LBD',};
+ return bless $self, $class;
+}
+
+sub generateExportURI
+{
+ my $self = shift;
+
+ return "lbd://sda1/squashfs";
+}
+
+sub requiredBlockDeviceModules
+{
+ my $self = shift;
+
+ return qw( ehci_hcd usb_storage scsi_mod sd_mod loop ext3 );
+}
+
+sub requiredBlockDeviceTools
+{
+ my $self = shift;
+
+ return qw( );
+}
+
+sub showExportConfigInfo
+{
+ my $self = shift;
+ my $export = shift;
+
+ print '#' x 80 , "\n",
+ _tr(
+ "Please make sure you copy all corresponding files to your boot\n",
+ "device you wish to deploy (e.g. bootable USB stick)\n"
+ ),
+ "Make your device bootable using syslinux for (v)fat or extlinux for\n",
+ "ext2/3 partitions. Cat HPA syslinux' mbr to the device very beginning\n",
+ "and set the boot flag to the partion you made bootable\n\n",
+ '#' x 80, "\n";
+ return;
+}
+
+1;