diff options
author | Olivier Blin <oblin@mandriva.org> | 2005-12-27 19:50:06 +0000 |
---|---|---|
committer | Olivier Blin <oblin@mandriva.org> | 2005-12-27 19:50:06 +0000 |
commit | e6e15044f31dca7d04c2a4046635e8897b51fe4c (patch) | |
tree | 8c9327b3c94ce93a4bda1a4696ea75ee69ac3815 | |
parent | f846e49abc7cd9d54fc3d4ce43bd9f4e97edecd1 (diff) | |
download | drakx-e6e15044f31dca7d04c2a4046635e8897b51fe4c.tar drakx-e6e15044f31dca7d04c2a4046635e8897b51fe4c.tar.gz drakx-e6e15044f31dca7d04c2a4046635e8897b51fe4c.tar.bz2 drakx-e6e15044f31dca7d04c2a4046635e8897b51fe4c.tar.xz drakx-e6e15044f31dca7d04c2a4046635e8897b51fe4c.zip |
add patches config option to apply patches on the installed system
-rwxr-xr-x | tools/draklive | 6 |
1 files changed, 6 insertions, 0 deletions
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 => { |