From 5916e4d701b1a68583f9bc2407d16d4c8097deb0 Mon Sep 17 00:00:00 2001 From: Bryan Gurney Date: Mon, 31 Aug 2020 15:32:16 -0400 Subject: [PATCH] migrate_symlinks: print all filenames and remove individual removes Signed-off-by: Bryan Gurney --- developer_tools/stratis_migrate_symlinks.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/developer_tools/stratis_migrate_symlinks.sh b/developer_tools/stratis_migrate_symlinks.sh index a253ae3c50..45963587c9 100755 --- a/developer_tools/stratis_migrate_symlinks.sh +++ b/developer_tools/stratis_migrate_symlinks.sh @@ -45,6 +45,10 @@ fi for i in $(find /stratis) do + if [ ! -d $i ] + then + echo "Checking file $i..." + fi if [ -h $i ] && [ -b $i ] then devname=$i @@ -73,7 +77,6 @@ do echo "No future link found; sending change event..." udevadm test --action=change /sys/class/block/$tgtbase 1>/dev/null 2>&1 fi - rm -fv $devname fi done