--- mcore-src/trunk/mcore-tools/daemon/client/include/plymouth.client.class 2013/05/10 13:16:21 2085 +++ mcore-src/trunk/mcore-tools/daemon/client/include/plymouth.client.class 2013/05/10 13:16:45 2086 @@ -40,10 +40,16 @@ local action="$1" local i + local chrooted + if [[ -n ${MROOT} ]] && [[ ${MROOT} != / ]] + then + chrooted="system_chroot" + fi + case "${action}" in - current) rvecho "$(plymouth-set-default-theme)" ;; + current) rvecho "$(${chrooted} plymouth-set-default-theme)" ;; system) - for i in $(plymouth-set-default-theme --list) + for i in $(${chrooted} plymouth-set-default-theme --list) do rvecho "${i}" done @@ -61,9 +67,15 @@ local themedir="${MROOT}/usr/share/plymouth/themes" [[ -z ${theme} ]] && help_boot_theme && return 1 + local chrooted + if [[ -n ${MROOT} ]] && [[ ${MROOT} != / ]] + then + chrooted="system_chroot" + fi + if [[ -d ${themedir}/${theme} ]] then - plymouth-set-default-theme ${theme} + ${chrooted} plymouth-set-default-theme ${theme} mecho "Selected theme '${theme}'." else eecho "Theme '${theme}' not available on this system. Aborted!"