From 886ce7e6d120337ffdc417223c3b63732e47a8be Mon Sep 17 00:00:00 2001 From: Chriz Date: Sun, 25 Dec 2022 22:40:42 +0100 Subject: [PATCH] Delete backup-boot --- backup-boot | 18 ------------------ 1 file changed, 18 deletions(-) delete mode 100755 backup-boot diff --git a/backup-boot b/backup-boot deleted file mode 100755 index 24891f9..0000000 --- a/backup-boot +++ /dev/null @@ -1,18 +0,0 @@ -#!/bin/sh -# Main system backups are carried out via ZFS send/receive, -# but that won't pick up /boot. -set -e - -# ensure /boot is the real deal -mountpoint -q /boot || (echo "/boot is not a mountpoint" >&2; exit 1) - -# bind mount / to a temporary path -fakeroot=$(mktemp -d) -mount --bind / $fakeroot - -# copy the /boot filesystem into /'s boot/ -rsync -a --delete /boot/ $fakeroot/boot/ - -# clean up -umount $fakeroot -rmdir $fakeroot