mirror of
https://github.com/flatcar/scripts.git
synced 2026-05-05 20:26:44 +02:00
make_netboot: change HWID bundle filename
This is the counter part of https://gerrit-int.chromium.org/4790 BUG=none, see https://gerrit-int.chromium.org/4790 TEST=see https://gerrit-int.chromium.org/4790 Change-Id: If4adc586509c81808c1deb3e781317fbc244ff07 Reviewed-on: http://gerrit.chromium.org/gerrit/6892 Reviewed-by: Dave Parker <dparker@chromium.org> Tested-by: Hung-Te Lin <hungte@chromium.org>
This commit is contained in:
parent
72f7c86449
commit
0288219071
@ -86,17 +86,19 @@ else
|
||||
fi
|
||||
|
||||
# Get HWID bundle if available.
|
||||
# TODO(hungte) Move this to chromite because HWID bundles should be archived for
|
||||
# every factory archive instead of builds with netboot.
|
||||
hwid_dir="usr/share/chromeos-hwid"
|
||||
sudo rm -rf hwid
|
||||
mkdir -p hwid
|
||||
if updater_files=$(ls "${SYSROOT}/${hwid_dir}/" | grep updater_); then
|
||||
echo "Copying HWID bundles: $updater_files"
|
||||
for file in $updater_files; do
|
||||
if hwid_files=$(ls "${SYSROOT}/${hwid_dir}/" | grep ^hwid_bundle); then
|
||||
echo "Copying HWID bundles: $hwid_files"
|
||||
for file in $hwid_files; do
|
||||
cp "${SYSROOT}/${hwid_dir}/${file}" "hwid/"
|
||||
done
|
||||
else
|
||||
echo "Skipping HWID: ${SYSROOT}/${hwid_dir}/" \
|
||||
"does not contain updater"
|
||||
"does not contain HWID bundle"
|
||||
fi
|
||||
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user