sonic-buildimage/files/initramfs-tools
Saikrishna Arcot e9db38594d
Image disk space reduction (#10172) (#10371)
Reduce the disk space taken up during bootup and runtime.

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>
(cherry picked from commit 5617b1ae3e)
2022-03-29 10:11:28 -07:00
..
arista-convertfs.j2 [arista/aboot]: Zero out 1st MB before repartitioning (#5220) 2020-08-22 18:46:30 -07:00
arista-hook [aboot-image]: Skip arista-hook and arista-convertfs for fast/warm-reboot (#3242) 2019-07-31 14:20:17 -07: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 [aboot] use ram partition for /var/log for devices with 3.7G disks (#8400) 2021-08-14 17:22:01 -07:00
varlog Image disk space reduction (#10172) (#10371) 2022-03-29 10:11:28 -07:00