如何删除 yocto 中的 deploy/images/beaglebone 目录
how to delete deploy/images/beaglebone dir in yocto
在我的 yocto 源中 deploy/images/beaglebone
目录将近 100GB,所以我想释放该内存
请帮助我如何手动或通过命令行删除该部署目录
I want to clean all images(*.tar.gz,*.sdcard, *.ubifs) of previous compilation in yocto deploy/images/beaglebone/
从您的构建根目录 rm -fr deploy/images
试试这个。 Here 这个话题讨论得很好
I just removed the files manually like below
1. goto build/deploy/images/beaglebone
2. $ ll : you will find the softlinks of rootfs with time like
......*20170811091521.rootfs.tar.gz
......*-20170811091521.rootfs.sdcard etc
3. Dont delete recently compiled files. except these this you can remove all *.tar.gz, *.sdcard,*.ext4 manually like below,
4. rm beaglebone-20170811091521.rootfs.tar.gz
rm beaglebone-20170811091521.rootfs.sdcard
rm beaglebone-20170811091521.rootfs.ext4 etc.
也许当你在部署目录中有 100GB 时,事情已经太过分了。
检查您的 IMAGE_FSTYPES 变量。根据我的经验,删除这些文件的所有非 symlinks 或 symlinks 目标的图像是安全的。避免生成最后一个以避免破坏最后一个构建 link,以及任何与引导加载程序和配置文件相关的内容,因为它们很少会重新生成。
如果您要保留多个具有相同图层集的构建,那么您可以为构建使用一个通用的下载文件夹。
DL_DIR ?= "common_dir_across_all_builds/downloads/"
之后:
保持你的 /deploy 干净:
RM_OLD_IMAGE: Reclaims disk space by removing previously built versions of the same image from the images directory pointed to by the DEPLOY_DIR variable.Set this variable to "1" in your local.conf file to remove these images:
RM_OLD_IMAGE = "1"
IMAGE_FSTYPES Remove the image types that you do not plan to use, you can always enable a particular one when you need it:
IMAGE_FSTYPES_remove = "tar.bz2"
IMAGE_FSTYPES_remove = "rpi-sdimg"
IMAGE_FSTYPES_remove = "ext3"
对于/tmp/work,不需要所有配方的所有工作文件。您可以指定您对开发感兴趣的那些。
RM_WORK_EXCLUDE:
With rm_work enabled, this variable specifies a list of recipes whose work directories should not be removed. See the "rm_work.bbclass" section for more details.
INHERIT += "rm_work"
RM_WORK_EXCLUDE += "home-assistant widde"
在我的 yocto 源中 deploy/images/beaglebone
目录将近 100GB,所以我想释放该内存
请帮助我如何手动或通过命令行删除该部署目录
I want to clean all images(*.tar.gz,*.sdcard, *.ubifs) of previous compilation in yocto deploy/images/beaglebone/
从您的构建根目录 rm -fr deploy/images
试试这个。 Here 这个话题讨论得很好
I just removed the files manually like below
1. goto build/deploy/images/beaglebone
2. $ ll : you will find the softlinks of rootfs with time like
......*20170811091521.rootfs.tar.gz
......*-20170811091521.rootfs.sdcard etc
3. Dont delete recently compiled files. except these this you can remove all *.tar.gz, *.sdcard,*.ext4 manually like below,
4. rm beaglebone-20170811091521.rootfs.tar.gz
rm beaglebone-20170811091521.rootfs.sdcard
rm beaglebone-20170811091521.rootfs.ext4 etc.
也许当你在部署目录中有 100GB 时,事情已经太过分了。
检查您的 IMAGE_FSTYPES 变量。根据我的经验,删除这些文件的所有非 symlinks 或 symlinks 目标的图像是安全的。避免生成最后一个以避免破坏最后一个构建 link,以及任何与引导加载程序和配置文件相关的内容,因为它们很少会重新生成。
如果您要保留多个具有相同图层集的构建,那么您可以为构建使用一个通用的下载文件夹。
DL_DIR ?= "common_dir_across_all_builds/downloads/"
之后:
保持你的 /deploy 干净:
RM_OLD_IMAGE: Reclaims disk space by removing previously built versions of the same image from the images directory pointed to by the DEPLOY_DIR variable.Set this variable to "1" in your local.conf file to remove these images:
RM_OLD_IMAGE = "1"
IMAGE_FSTYPES Remove the image types that you do not plan to use, you can always enable a particular one when you need it:
IMAGE_FSTYPES_remove = "tar.bz2"
IMAGE_FSTYPES_remove = "rpi-sdimg"
IMAGE_FSTYPES_remove = "ext3"
对于/tmp/work,不需要所有配方的所有工作文件。您可以指定您对开发感兴趣的那些。
RM_WORK_EXCLUDE: With rm_work enabled, this variable specifies a list of recipes whose work directories should not be removed. See the "rm_work.bbclass" section for more details.
INHERIT += "rm_work"
RM_WORK_EXCLUDE += "home-assistant widde"