From 2239846950a380a3d1d9fce0fcdb4ae4fdb73b0d Mon Sep 17 00:00:00 2001 From: Gardouille Date: Wed, 23 Jan 2019 19:15:09 +0100 Subject: [PATCH] Ensure to run the script only with a btrfs root system --- debian/part.btrfs.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/debian/part.btrfs.sh b/debian/part.btrfs.sh index 02b292d..7ff1cdb 100755 --- a/debian/part.btrfs.sh +++ b/debian/part.btrfs.sh @@ -5,6 +5,9 @@ # # Source: https://wiki.101010.fr/doku.php?id=debian:installation_btrfs +# Ensure to run the script only with a btrfs root +grep " /target btrfs " /etc/mtab || exit 1 + # Remount the partition with "compress" option mount -o remount,defaults,compress=lzo /target