From e6e15044f31dca7d04c2a4046635e8897b51fe4c Mon Sep 17 00:00:00 2001 From: Olivier Blin Date: Tue, 27 Dec 2005 19:50:06 +0000 Subject: add patches config option to apply patches on the installed system --- tools/draklive | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'tools') diff --git a/tools/draklive b/tools/draklive index 60ec6dc4c..a2fd3abb3 100755 --- a/tools/draklive +++ b/tools/draklive @@ -436,6 +436,9 @@ sub post_install_system { $live->{system}{root}, map { abs_path($_) } @{$live->{system}{rpms}}) if @{$live->{system}{rpms}}; + run_('patch', '-p0', '-s', '-N', '-F', 0, '-d', $live->{system}{root}, '-r', '/tmp', '-i', $_) + foreach map { abs_path($_) } @{$live->{system}{patches}}; + #- make sure harddrake is run #- (do it in chroot, or else Storable from the build box may write an incompatible config file) system("chroot $live->{system}{root} " . @@ -892,6 +895,9 @@ Here's a configuration sample: rpms => [ 'rpms/unionfs-kernel-2.6.12-12mdk-i586-up-1GB-1.1.1.1.20051124.1mdk-1mdk.i586.rpm' ], + patches => [ + 'patches/halt.loopfs.patch', + ], vga_mode => 788, }, media => { -- cgit v1.2.1