summaryrefslogtreecommitdiffstats
path: root/lib/MGA/DrakISO
diff options
context:
space:
mode:
Diffstat (limited to 'lib/MGA/DrakISO')
-rw-r--r--lib/MGA/DrakISO/BuildBoot.pm5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/MGA/DrakISO/BuildBoot.pm b/lib/MGA/DrakISO/BuildBoot.pm
index a7481fd..95c1a10 100644
--- a/lib/MGA/DrakISO/BuildBoot.pm
+++ b/lib/MGA/DrakISO/BuildBoot.pm
@@ -79,9 +79,8 @@ sub prepare_live_system_boot {
run_as_root('chmod', '644', $root . $initrd)
or die "ERROR: cannot chmod initrd\n";
- # Move the initrd into the build directory.
- run_as_root('mv', $root . $initrd, $boot_dir . '/initrd.img')
- or die "ERROR: cannot move initrd\n";
+ # Copy the initrd into the build directory.
+ cp_f($root . $initrd, $boot_dir . '/initrd.img');
} catch {
$error_message = $_;
} finally {