From a92bb4d308bc4aa921a1e9452f289114c2eec704 Mon Sep 17 00:00:00 2001 From: Olivier Blin Date: Tue, 9 Mar 2010 14:51:51 +0000 Subject: force initrd re-creation by unlinking old one --- lib/MDV/Draklive/Initrd.pm | 3 +++ 1 file changed, 3 insertions(+) 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'); { -- cgit v1.2.1