From: MegaBrutal Date: Thu, 4 Feb 2016 11:23:06 +0000 (+0100) Subject: snapshot-rootfs.sh, vmhost-status.sh: New path for btrfs binary X-Git-Url: http://git.megabrutal.com/?p=mgsautils.git;a=commitdiff_plain;h=c4a9a2974642f49a20d4217b8c457cfb4db10ea2 snapshot-rootfs.sh, vmhost-status.sh: New path for btrfs binary With Ubuntu 15.10, the path of the btrfs binary has changed from /sbin/btrfs to /bin/btrfs. Therefore, I stopped referring to the binary by full path. While /bin is in the PATH by default on Ubuntu 15.10 (even for cron jobs), on older Ubuntus or other distros, you may possibly need to add /sbin or /bin to the PATH for these scripts. modified: fs/snapshot-rootfs.sh modified: host/vmhost-status.sh --- diff --git a/fs/snapshot-rootfs.sh b/fs/snapshot-rootfs.sh index 5b7d05b..ca1d01c 100755 --- a/fs/snapshot-rootfs.sh +++ b/fs/snapshot-rootfs.sh @@ -1,4 +1,4 @@ #!/bin/sh mount /btrfs -/sbin/btrfs subvolume snapshot -r /btrfs/@ /btrfs/@-snapshot-$(date +%Y%m%d%H%M%S) +btrfs subvolume snapshot -r /btrfs/@ /btrfs/@-snapshot-$(date +%Y%m%d%H%M%S) umount /btrfs diff --git a/host/vmhost-status.sh b/host/vmhost-status.sh index 6e76754..52de526 100755 --- a/host/vmhost-status.sh +++ b/host/vmhost-status.sh @@ -23,7 +23,7 @@ echo echo echo BTRFS SUBVOLUMES: echo -/sbin/btrfs subvolume list / +btrfs subvolume list / echo echo echo LXC CONTAINERS: