From efcff5cc3abf96b76be82d29d3cb92feae3af873 Mon Sep 17 00:00:00 2001 From: Tomasz Sterna Date: Wed, 23 Mar 2011 21:19:16 +0100 Subject: [PATCH] Added plymouth progress handling to qubes_setupdvm init script. --- dom0/init.d/qubes_setupdvm | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/dom0/init.d/qubes_setupdvm b/dom0/init.d/qubes_setupdvm index 7fdbf0f7..4bc13349 100755 --- a/dom0/init.d/qubes_setupdvm +++ b/dom0/init.d/qubes_setupdvm @@ -30,11 +30,21 @@ start() if ! [ -f $ROOT ] ; then create_neeed=1 ; fi if [ $ROOT -nt $DEFAULT ] ; then create_neeed=1 ; fi if [ $create_neeed = 1 ] ; then - echo Creating the default DVM. This may take up to 2 minutes... + MSG="Creating default DVM. This may take up to 2 minutes..." + echo " $MSG" + if [ -x /usr/bin/plymouth ]; then + /usr/bin/plymouth message --text="$MSG" + /usr/bin/plymouth pause-progress + fi qvm-create-default-dvm --default-template --default-script DVMDIR="/var/lib/qubes/appvms/`qvm-get-default-template`-dvm" /bin/chown -R root.qubes "$DVMDIR" /bin/chmod -R ug=rwX,o=rX "$DVMDIR" + if [ -x /usr/bin/plymouth ]; then + /usr/bin/plymouth message --text="" + /usr/bin/plymouth unpause-progress + fi + success return fi if [ -f /var/lib/qubes/dvmdata/dont_use_shm ] ; then