Revert "add option --ignore-kernel-modules"
This reverts commit 0ca3a5ee84
and removes later changes related to this commit.
Conflicts:
dracut
dracut.8
modules.d/99base/install
master
parent
2ca35ac7ee
commit
9d1015b646
1
NEWS
1
NEWS
|
@ -1,5 +1,6 @@
|
||||||
dracut-008
|
dracut-008
|
||||||
==========
|
==========
|
||||||
|
- removed --ignore-kernel-modules option (no longer necessary)
|
||||||
|
|
||||||
dracut-007
|
dracut-007
|
||||||
==========
|
==========
|
||||||
|
|
10
dracut
10
dracut
|
@ -49,10 +49,6 @@ Creates initial ramdisk images for preloading modules
|
||||||
firmwares, separated by :
|
firmwares, separated by :
|
||||||
--kernel-only Only install kernel drivers and firmware files
|
--kernel-only Only install kernel drivers and firmware files
|
||||||
--no-kernel Do not install kernel drivers and firmware files
|
--no-kernel Do not install kernel drivers and firmware files
|
||||||
--ignore-kernel-modules
|
|
||||||
Don't try to load modules. It automatically implies
|
|
||||||
'--no-kernel'. It's assumed that everything needed
|
|
||||||
is built into kernel.
|
|
||||||
--strip Strip binaries in the initramfs
|
--strip Strip binaries in the initramfs
|
||||||
--nostrip Do not strip binaries in the initramfs (default)
|
--nostrip Do not strip binaries in the initramfs (default)
|
||||||
--mdadmconf Include local /etc/mdadm.conf
|
--mdadmconf Include local /etc/mdadm.conf
|
||||||
|
@ -147,10 +143,6 @@ while (($# > 0)); do
|
||||||
type pigz > /dev/null 2>&1 && compress="pigz -9" || \
|
type pigz > /dev/null 2>&1 && compress="pigz -9" || \
|
||||||
compress="gzip -9"
|
compress="gzip -9"
|
||||||
fi;;
|
fi;;
|
||||||
--ignore-kernel-modules) kernel_only="no"; no_kernel="yes"
|
|
||||||
ignore_kmodules="yes"
|
|
||||||
omit_dracutmodules_l+=\ kernel-modules
|
|
||||||
;;
|
|
||||||
--list-modules)
|
--list-modules)
|
||||||
do_list="yes";
|
do_list="yes";
|
||||||
;;
|
;;
|
||||||
|
@ -304,7 +296,7 @@ chmod 755 "$initdir"
|
||||||
|
|
||||||
export initdir hookdirs dracutbasedir dracutmodules drivers \
|
export initdir hookdirs dracutbasedir dracutmodules drivers \
|
||||||
fw_dir drivers_dir debug beverbose no_kernel kernel_only \
|
fw_dir drivers_dir debug beverbose no_kernel kernel_only \
|
||||||
add_drivers mdadmconf lvmconf filesystems ignore_kmodules \
|
add_drivers mdadmconf lvmconf filesystems \
|
||||||
use_fstab libdir usrlibdir
|
use_fstab libdir usrlibdir
|
||||||
|
|
||||||
if [[ $kernel_only != yes ]]; then
|
if [[ $kernel_only != yes ]]; then
|
||||||
|
|
|
@ -202,15 +202,6 @@ include in the generic initramfs. This parameter can be specified multiple times
|
||||||
<para>do not install kernel drivers and firmware files</para>
|
<para>do not install kernel drivers and firmware files</para>
|
||||||
</listitem>
|
</listitem>
|
||||||
</varlistentry>
|
</varlistentry>
|
||||||
<varlistentry>
|
|
||||||
<term>
|
|
||||||
<option>--ignore-kernel-modules</option>
|
|
||||||
</term>
|
|
||||||
<listitem>
|
|
||||||
<para>don't try to load modules; it automatically implies <option>--no-kernel</option>; it's
|
|
||||||
assumed that everything needed is built into kernel</para>
|
|
||||||
</listitem>
|
|
||||||
</varlistentry>
|
|
||||||
<varlistentry>
|
<varlistentry>
|
||||||
<term>
|
<term>
|
||||||
<option>--mdadmconf</option>
|
<option>--mdadmconf</option>
|
||||||
|
|
|
@ -1,15 +1,8 @@
|
||||||
# -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*-
|
# -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*-
|
||||||
# ex: ts=8 sw=4 sts=4 et filetype=sh
|
# ex: ts=8 sw=4 sts=4 et filetype=sh
|
||||||
|
|
||||||
dracut_install mount mknod mkdir pidof sleep chroot sed ls flock cp mv dmesg \
|
dracut_install mount mknod mkdir modprobe pidof sleep chroot \
|
||||||
rm ln mkfifo less
|
sed ls flock cp mv dmesg rm ln rmmod mkfifo less
|
||||||
if [[ ${ignore_kmodules} = yes ]]; then
|
|
||||||
inst /bin/true
|
|
||||||
ln -s /bin/true "${initdir}"/sbin/modprobe
|
|
||||||
ln -s /bin/true "${initdir}"/sbin/rmmod
|
|
||||||
else
|
|
||||||
dracut_install modprobe rmmod
|
|
||||||
fi
|
|
||||||
if [ ! -e "${initdir}/bin/sh" ]; then
|
if [ ! -e "${initdir}/bin/sh" ]; then
|
||||||
dracut_install bash
|
dracut_install bash
|
||||||
(ln -s bash "${initdir}/bin/sh" || :)
|
(ln -s bash "${initdir}/bin/sh" || :)
|
||||||
|
@ -33,4 +26,3 @@ inst "$moddir/dracut-lib.sh" "/lib/dracut-lib.sh"
|
||||||
inst_hook cmdline 10 "$moddir/parse-root-opts.sh"
|
inst_hook cmdline 10 "$moddir/parse-root-opts.sh"
|
||||||
inst_hook cmdline 20 "$moddir/parse-blacklist.sh"
|
inst_hook cmdline 20 "$moddir/parse-blacklist.sh"
|
||||||
mkdir -p "${initdir}/var/run"
|
mkdir -p "${initdir}/var/run"
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue