livecdfs-update.sh: Set XSESSION in /etc/env.d/90xsession
authorW. Trevor King <wking@tremily.us>
Sat, 2 Mar 2013 19:17:01 +0000 (14:17 -0500)
committerW. Trevor King <wking@tremily.us>
Sat, 2 Mar 2013 19:21:44 +0000 (14:21 -0500)
As part of the OpenRC migration, the recommended place for configuring
the default X session moved from /etc/rc.conf to /etc/env.d/90xsession
[1].

[1]: http://www.gentoo.org/doc/en/openrc-migration.xml

targets/support/livecdfs-update.sh

index 77d694ef0c0562dfa29e8087fda2840cf631cf2e..d95d537f8e25e5decccba9f7b1d3a2f4719576de 100644 (file)
@@ -171,8 +171,7 @@ fi
 # Setup configured default X Session
 if [ -n "${clst_livecd_xsession}" ]
 then
-       sed -i "s:#XSESSION=\"Gnome\":XSESSION=\"${clst_livecd_xsession}\":" \
-               /etc/rc.conf
+       echo "XSESSION=\"${clst_livecd_xsession}\"" > /etc/env.d/90xsession
 fi
 
 # touch /etc/asound.state