index : devtools32 | |
Archlinux32 fork of devtools | gitolite user |
summaryrefslogtreecommitdiff |
author | Luke Shumaker <LukeShu@sbcglobal.net> | 2013-04-24 12:25:48 -0400 |
---|---|---|
committer | Luke Shumaker <LukeShu@sbcglobal.net> | 2013-04-24 12:25:48 -0400 |
commit | fd0109ecd077f53d0fdf3746bc5d2a8c8f1e82e7 (patch) | |
tree | b4b848c38e6ed07ab7ca0c2fc2b105c04f6e0656 /mkarchroot.in | |
parent | d0e593c9f8deef75e1d7878787f62e111303d9ba (diff) | |
parent | eebfd9a30f7d7f2c7fa98b08dcf7b062a29c2377 (diff) |
-rw-r--r-- | mkarchroot.in | 8 |
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 |