From 485dd89c0b466f40dc1937db62c2e53b4c8b8e15 Mon Sep 17 00:00:00 2001 From: Eric Blake Date: Wed, 30 Oct 2019 14:22:48 +0100 Subject: [PATCH] Avoid sudo during restore. Although mknod requires sudo, rm does not. --- 2019-kvm-forum/restore | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/2019-kvm-forum/restore b/2019-kvm-forum/restore index 620e30e..30c9682 100755 --- a/2019-kvm-forum/restore +++ b/2019-kvm-forum/restore @@ -9,9 +9,7 @@ if [ "$talkdir" = "" ]; then exit 1; fi fusermount -u $talkdir/6200-vddk.d/mp >& /dev/null -if [ -d "$talkdir/6400-boot.d/root" ]; then - sudo rm -rf $talkdir/6400-boot.d/root -fi +rm -rf $talkdir/6400-boot.d/root sleep 0.5; killall nbdkit >& /dev/null -- 1.8.3.1