mirror of
https://github.com/linuxboot/heads.git
synced 2025-04-08 11:54:26 +00:00
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:
parent
8644a36488
commit
48ca75a482
@ -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` \
|
||||
|
Loading…
x
Reference in New Issue
Block a user