Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/mkarchroot.in
diff options
context:
space:
mode:
authorLuke Shumaker <LukeShu@sbcglobal.net>2013-04-24 12:25:48 -0400
committerLuke Shumaker <LukeShu@sbcglobal.net>2013-04-24 12:25:48 -0400
commitfd0109ecd077f53d0fdf3746bc5d2a8c8f1e82e7 (patch)
treeb4b848c38e6ed07ab7ca0c2fc2b105c04f6e0656 /mkarchroot.in
parentd0e593c9f8deef75e1d7878787f62e111303d9ba (diff)
parenteebfd9a30f7d7f2c7fa98b08dcf7b062a29c2377 (diff)
Merge tag '20130406' into complete
tagging
Diffstat (limited to 'mkarchroot.in')
-rw-r--r--mkarchroot.in8
1 files changed, 5 insertions, 3 deletions
diff --git a/mkarchroot.in b/mkarchroot.in
index ce732be..cff046f 100644
--- a/mkarchroot.in
+++ b/mkarchroot.in
@@ -10,7 +10,7 @@
m4_include(lib/common.sh)
-CHROOT_VERSION='v2'
+CHROOT_VERSION='v3'
FORCE='n'
MODE='i'
@@ -187,8 +187,10 @@ elif [[ $MODE == i ]]; then
mkdir -p "${working_dir}"
fi
- if { type -P btrfs && btrfs subvolume create "${working_dir}"; } &>/dev/null; then
- chmod 0755 "${working_dir}"
+ if [[ "$(stat -f -c %T "${working_dir}")" == btrfs ]]; then
+ if { type -P btrfs && btrfs subvolume create "${working_dir}"; } &>/dev/null; then
+ chmod 0755 "${working_dir}"
+ fi
fi
chroot_lock