Skip to content

Commit 36e1528

Browse files
authored
fix(liveiso): disable dnf kernel protection in initramfs build (ublue-os#4144)
Signed-off-by: Zeglius <33781398+Zeglius@users.noreply.github.com>
1 parent 9bb0887 commit 36e1528

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

installer/titanoboa_hook_preinitramfs.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ kernel_pkgs=(
1616
kernel-modules-extra
1717
)
1818
dnf -y versionlock delete "${kernel_pkgs[@]}"
19-
dnf -y remove "${kernel_pkgs[@]}"
19+
dnf --setopt=protect_running_kernel=False -y remove "${kernel_pkgs[@]}"
2020
(cd /usr/lib/modules && rm -rf -- ./*)
2121
dnf -y --repo fedora,updates --setopt=tsflags=noscripts install kernel kernel-core
2222
kernel=$(find /usr/lib/modules -maxdepth 1 -type d -printf '%P\n' | grep .)

0 commit comments

Comments
 (0)