Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

x86 installcd: Reduce RAM requirements #33

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 40 additions & 0 deletions releases/kconfig/x86/dist-x86-livecd.config
Original file line number Diff line number Diff line change
@@ -1,5 +1,45 @@
# Kernel config for x86 Livecds

# Ian Jordan <[email protected]> (2025-01-02)
# Build kernel for size to lower RAM requirements for installcds
# Also removes unneeded modules which serve no purpose during the install process.
CONFIG_CC_OPTIMIZE_FOR_SIZE=y
CONFIG_MEDIA_SUPPORT=n
CONFIG_SOUND=n
CONFIG_GNSS=n
CONFIG_W1=n
CONFIG_POWER_SEQUENCING=n
CONFIG_SSB=N
CONFIG_MEDIA_CEC_RC=n
CONFIG_MEDIA_CEC_SUPPORT=n
CONFIG_LOGO=n
CONFIG_DRM_ACCEL=n
CONFIG_NEW_LEDS=n
CONFIG_SOUNDWIRE=n
CONFIG_ANDROID_BINDER_IPC=n
CONFIG_FPGA=n
CONFIG_SUSPEND=n
CONFIG_HIBERNATION=n
CONFIG_PM_TRACE_RTC=n
CONFIG_ENERGY_MODEL=n
CONFIG_ACPI=n
CONFIG_CPU_FREQ_STAT=n
CONFIG_CPU_FREQ_GOV_POWERSAVE=n
CONFIG_CPU_FREQ_GOV_USERSPACE=n
CONFIG_CPU_FREQ_GOV_ONDEMAND=n
CONFIG_CPU_FREQ_GOV_CONSERVATIVE=n
CONFIG_CPU_IDLE=n
CONFIG_GFS2_FS=n
CONFIG_OCFS2_FS=n
CONFIG_NILFS2_FS=n
CONFIG_VIRTUALIZATION=n
CONFIG_ORANGEFS_FS=n
CONFIG_AFFS_FS=n
CONFIG_ECRYPT_FS=n
CONFIG_MINIX_FS=n
CONFIG_JFS_FS=n


# Ian Jordan <[email protected]> (2024-10-28)
# Remove localversion being set on the LiveCDs so localmodconfig doesn't double load.
CONFIG_LOCALVERSION=""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ livecd/volid: Gentoo-x86-@DATESTAMP@
boot/kernel: gentoo

boot/kernel/gentoo/distkernel: yes
boot/kernel/gentoo/dracut_args: --xz --no-hostonly -a dmsquash-live -a mdraid -o btrfs -o crypt -o i18n -o usrmount -o lunmask -o qemu -o qemu-net -o nvdimm -o multipath -i /lib/keymaps /lib/keymaps -I busybox
boot/kernel/gentoo/dracut_args: --xz --no-hostonly -a dmsquash-live -a mdraid -o btrfs -o crypt -o i18n -o usrmount -o lunmask -o qemu -o qemu-net -o nvdimm -o multipath -o modsign -o net-lib -o bcache o dmraid -o lvm -o resume -o virtiofs -o mdraid -o shutdown -o kernel-modules-extra -o shutdown -o kernel-modules -o pcmcia -o hwdb -i /lib/keymaps /lib/keymaps -I busybox
boot/kernel/gentoo/config: @REPO_DIR@/releases/kconfig/x86/dist-x86-livecd.config

boot/kernel/gentoo/packages: --usepkg n broadcom-sta
Expand Down