From c4a9a2974642f49a20d4217b8c457cfb4db10ea2 Mon Sep 17 00:00:00 2001 From: MegaBrutal Date: Thu, 4 Feb 2016 12:23:06 +0100 Subject: [PATCH] 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 --- fs/snapshot-rootfs.sh | 2 +- host/vmhost-status.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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: -- 2.34.1