From c8e2121d4fb58568f0143ef4b853e932f8fd1ad3 Mon Sep 17 00:00:00 2001 From: Michael Prokop Date: Tue, 7 Dec 2010 20:10:09 +0100 Subject: [PATCH] 90-update-alternatives: make sure to run the update-alternatives listing for x-window-manager inside the target chroot. --- etc/grml/fai/config/scripts/GRMLBASE/90-update-alternatives | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/etc/grml/fai/config/scripts/GRMLBASE/90-update-alternatives b/etc/grml/fai/config/scripts/GRMLBASE/90-update-alternatives index 5aff20d..56a365e 100755 --- a/etc/grml/fai/config/scripts/GRMLBASE/90-update-alternatives +++ b/etc/grml/fai/config/scripts/GRMLBASE/90-update-alternatives @@ -52,7 +52,7 @@ fi if [ -r $target/usr/bin/wm-ng ] ; then # activate wm-ng only if it is registered as x-window-manager: - if update-alternatives --list x-window-manager | grep -q wm-ng ; then + if $ROOTCMD update-alternatives --list x-window-manager | grep -q wm-ng ; then $ROOTCMD update-alternatives --set x-window-manager /usr/bin/wm-ng fi fi -- 2.1.4