sonic-buildimage/files/initramfs-tools
Saikrishna Arcot 5617b1ae3e
Image disk space reduction (#10172)
# Why I did it

Reduce the disk space taken up during bootup and runtime.

# How I did it

1. Remove python package cache from the base image and from the containers.
2. During bootup, if logs are to be stored in memory, then don't create the `var-log.ext4` file just to delete it later during bootup.
3. For the partition containing `/host`, don't reserve any blocks for just the root user. This just makes sure all disk space is available for all users, if needed during upgrades (for example).


* Remove pip2 and pip3 caches from some containers

Only containers which appeared to have a significant pip cache size are
included here.

Signed-off-by: Saikrishna Arcot <sarcot@microsoft.com>

* Don't create var-log.ext4 if we're storing logs in memory

Signed-off-by: Saikrishna Arcot <sarcot@microsoft.com>

* Run tune2fs on the device containing /host to not reserve any blocks for just the root user

Signed-off-by: Saikrishna Arcot <sarcot@microsoft.com>
2022-03-15 18:12:49 -07:00
..
arista-convertfs.j2 [kdump] Fix OOM events in crashkernel (#6447) 2021-02-02 01:55:09 -08:00
arista-hook [kdump] Fix OOM events in crashkernel (#6447) 2021-02-02 01:55:09 -08:00
arista-net [Arista] Set MAC address of mangement port in initramfs (#1565) 2018-04-06 10:48:13 -07:00
fsck-rootfs [baseimage]: Run fsck filesystem check support prior mounting filesystem (#4431) 2020-04-30 00:33:20 -07:00
mke2fs [initramfs]: move mke2fs to /usr/local/sbin 2020-04-17 04:51:51 +00:00
modules [NVMe] Add NVMe SSD disc type support to installer.sh script (#6142) 2020-12-09 19:03:27 -08:00
modules.arm [platform][marvell] Arm 32-bit Arch support changes (#5749) 2020-12-03 12:38:50 -08:00
resize-rootfs Reduce SONiC migration partition from 8G to 1G. (#1343) 2018-02-07 22:07:01 +08:00
setfacl [aboot]: Add setfacl in the initramfs (#1185) 2017-11-24 17:30:11 -08:00
uboot-utils [initramfs] Updated required tools for initramfs (#3734) 2020-01-15 08:25:01 -08:00
udev.patch [baseimage]: build root filesystem via overlay fs instead of aufs 2018-08-11 09:07:59 +00:00
union-fsck New release v1.0.0 2016-03-08 11:42:20 -08:00
union-mount.j2 Specify the filesystem type when mounting to /host (#10169) 2022-03-14 11:34:02 -07:00
varlog Image disk space reduction (#10172) 2022-03-15 18:12:49 -07:00