File tree 3 files changed +16
-2
lines changed
3 files changed +16
-2
lines changed Original file line number Diff line number Diff line change
1
+ # We ship modprobe.d files that call unblacklist.
2
+ # It's a noop in the initramfs, but it needs to exist.
3
+ install_items+=" /usr/lib/module-init-tools/unblacklist "
Original file line number Diff line number Diff line change 20
20
# This assumes post-usr-merge (20210527) for Tumbleweed
21
21
%global modprobe_dir /usr/lib/modprobe.d
22
22
%global depmod_dir /usr/lib/depmod.d
23
+ %global dracutlibdir %{_prefix }/lib/dracut
23
24
%global with_kernel_sysctl 1
24
25
# boot_sysctl may be dropped on TW when we can assume that nobody keeps
25
26
# kernel packages around that store sysctl files under /boot
@@ -126,6 +127,8 @@ for i in "pre" "preun" "post" "posttrans" "postun" ; do
126
127
ln -s rpm-script %{buildroot }/usr/lib/module-init-tools/kernel-scriptlets/rpm-$i
127
128
done
128
129
130
+ install -d -m 755 %{buildroot }%{dracutlibdir }/dracut.conf.d
131
+ install -pm 644 10-unblacklist.conf %{buildroot }%{dracutlibdir }/dracut.conf.d
129
132
install -d -m 755 "%{buildroot }%{_prefix }/bin"
130
133
131
134
# systemd service(s) to load kernel-specific sysctl settings
@@ -232,6 +235,8 @@ exit 0
232
235
%{_unitdir }/systemd-sysctl.service.d
233
236
%{_modulesloaddir }
234
237
%{_udevrulesdir }
238
+ %dir %{dracutlibdir }
239
+ %{dracutlibdir }/dracut.conf.d
235
240
%ifarch ppc64 ppc64le
236
241
/usr/lib/systemd/system-generators
237
242
%endif
Original file line number Diff line number Diff line change 1
1
#! /bin/sh
2
- # Copyright (c) 2021 SUSE LLC
2
+ # Copyright (c) 2021-2024 SUSE LLC
3
3
# SPDX-License-Identifier: GPL-2.0-or-later
4
4
5
+ ME=" ${0##*/ } "
6
+ if [ -e /etc/initrd-release ]; then
7
+ [ " $RD_DEBUG " != " yes" ] || \
8
+ echo " $ME : called in initramfs for \" $@ \" - ignoring" >&2
9
+ exit 0
10
+ fi
11
+
5
12
# Never unblacklist non-interactively
6
13
if ! tty -s < & 0; then
7
14
exit 0
8
15
fi
9
16
10
- ME=$( basename " $0 " )
11
17
if [ $UID -ne 0 ]; then
12
18
echo " $ME : you must be root to run this program" >&2
13
19
exit 1
You can’t perform that action at this time.
0 commit comments