summaryrefslogtreecommitdiffstats
path: root/os-plugins/plugins/desktop/OpenSLX/Distro/Ubuntu.pm
diff options
context:
space:
mode:
authorDirk von Suchodoletz2008-08-09 21:11:58 +0200
committerDirk von Suchodoletz2008-08-09 21:11:58 +0200
commit41a989e3e1fda9be2fd97b87c7cdeb99eb3735d6 (patch)
treef8f8dee3c72ed81deb6169994042423659b76036 /os-plugins/plugins/desktop/OpenSLX/Distro/Ubuntu.pm
parentTrivial: New version number is 4.8.9 until we have the initramfs-ng (diff)
downloadcore-41a989e3e1fda9be2fd97b87c7cdeb99eb3735d6.tar.gz
core-41a989e3e1fda9be2fd97b87c7cdeb99eb3735d6.tar.xz
core-41a989e3e1fda9be2fd97b87c7cdeb99eb3735d6.zip
Implementing (hopefully :)) two stage3 options (allowshutdown and
rootlogin) git-svn-id: http://svn.openslx.org/svn/openslx/openslx/trunk@2003 95ad53e4-c205-0410-b2fa-d234c58c8868
Diffstat (limited to 'os-plugins/plugins/desktop/OpenSLX/Distro/Ubuntu.pm')
-rw-r--r--os-plugins/plugins/desktop/OpenSLX/Distro/Ubuntu.pm17
1 files changed, 17 insertions, 0 deletions
diff --git a/os-plugins/plugins/desktop/OpenSLX/Distro/Ubuntu.pm b/os-plugins/plugins/desktop/OpenSLX/Distro/Ubuntu.pm
index 833102e6..74d53181 100644
--- a/os-plugins/plugins/desktop/OpenSLX/Distro/Ubuntu.pm
+++ b/os-plugins/plugins/desktop/OpenSLX/Distro/Ubuntu.pm
@@ -44,6 +44,8 @@ sub setupGDMScript
my $repoPath = shift;
my $script = $self->SUPER::setupGDMScript($repoPath);
+
+ my $configFile = $self->GDMPathInfo()->{config};
$script .= unshiftHereDoc(<<' End-of-Here');
rllinker gdm 1 1
@@ -52,6 +54,21 @@ sub setupGDMScript
chroot /mnt update-alternatives --set x-session-manager \
/usr/bin/gnome-session
testmkd /mnt/var/lib/gdm root:gdm 1770
+ sed "/[daemon]/ a\BaseXsession=/etc/gdm/Xsession" -i /mnt$configFile
+ case ${desktop_allowshutdown} in
+ none)
+ ;;
+ root)
+ sed "s|AllowShutdown.*|AllowShutdown=true|;\
+ s|SecureShutdown.*|SecureShutdown=true" -i /mnt$configFile
+ ;;
+ users)
+ sed "s|AllowShutdown.*|AllowShutdown=true|;\
+ s|SecureShutdown.*|SecureShutdown=false" -i /mnt$configFile
+ ;;
+ esac
+ [ ${desktop_rootlogin} -ne 0 ] && \
+ sed "s|AllowRoot.*|AllowRoot=true|" -i /mnt$configFile
End-of-Here
return $script;