From 3e9fbc926f73fca4d666de3c3e08214bde040fcd Mon Sep 17 00:00:00 2001 From: Jonathan Matthews <54287723+inthreedee@users.noreply.github.com> Date: Wed, 11 Sep 2019 10:55:51 -0400 Subject: [PATCH] Update file exclusions With systemd 243, systemd-boot generates a random-seed file at every boot. This file needs to be excluded. Use grep to simplify excluding multiple files. --- chkboot | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/chkboot b/chkboot index dbcdea2..a0bb509 100755 --- a/chkboot +++ b/chkboot @@ -67,8 +67,7 @@ fi dd if="$BOOTDISK" of="$DISKHEAD" bs=512 count=1 > /dev/null 2>&1 pushd "$BOOTDIR" > /dev/null 2>&1 - files=`find . -type f` # get file infos - files=`echo $files | sed "s/.\/grub\/grubenv//"` # remove files that should be skipped + files=`find . -type f | grep -ve ./grub/grubenv -ve ./loader/random-seed` # get file infos, exclude some files # generate hashes of each file for fname in $files; do