summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.com>2010-03-09 14:51:51 +0000
committerOlivier Blin <oblin@mandriva.com>2010-03-09 14:51:51 +0000
commita92bb4d308bc4aa921a1e9452f289114c2eec704 (patch)
tree716a2d62d38f10576707c1f8f552d8b92ba5e385 /lib
parente1315e6063ebb0513a9ba02109b9aa66abb76d83 (diff)
downloaddraklive-a92bb4d308bc4aa921a1e9452f289114c2eec704.tar
draklive-a92bb4d308bc4aa921a1e9452f289114c2eec704.tar.gz
draklive-a92bb4d308bc4aa921a1e9452f289114c2eec704.tar.bz2
draklive-a92bb4d308bc4aa921a1e9452f289114c2eec704.tar.xz
draklive-a92bb4d308bc4aa921a1e9452f289114c2eec704.zip
force initrd re-creation by unlinking old one
Diffstat (limited to 'lib')
-rw-r--r--lib/MDV/Draklive/Initrd.pm3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/MDV/Draklive/Initrd.pm b/lib/MDV/Draklive/Initrd.pm
index a946528..8411787 100644
--- a/lib/MDV/Draklive/Initrd.pm
+++ b/lib/MDV/Draklive/Initrd.pm
@@ -299,6 +299,9 @@ sub create_classical_initrd {
my $kernel = $live->find_kernel;
print "using kernel $kernel->{version}\n";
+ my $initrd_long = '/boot/initrd-'. $kernel . '.img';
+ unlink($root . $initrd_long);
+
run_('mount', '-t', 'proc', '/proc', $root . '/proc');
run_('mount', '-t', 'sysfs', '/sys', $root . '/sys');
{