mirror of
				https://github.com/kata-containers/kata-containers.git
				synced 2025-10-31 09:26:52 +00:00 
			
		
		
		
	rootfs: reduce size of debian image
Improve Kata Containers memory footprint by reducing debian image size. Without this change: Debian image -> 256MB With this change: Debian image -> 128MB Note: this change *will not* impact ubuntu image. fixes #1188 Signed-off-by: Julio Montes <julio.montes@intel.com>
This commit is contained in:
		| @@ -80,5 +80,8 @@ build_rootfs() { | ||||
| 		${ROOTFS_DIR} | ||||
|  | ||||
| 	chroot $ROOTFS_DIR ln -s /lib/systemd/systemd /usr/lib/systemd/systemd | ||||
| } | ||||
|  | ||||
|     # Reduce image size and memory footprint | ||||
|     # removing not needed files and directories. | ||||
|     chroot $ROOTFS_DIR rm -rf /usr/share/{bash-completion,bug,doc,info,lintian,locale,man,menu,misc,pixmaps,terminfo,zoneinfo,zsh} | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user