summaryrefslogtreecommitdiff
path: root/src/chroot-tools
diff options
context:
space:
mode:
authorLuke Shumaker <LukeShu@sbcglobal.net>2012-12-02 21:16:23 -0500
committerLuke Shumaker <LukeShu@sbcglobal.net>2012-12-09 14:20:40 -0500
commit17518277065a4c17557bb9baf2272af19fb15de0 (patch)
tree25d3efda5ccf61e817c01b6fc7e14241572b1f0f /src/chroot-tools
parent098d7430e6447c4658704c3bcf88ea1ed7a5206b (diff)
fix several "stupid" mistakes
Diffstat (limited to 'src/chroot-tools')
-rwxr-xr-xsrc/chroot-tools/librechroot2
-rwxr-xr-x[-rw-r--r--]src/chroot-tools/librechroot.gpl24
2 files changed, 3 insertions, 3 deletions
diff --git a/src/chroot-tools/librechroot b/src/chroot-tools/librechroot
index 6594f15..26176e0 100755
--- a/src/chroot-tools/librechroot
+++ b/src/chroot-tools/librechroot
@@ -61,7 +61,7 @@ main() {
local mode=enter
local archroot_args=(-f)
local ARG=''
- while getopts 'n:l:NCcI:i:mrsuh' arg; do
+ while getopts 'n:l:NCcI:i:mr:suh' arg; do
case $arg in
n) CHROOT=$OPTARG;;
l) CHROOTCOPY=$OPTARG;;
diff --git a/src/chroot-tools/librechroot.gpl2 b/src/chroot-tools/librechroot.gpl2
index 6ba361f..b6112a2 100644..100755
--- a/src/chroot-tools/librechroot.gpl2
+++ b/src/chroot-tools/librechroot.gpl2
@@ -25,14 +25,14 @@ sync() {
local use_rsync=false
if type -P btrfs >/dev/null; then
[[ -d $copydir ]] && btrfs subvolume delete "$copydir" &>/dev/null
- btrfs subvolume snapshot "$chrootdir/root" "$copydir" &>/dev/null || use_rsync=true
+ btrfs subvolume snapshot "$rootdir" "$copydir" &>/dev/null || use_rsync=true
else
use_rsync=true
fi
if $use_rsync; then
mkdir -p "$copydir"
- rsync -a --delete -q -W -x "$CHROOTDIR/$CHROOT/root/" "$copydir"
+ rsync -a --delete -q -W -x "$rootdir/" "$copydir"
fi
stat_done