Ensure to run the script only with a btrfs root system

This commit is contained in:
gardouille 2019-01-23 19:15:09 +01:00
parent f74820fab9
commit 2239846950
Signed by: gardouille
GPG Key ID: E759BAA22501AF32
1 changed files with 3 additions and 0 deletions

View File

@ -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