Add "heads/" prefix to all Heads-related cbfs files

Needed to identify which files should be preserved between upgrades
such as "heads/initrd/*" or "heads/counter"
This commit is contained in:
Francis Lam 2018-04-20 15:11:12 -07:00
parent 8644a36488
commit 48ca75a482
No known key found for this signature in database
GPG Key ID: 0A59C698920806EB

View File

@ -8,11 +8,11 @@ if [ -z "$CBFS_PCR" ]; then
fi
# Load individual files
cbfsfiles=`cbfs -t 50 -l 2>/dev/null | grep "^initrd/"` \
cbfsfiles=`cbfs -t 50 -l 2>/dev/null | grep "^heads/initrd/"` \
|| die "cbfs list files failed"
for cbfsname in `echo $cbfsfiles`; do
filename=${cbfsname:6}
filename=${cbfsname:12}
if [ ! -z "$filename" ]; then
echo "Loading $filename from CBFS"
mkdir -p `dirname $filename` \