Message ID | 1452518547-4109-1-git-send-email-fdmanana@kernel.org (mailing list archive) |
---|---|
State | Not Applicable |
Headers | show |
diff --git a/common/rc b/common/rc index 5135260..cbf1854 100644 --- a/common/rc +++ b/common/rc @@ -316,11 +316,17 @@ _scratch_mount() _scratch_unmount() { - if [ "$FSTYP" == "overlay" ]; then + case "$FSTYP" in + overlay) _overlay_scratch_unmount - else + ;; + btrfs) + $UMOUNT_PROG $SCRATCH_MNT + ;; + *) $UMOUNT_PROG $SCRATCH_DEV - fi + ;; + esac } _scratch_remount()