From 203dc993aa05736ed1b599729850e65de94e56fe Mon Sep 17 00:00:00 2001 From: Olivier Blin Date: Mon, 9 Nov 2009 11:25:10 +0000 Subject: simplify --- lib/MDV/Draklive/Initrd.pm | 8 ++++---- 1 file 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); -- cgit v1.2.1