diff --git a/debian/part.btrfs.sh b/debian/part.btrfs.sh index aa64ed3..02b292d 100755 --- a/debian/part.btrfs.sh +++ b/debian/part.btrfs.sh @@ -17,7 +17,7 @@ for DIR in etc home opt root srv tmp usr var; do ## If the directory already existed if [ -d "/target/${DIR}.temp" ]; then ## Move the content to the new subvolume - mv -- /target/"${DIR}".temp/.* /target/"${DIR}".temp/* /target/"${DIR}" + mv -- /target/"${DIR}".temp/* /target/"${DIR}".temp/.[!.]* /target/"${DIR}".temp/..?* /target/"${DIR}" ## Remove the temp directory rmdir -- /target/"${DIR}".temp fi