Merge branch 'master' of git.qubes-os.org:/var/lib/qubes/git/marmarek/template-builder
This commit is contained in:
commit
db0b9058c6
@ -101,9 +101,9 @@ qvm-template-commit %{template_name}
|
||||
if [ "$1" = 0 ] ; then
|
||||
# no more packages left
|
||||
# First remove DispVM template (even if not exists...)
|
||||
qvm-remove -q %{template_name}-dvm
|
||||
qvm-remove --force-root -q %{template_name}-dvm
|
||||
|
||||
if ! qvm-remove -q --just-db %{template_name}; then
|
||||
if ! qvm-remove --force-root -q --just-db %{template_name}; then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
|
@ -1,19 +1,27 @@
|
||||
#!/bin/sh
|
||||
|
||||
apps="evince okular openoffice gwenview firefox"
|
||||
apps="evince /usr/libexec/evinced soffice firefox"
|
||||
|
||||
cat /etc/dispvm-dotfiles.tbz | tar -xjf- --overwrite -C /home/user --owner user 2>&1 >/tmp/dispvm-dotfiles-errors.log
|
||||
|
||||
for app in $apps ; do
|
||||
echo "Launching: $app..."
|
||||
$app >/tmp/dispvm_prerun_errors.log 2>&1 &
|
||||
$app >>/tmp/dispvm_prerun_errors.log 2>&1 &
|
||||
done
|
||||
|
||||
echo "Sleeping..."
|
||||
sleep 60
|
||||
PREV_IO=0
|
||||
while true; do
|
||||
IO=`vmstat -D | awk '/read|write/ {IOs+=$1} END {print IOs}'`
|
||||
if [ $IO -lt $[ $PREV_IO + 50 ] ]; then
|
||||
break;
|
||||
fi
|
||||
PREV_IO=$IO
|
||||
sleep 1
|
||||
done
|
||||
|
||||
ps ax > /tmp/dispvm-prerun-proclist.log
|
||||
|
||||
cat /etc/dispvm-dotfiles.tbz | tar -xjf- --overwrite -C /home/user --owner user 2>&1 >/tmp/dispvm-dotfiles-errors.log
|
||||
cat /etc/dispvm-dotfiles.tbz | tar -xjf- --overwrite -C /home/user --owner user 2>&1 >>/tmp/dispvm-dotfiles-errors.log
|
||||
|
||||
echo done.
|
||||
|
Loading…
Reference in New Issue
Block a user