summaryrefslogtreecommitdiffstats
path: root/os-plugins/plugins/xserver/OpenSLX/Distro/Ubuntu.pm
diff options
context:
space:
mode:
authorMichael Janczyk2010-08-08 20:25:28 +0200
committerMichael Janczyk2010-08-08 20:25:28 +0200
commit85b13993176b36f0e5a6e4d3fbffbee956b68f3a (patch)
treee486a4b20ffb34e72debfbfb3284eede30713d75 /os-plugins/plugins/xserver/OpenSLX/Distro/Ubuntu.pm
parentMerge branch 'master' into vmgrid (diff)
parentMinor optimizations ... (diff)
downloadcore-85b13993176b36f0e5a6e4d3fbffbee956b68f3a.tar.gz
core-85b13993176b36f0e5a6e4d3fbffbee956b68f3a.tar.xz
core-85b13993176b36f0e5a6e4d3fbffbee956b68f3a.zip
Merge branch 'master' into vmgrid
Diffstat (limited to 'os-plugins/plugins/xserver/OpenSLX/Distro/Ubuntu.pm')
-rw-r--r--os-plugins/plugins/xserver/OpenSLX/Distro/Ubuntu.pm17
1 files changed, 11 insertions, 6 deletions
diff --git a/os-plugins/plugins/xserver/OpenSLX/Distro/Ubuntu.pm b/os-plugins/plugins/xserver/OpenSLX/Distro/Ubuntu.pm
index 728e6a03..057cf138 100644
--- a/os-plugins/plugins/xserver/OpenSLX/Distro/Ubuntu.pm
+++ b/os-plugins/plugins/xserver/OpenSLX/Distro/Ubuntu.pm
@@ -48,16 +48,21 @@ sub setupXserverScript
my $script = $self->SUPER::setupXserverScript($repoPath);
- $script .= unshiftHereDoc(<<' End-of-Here');
+ # overwriting script part from Base.pm
+ $script = unshiftHereDoc(<<' End-of-Here');
# Ubuntu specific extension to stage3 xserver.sh
+ echo -e "# ${xfc#/mnt*}\n# autogenerated X hardware configuration by \
+ the xserver plugin in OpenSLX stage3\n# DO NOT EDIT THIS FILE BUT THE PLUGIN \
+ INSTEAD" >${xfc}
+ # using variables defined in XX_xserver.sh
+ echo -e "${x_modpath}\n${x_srvflags}\n${x_modules}" >>${xfc}
+ echo "${x_keyboard}" | sed "s/kbd/evdev/" >>${xfc}
+ echo -e "${x_mouse}\n${x_monitor}\n${x_screen}" >>${xfc}
+ echo "${x_srvlayout}" | sed "/ Screen /d" >>${xfc}
+ testmkd /mnt/etc/X11/xorg.conf.d
testmkd /mnt/var/run/xauth
testmkd /mnt/var/lib/xkb
ln -sf /usr/bin/Xorg /mnt/etc/X11/X
- # newer Xorgs do not need predefined configuration file, not needed if
- # XserverPathInfo gets implemented ...
- sed -e "1i# xorg.conf not needed in most cases for Xorg 1.7+" \
- /mnt/etc/X11/xorg.conf >/etc/X11/xorg.openslx 2>/dev/null
- rm /mnt/etc/X11/xorg.conf 2>/dev/null
End-of-Here
return $script;