From 9849bddca8379d425c5710fefef96f836f6a63bf Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Mon, 1 Sep 2008 09:04:45 +0000 Subject: - hack /tmp/.X11-unix to allow accessing X in chroot --- perl-install/install/steps.pm | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'perl-install/install/steps.pm') 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"; -- cgit v1.2.1