diff options
author | Daniel Baumann <daniel@debian.org> | 2012-12-16 23:42:37 +0100 |
---|---|---|
committer | Daniel Baumann <mail@daniel-baumann.ch> | 2013-05-06 14:50:02 +0200 |
commit | b1b7e909c77fd7731e9b9a8e5991ee32752d3fc5 (patch) | |
tree | 4111713fc008481b62bd46e419d46f0c8a7d4a9b /scripts | |
parent | 1226704fff45183bd52a05dea12f71af760dde56 (diff) | |
download | vyos-live-build-b1b7e909c77fd7731e9b9a8e5991ee32752d3fc5.tar.gz vyos-live-build-b1b7e909c77fd7731e9b9a8e5991ee32752d3fc5.zip |
Removing old code in chroot_hacks for tasks which are not used anymore.
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/build/chroot_hacks | 72 |
1 files changed, 0 insertions, 72 deletions
diff --git a/scripts/build/chroot_hacks b/scripts/build/chroot_hacks index 7cea32ff5..58f8e7064 100755 --- a/scripts/build/chroot_hacks +++ b/scripts/build/chroot_hacks @@ -52,78 +52,6 @@ case "${LB_MODE}" in ;; esac -for TASK in ${LB_TASKS} -do - case "${TASK}" in - gnome-desktop) - # gnome is the only desktop environment in this image - if [ -z "$(echo ${LB_TASKS} | sed -e 's|gnome-desktop||' -e 's| desktop ||' | grep desktop)" ] - then - # set display manager - echo "gdm shared/default-x-display-manager select gdm" > chroot/root/preseed - Chroot chroot "debconf-set-selections /root/preseed" - rm -f chroot/root/preseed - Chroot chroot "dpkg-reconfigure gdm" - echo "/usr/bin/gdm" > chroot/etc/X11/default-display-manager - - # set session manager - Chroot chroot "update-alternatives --set x-session-manager /usr/bin/gnome-session" - fi - ;; - - kde-desktop) - # kde is the only desktop-environment in this image - if [ -z "$(echo ${LB_TASKS} | sed -e 's|kde-desktop||' -e 's| desktop ||' | grep desktop)" ] - then - # set display manager - echo "kdm shared/default-x-display-manager select kdm" > chroot/root/preseed - Chroot chroot "debconf-set-selections /root/preseed" - rm -f chroot/root/preseed - Chroot chroot "dpkg-reconfigure kdm" - echo "/usr/bin/kdm" > chroot/etc/X11/default-display-manager - - # set session manager - Chroot chroot "update-alternatives --set x-session-manager /usr/bin/startkde" - - # get rid of resolvconf - Chroot chroot "dpkg -P resolvconf" - fi - ;; - - lxde-desktop) - # lxde is the only desktop environment in this image - if [ -z "$(echo ${LB_TASKS} | sed -e 's|lxde-desktop||' -e 's| desktop ||' | grep desktop)" ] - then - # set display manager - echo "gdm shared/default-x-display-manager select gdm" > chroot/root/preseed - Chroot chroot "debconf-set-selections /root/preseed" - rm -f chroot/root/preseed - Chroot chroot "dpkg-reconfigure gdm" - echo "/usr/bin/gdm" > chroot/etc/X11/default-display-manager - - # set session manager - Chroot chroot "update-alternatives --set x-session-manager /usr/bin/startlxde" - fi - ;; - - xfce-desktop) - # xfce is the only desktop environment in this image - if [ -z "$(echo ${LB_TASKS} | sed -e 's|xfce-desktop||' -e 's| desktop ||' | grep desktop)" ] - then - # set display manager - echo "gdm shared/default-x-display-manager select gdm" > chroot/root/preseed - Chroot chroot "debconf-set-selections /root/preseed" - rm -f chroot/root/preseed - Chroot chroot "dpkg-reconfigure gdm" - echo "/usr/bin/gdm" > chroot/etc/X11/default-display-manager - - # set session manager - Chroot chroot "update-alternatives --set x-session-manager /usr/bin/xfce4-session" - fi - ;; - esac -done - case "${LB_BINARY_IMAGES}" in netboot) if [ ! -f chroot/sbin/mount.cifs ] |