Skip to content

Commit

Permalink
fix: Properly unmount the destination partition
Browse files Browse the repository at this point in the history
  • Loading branch information
Rafiot committed Jan 16, 2020
1 parent 57cb2e2 commit 82b82ec
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions circlean_fs/root_partition/opt/groomer/mount_dest.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ clean(){
rm -rf "${DST_MNT}/IN_PROGRESS.txt"*
${SYNC} # Write anything in memory to disk
# Unmount destination
${UMOUNT} -b "${DST_DEV}"
${UMOUNT} -b "${DST_DEV}1"
exit
}

Expand All @@ -37,7 +37,7 @@ check_dest_exists() {

unmount_dest_if_mounted() {
if /bin/mount|grep "${DST_MNT}"; then
${UMOUNT} -b "${DST_DEV}" || true
${UMOUNT} -b "${DST_DEV}1" || true
fi
}

Expand Down

0 comments on commit 82b82ec

Please sign in to comment.