summaryrefslogtreecommitdiffstats
path: root/perl-install/install/steps.pm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2008-09-01 09:04:45 +0000
committerPascal Rigaux <pixel@mandriva.com>2008-09-01 09:04:45 +0000
commit9849bddca8379d425c5710fefef96f836f6a63bf (patch)
treeb1e1054d7660ae7b5746ca788592b0458caec20d /perl-install/install/steps.pm
parent830f868936102c3d7e40c6bee47be99c2d401a0d (diff)
downloaddrakx-9849bddca8379d425c5710fefef96f836f6a63bf.tar
drakx-9849bddca8379d425c5710fefef96f836f6a63bf.tar.gz
drakx-9849bddca8379d425c5710fefef96f836f6a63bf.tar.bz2
drakx-9849bddca8379d425c5710fefef96f836f6a63bf.tar.xz
drakx-9849bddca8379d425c5710fefef96f836f6a63bf.zip
- hack /tmp/.X11-unix to allow accessing X in chroot
Diffstat (limited to 'perl-install/install/steps.pm')
-rw-r--r--perl-install/install/steps.pm5
1 files changed, 5 insertions, 0 deletions
diff --git a/perl-install/install/steps.pm b/perl-install/install/steps.pm
index 856e59586..652ea2f26 100644
--- a/perl-install/install/steps.pm
+++ b/perl-install/install/steps.pm
@@ -371,6 +371,11 @@ sub beforeInstallPackages {
cp_af("/etc/resolv.conf", "$::prefix/etc");
}
+ if (-e '/tmp/.X11-unix') {
+ mkdir "$::prefix/tmp/.X11-unix";
+ run_program::run('mount', '--bind', '/tmp/.X11-unix', "$::prefix/tmp/.X11-unix");
+ }
+
log::l("setting excludedocs to $o->{excludedocs}");
substInFile { s/%_excludedocs.*//; $_ .= "%_excludedocs yes\n" if eof && $o->{excludedocs} } "$::prefix/etc/rpm/macros";