pass move-mount-beneath: add more debug info

This commit is contained in:
lassulus
2025-01-12 11:17:02 +01:00
parent 80fcbc5e62
commit cc99a23ac2

View File

@@ -15,6 +15,7 @@ let
]; ];
text = '' text = ''
set -efu -o pipefail set -efu -o pipefail
set -x
src=$1 src=$1
target=$2 target=$2
@@ -28,7 +29,7 @@ let
mount --bind --make-private "$target".tmp "$target".tmp mount --bind --make-private "$target".tmp "$target".tmp
mount --bind --make-private "$target" "$target" mount --bind --make-private "$target" "$target"
tar -xf "$src" -C "$target".tmp tar -xf "$src" -C "$target".tmp
move-mount --beneath --move "$target".tmp "$target" 2>/dev/null move-mount --beneath --move "$target".tmp "$target"
umount -R "$target".tmp umount -R "$target".tmp
rmdir "$target".tmp rmdir "$target".tmp
umount --lazy "$target" umount --lazy "$target"