From 0063e2409b329df82ef0d1d14760cfc9979582b3 Mon Sep 17 00:00:00 2001 From: Aminda Suomalainen Date: Fri, 3 May 2024 21:19:32 +0300 Subject: [PATCH] etc/dracut.conf.d: add sedric configs --- etc/dracut.conf.d/99-cmdline.conf.sedric | 1 + etc/dracut.conf.d/README.md | 10 ++++++++++ etc/dracut.conf.d/compress.conf.sedric | 1 + etc/dracut.conf.d/hostonly.conf.sedric | 1 + etc/dracut.conf.d/no_recovery.conf.sedric | 1 + etc/dracut.conf.d/omit_modules.conf.sedric | 1 + 6 files changed, 15 insertions(+) create mode 100644 etc/dracut.conf.d/99-cmdline.conf.sedric create mode 100644 etc/dracut.conf.d/README.md create mode 100644 etc/dracut.conf.d/compress.conf.sedric create mode 100644 etc/dracut.conf.d/hostonly.conf.sedric create mode 100644 etc/dracut.conf.d/no_recovery.conf.sedric create mode 100644 etc/dracut.conf.d/omit_modules.conf.sedric diff --git a/etc/dracut.conf.d/99-cmdline.conf.sedric b/etc/dracut.conf.d/99-cmdline.conf.sedric new file mode 100644 index 00000000..d8dbd52a --- /dev/null +++ b/etc/dracut.conf.d/99-cmdline.conf.sedric @@ -0,0 +1 @@ +kernel_cmdline="root=UUID=c3df30ca-878b-4125-bcb4-ba3ba4398efd ro rd.lvm.lv=fedora_localhost-live/root rd.luks.uuid=luks-f9a33e19-4176-44b3-8e06-2ee7fb70f3d0 quiet mitigations=auto noresume hibernate=no nohibernate quiet random.trust_cpu=on btusb.force_scofix=1 btusb.enable_autosuspend=0 initcall_blacklist=simpledrm_platform_driver_init cpufreq.default_governor=schedutil nvidia-drm.modeset=1 rw rd.driver.blacklist=nouveau modprobe.blacklist=nouveau lockdown=confidentiality" diff --git a/etc/dracut.conf.d/README.md b/etc/dracut.conf.d/README.md new file mode 100644 index 00000000..2d84c144 --- /dev/null +++ b/etc/dracut.conf.d/README.md @@ -0,0 +1,10 @@ +My dracut configuratino files mainly for generating unified kerneil images +(uki). + +# WARNING! + +Sedric has a 96M EFI partition courtesy of Windows and thus it has a lot of +attempts for decreasing the kernel size. Since moving it to UKI, I am yet to +go through what of it is actually useful and worth keeping around and at least +disabling recovery seems dangerous if I can save space by omitting somnething +else. diff --git a/etc/dracut.conf.d/compress.conf.sedric b/etc/dracut.conf.d/compress.conf.sedric new file mode 100644 index 00000000..51ca29c2 --- /dev/null +++ b/etc/dracut.conf.d/compress.conf.sedric @@ -0,0 +1 @@ +comress="lz4" diff --git a/etc/dracut.conf.d/hostonly.conf.sedric b/etc/dracut.conf.d/hostonly.conf.sedric new file mode 100644 index 00000000..25477bb6 --- /dev/null +++ b/etc/dracut.conf.d/hostonly.conf.sedric @@ -0,0 +1 @@ +hostonly="yes" diff --git a/etc/dracut.conf.d/no_recovery.conf.sedric b/etc/dracut.conf.d/no_recovery.conf.sedric new file mode 100644 index 00000000..4cae9185 --- /dev/null +++ b/etc/dracut.conf.d/no_recovery.conf.sedric @@ -0,0 +1 @@ +dracut_rescue_image="no" diff --git a/etc/dracut.conf.d/omit_modules.conf.sedric b/etc/dracut.conf.d/omit_modules.conf.sedric new file mode 100644 index 00000000..cf7cc01f --- /dev/null +++ b/etc/dracut.conf.d/omit_modules.conf.sedric @@ -0,0 +1 @@ +omit_dracutmodules+=" plymouth tpm2-tss kernel-modules-extra network-manager network-legacy connman "