mirror of
https://github.com/fspc/gbootroot.git
synced 2025-02-24 09:23:23 -05:00
Before, if the sources created from the template had a symlink in them already,
you couldn't just press create again .. (for instance for genext2f or uml_exclusively). This has been fixed.
This commit is contained in:
parent
180b6655de
commit
dc17ffe59a
@ -1265,9 +1265,12 @@ sub create_filesystem {
|
|||||||
my($floppy_file) = $mount_point . $file;
|
my($floppy_file) = $mount_point . $file;
|
||||||
mkpath(dirname($floppy_file));
|
mkpath(dirname($floppy_file));
|
||||||
info(1, "\tLink\t$floppy_file -> $target\n");
|
info(1, "\tLink\t$floppy_file -> $target\n");
|
||||||
symlink($target, $floppy_file) or
|
# This allows previous symlinks to exist sources
|
||||||
($error = error("symlink($target, $floppy_file): $!\n"));
|
if ( !-e $floppy_file ) {
|
||||||
return "ERROR"if $error && $error eq "ERROR";
|
symlink($target, $floppy_file) or
|
||||||
|
($error = error("symlink($target, $floppy_file): $!\n"));
|
||||||
|
return "ERROR"if $error && $error eq "ERROR";
|
||||||
|
}
|
||||||
delete $Included{$file}; # Get rid of it so next pass doesn't copit
|
delete $Included{$file}; # Get rid of it so next pass doesn't copit
|
||||||
|
|
||||||
} elsif (-d $file) {
|
} elsif (-d $file) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user