Skip to content

Commit

Permalink
Fix the hostimage version path permission issue (#6337)
Browse files Browse the repository at this point in the history
  • Loading branch information
xumia authored and lguohan committed Jan 3, 2021
1 parent 9b2274a commit 0ac81e3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion build_debian.sh
Original file line number Diff line number Diff line change
Expand Up @@ -578,7 +578,7 @@ sudo du -hsx $FILESYSTEM_ROOT
sudo mkdir -p $FILESYSTEM_ROOT/var/lib/docker
sudo mksquashfs $FILESYSTEM_ROOT $FILESYSTEM_SQUASHFS -e boot -e var/lib/docker -e $PLATFORM_DIR

sudo scripts/collect_host_image_version_files.sh $TARGET_PATH $FILESYSTEM_ROOT
scripts/collect_host_image_version_files.sh $TARGET_PATH $FILESYSTEM_ROOT

if [[ $CONFIGURED_ARCH == armhf || $CONFIGURED_ARCH == arm64 ]]; then
# Remove qemu arm bin executable used for cross-building
Expand Down
1 change: 1 addition & 0 deletions scripts/collect_host_image_version_files.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ TARGET=$1
FILESYSTEM_ROOT=$2
VERSIONS_PATH=$TARGET/versions/host-image

[ -d $VERSIONS_PATH ] && sudo rm -rf $VERSIONS_PATH
mkdir -p $VERSIONS_PATH

sudo LANG=C chroot $FILESYSTEM_ROOT post_run_buildinfo
Expand Down

0 comments on commit 0ac81e3

Please sign in to comment.