diff options
author | Oliver Tappe | 2007-04-02 15:48:32 +0200 |
---|---|---|
committer | Oliver Tappe | 2007-04-02 15:48:32 +0200 |
commit | 678fffb7bf1910780bd9660d1e17ba16b13ed5b1 (patch) | |
tree | ef292e6ed1313638df458d7f048a768fa527fc35 /installer | |
parent | * added support for removing an export (from disk and config-DB) (diff) | |
download | core-678fffb7bf1910780bd9660d1e17ba16b13ed5b1.tar.gz core-678fffb7bf1910780bd9660d1e17ba16b13ed5b1.tar.xz core-678fffb7bf1910780bd9660d1e17ba16b13ed5b1.zip |
* added missing folder creation, found by Dirk
git-svn-id: http://svn.openslx.org/svn/openslx/trunk@856 95ad53e4-c205-0410-b2fa-d234c58c8868
Diffstat (limited to 'installer')
-rw-r--r-- | installer/OpenSLX/OSExport/ExportType/NBD_Squash.pm | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/installer/OpenSLX/OSExport/ExportType/NBD_Squash.pm b/installer/OpenSLX/OSExport/ExportType/NBD_Squash.pm index 4b1e078c..770107a7 100644 --- a/installer/OpenSLX/OSExport/ExportType/NBD_Squash.pm +++ b/installer/OpenSLX/OSExport/ExportType/NBD_Squash.pm @@ -79,6 +79,14 @@ sub createSquashFS # causes the filesystem to grow somewhat, so we remove it in order to # get the smallest FS-file possible. + my $baseDir = dirname($target); + if (!-e $baseDir) { + if (system("mkdir -p $baseDir")) { + die _tr("unable to create directory '%s', giving up! (%s)\n", + $baseDir, $!); + } + } + # dump filter to a file ... my $filterFile = "/tmp/slx-nbdsquash-filter-$$"; open(FILTERFILE,"> $filterFile") |