summaryrefslogtreecommitdiffstats
path: root/lib/MDV
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.com>2009-11-09 11:25:10 +0000
committerOlivier Blin <oblin@mandriva.com>2009-11-09 11:25:10 +0000
commit203dc993aa05736ed1b599729850e65de94e56fe (patch)
tree133b41583086358c614f20866bffd4fb019ad221 /lib/MDV
parent6d816bb074a032f85fa7bb68f985684f500c67ef (diff)
downloaddrakiso-203dc993aa05736ed1b599729850e65de94e56fe.tar
drakiso-203dc993aa05736ed1b599729850e65de94e56fe.tar.gz
drakiso-203dc993aa05736ed1b599729850e65de94e56fe.tar.bz2
drakiso-203dc993aa05736ed1b599729850e65de94e56fe.tar.xz
drakiso-203dc993aa05736ed1b599729850e65de94e56fe.zip
simplify
Diffstat (limited to 'lib/MDV')
-rw-r--r--lib/MDV/Draklive/Initrd.pm8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/MDV/Draklive/Initrd.pm b/lib/MDV/Draklive/Initrd.pm
index 3095fbf..489e1f1 100644
--- a/lib/MDV/Draklive/Initrd.pm
+++ b/lib/MDV/Draklive/Initrd.pm
@@ -308,11 +308,11 @@ sub create_classical_initrd {
my $initrd_long = '/boot/initrd-'. $kernel . '.img';
my $initrd_short = '/boot/initrd.img';
- run_({}, 'mount', '-t', 'proc', '/proc', $root . '/proc');
- run_({}, 'mount', '-t', 'sysfs', '/sys', $root . '/sys');
+ run_('mount', '-t', 'proc', '/proc', $root . '/proc');
+ run_('mount', '-t', 'sysfs', '/sys', $root . '/sys');
run_({ root => $root }, 'mkinitrd', '-v', '-f', $initrd_long, $kernel);
- run_({}, 'umount', $root . '/sys');
- run_({}, 'umount', $root . '/proc');
+ run_('umount', $root . '/sys');
+ run_('umount', $root . '/proc');
if (-f $root . $initrd_long) {
symlinkf(basename($initrd_long), $root . $initrd_short);
add_splash($live, $initrd_long);