diff options
author | Olivier Blin <oblin@mandriva.com> | 2008-09-25 16:08:59 +0000 |
---|---|---|
committer | Olivier Blin <oblin@mandriva.com> | 2008-09-25 16:08:59 +0000 |
commit | df33bff820f49cae79519feb8dc1557f85bf3129 (patch) | |
tree | d12a285a8e046a949c673a502b84d305d7c0ceb4 /tools/drakx-in-chroot | |
parent | 094bbd66fc9bed348bce52f31f14a9b1c88215fe (diff) | |
download | drakx-df33bff820f49cae79519feb8dc1557f85bf3129.tar drakx-df33bff820f49cae79519feb8dc1557f85bf3129.tar.gz drakx-df33bff820f49cae79519feb8dc1557f85bf3129.tar.bz2 drakx-df33bff820f49cae79519feb8dc1557f85bf3129.tar.xz drakx-df33bff820f49cae79519feb8dc1557f85bf3129.zip |
drakx-in-chroot: do not require running kernel to be installed, generate empty modules.dep and modules.alias files instead (useful when running drakx-in-chroot from a chroot)
Diffstat (limited to 'tools/drakx-in-chroot')
-rwxr-xr-x | tools/drakx-in-chroot | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/drakx-in-chroot b/tools/drakx-in-chroot index 54510f59a..5feac78e9 100755 --- a/tools/drakx-in-chroot +++ b/tools/drakx-in-chroot @@ -95,7 +95,7 @@ eval { cp_af($_, "$SLASH_LOCATION$_") } foreach qw(/etc/resolv.conf); chomp(my $kernel_version = `uname -r`); my $dir = "/modules/$kernel_version"; mkdir_p("$SLASH_LOCATION$dir"); - cp_af("/lib/$dir/modules.dep", "/lib/$dir/modules.alias", "$SLASH_LOCATION$dir"); + output_p("$SLASH_LOCATION$dir" . $_, "\n") foreach "/lib/$dir/modules.dep", "/lib/$dir/modules.alias"; } my $Xnest_pid; |