mirror of
https://github.com/armbian/build
synced 2025-09-24 19:47:06 +07:00
rootfs: fix: don't try to use chroot binaries after qemu was undeployed
- `"${cache_fname}.list"` and `"${cache_fname}.hash_text"` were very old and unused anyway
This commit is contained in:
@@ -66,8 +66,8 @@ function create_new_rootfs_cache() {
|
||||
|
||||
display_alert "Creating new rootfs cache" "'${cache_name}'" "info"
|
||||
|
||||
create_new_rootfs_cache_via_debootstrap # in rootfs-create.sh
|
||||
create_new_rootfs_cache_tarball # in rootfs-create.sh
|
||||
create_new_rootfs_cache_via_debootstrap # in rootfs-create.sh; deploys & undeploys the qemu binary
|
||||
create_new_rootfs_cache_tarball # in rootfs-create.sh; no qemu binary available here
|
||||
|
||||
return 0 # protect against possible future short-circuiting above this
|
||||
}
|
||||
|
||||
@@ -15,12 +15,7 @@ function create_new_rootfs_cache_tarball() {
|
||||
# validate cache_name is set
|
||||
[[ -n "${cache_name}" ]] || exit_with_error "create_new_rootfs_cache_tarball: cache_name is not set"
|
||||
|
||||
# create list of installed packages for debug purposes - this captures it's own stdout.
|
||||
# @TODO: sanity check, compare this with the source of the hash coming from aggregation
|
||||
chroot_sdcard "dpkg -l | grep ^ii | awk '{ print \$2\",\"\$3 }'" > "${cache_fname}.list"
|
||||
echo "${AGGREGATED_ROOTFS_HASH_TEXT}" > "${cache_fname}.hash_text"
|
||||
|
||||
# Show the disk space usage of the rootfs
|
||||
# Show the disk space usage of the rootfs; use only host-side tools, as qemu binary is already undeployed from chroot
|
||||
display_alert "Disk space usage of rootfs" "${RELEASE}:: ${cache_name}" "info"
|
||||
run_host_command_logged "cd ${SDCARD} && " du -h -d 4 -x "." "| sort -h | tail -20"
|
||||
wait_for_disk_sync "after disk-space usage report of rootfs"
|
||||
|
||||
Reference in New Issue
Block a user