diff options
author | Daniel Baumann <daniel@debian.org> | 2012-12-16 23:42:37 +0100 |
---|---|---|
committer | Daniel Baumann <daniel@debian.org> | 2012-12-16 23:42:37 +0100 |
commit | 10d0fb5aed4722bc4eb246aaecb11507c1b8562f (patch) | |
tree | 4111713fc008481b62bd46e419d46f0c8a7d4a9b /scripts/build | |
parent | 9013f5d8dbcd80f4002e8cee21b9860a85524c97 (diff) | |
download | vyos-live-build-10d0fb5aed4722bc4eb246aaecb11507c1b8562f.tar.gz vyos-live-build-10d0fb5aed4722bc4eb246aaecb11507c1b8562f.zip |
Removing old code in chroot_hacks for tasks which are not used anymore.
Diffstat (limited to 'scripts/build')
-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 ] |