<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Linux Forum &mdash; Как исключить модуль из загрузки (LiveCD)]]></title>
	<link rel="self" href="https://linuxforum.ru/extern.php?action=feed&amp;tid=35925&amp;type=atom" />
	<updated>2014-08-29T10:24:08Z</updated>
	<generator>PunBB</generator>
	<id>https://linuxforum.ru/viewtopic.php?id=35925</id>
		<entry>
			<title type="html"><![CDATA[Re: Как исключить модуль из загрузки (LiveCD)]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=420891#p420891" />
			<content type="html"><![CDATA[<p><strong>kostik87</strong>, сейчас протестирую.</p>]]></content>
			<author>
				<name><![CDATA[kirillov3798]]></name>
				<uri>https://linuxforum.ru/profile.php?id=31059</uri>
			</author>
			<updated>2014-08-29T10:24:08Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=420891#p420891</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Как исключить модуль из загрузки (LiveCD)]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=420890#p420890" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>kirillov3798 пишет:</cite><blockquote><p>Параметр nomodeset не помог. Теперь черный экран.</p></blockquote></div><p>К параметрам ядра<br /></p><div class="codebox"><pre><code>blacklist=nouveau</code></pre></div><p>После чего сработает вот этот скрипт и модули, указанные в параметре ядра blacklist будут добавлены в /etc/modprobe.d/initramfs.conf, что собственно заблокирует загрузку модуля.<br /></p><div class="codebox"><pre><code>#!/bin/sh

PREREQ=&quot;&quot;

prereqs()
{
        echo &quot;$PREREQ&quot;
}

case $1 in
# get pre-requisites
prereqs)
        prereqs
        exit 0
        ;;
esac

# blacklist vga16fb when vga= or video= given
for x in $(cat /proc/cmdline); do
        case ${x} in
        vga=*|video=*)
                echo &quot;blacklist vga16fb&quot; &gt;&gt; /etc/modprobe.d/initramfs.conf
                ;;
        esac
done

# sanity check
[ -z &quot;${blacklist}&quot; ] &amp;&amp; exit 0

# write blacklist to modprobe.d
IFS=&#039;,&#039;
for b in ${blacklist}; do
        echo &quot;blacklist $b&quot; &gt;&gt; /etc/modprobe.d/initramfs.conf
done</code></pre></div>]]></content>
			<author>
				<name><![CDATA[kostik87]]></name>
				<uri>https://linuxforum.ru/profile.php?id=34705</uri>
			</author>
			<updated>2014-08-29T10:23:04Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=420890#p420890</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Как исключить модуль из загрузки (LiveCD)]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=420889#p420889" />
			<content type="html"><![CDATA[<p><s>Параметр nomodeset не помог. Теперь черный экран.</s> Надо было просто подождать. Теперь все ок. Параметр nomodeset помог. Спасибо.</p>]]></content>
			<author>
				<name><![CDATA[kirillov3798]]></name>
				<uri>https://linuxforum.ru/profile.php?id=31059</uri>
			</author>
			<updated>2014-08-29T10:19:51Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=420889#p420889</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Как исключить модуль из загрузки (LiveCD)]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=420888#p420888" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>Vascom пишет:</cite><blockquote><p>nouveau без KMS не сможет работать, так что это заблокирует его.</p></blockquote></div><p>Без kms не сможет работать драйвер xorg-server`а, а модуль загружен будет. Посмотрите выдержку из сценария init в initrd, в котором обрабатываются параметры, переданные ядру, смотрите моё предыдущее сообщение.</p>]]></content>
			<author>
				<name><![CDATA[kostik87]]></name>
				<uri>https://linuxforum.ru/profile.php?id=34705</uri>
			</author>
			<updated>2014-08-29T10:18:35Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=420888#p420888</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Как исключить модуль из загрузки (LiveCD)]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=420887#p420887" />
			<content type="html"><![CDATA[<p>nouveau без KMS не сможет работать, так что это заблокирует его.</p>]]></content>
			<author>
				<name><![CDATA[Vascom]]></name>
				<uri>https://linuxforum.ru/profile.php?id=5339</uri>
			</author>
			<updated>2014-08-29T10:16:38Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=420887#p420887</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Как исключить модуль из загрузки (LiveCD)]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=420886#p420886" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>Vascom пишет:</cite><blockquote><p>nomodeset в те же параметры ядра.</p></blockquote></div><p>Это заблокирует загрузку модуля или просто отключит KMS у модуля nouveau?</p>]]></content>
			<author>
				<name><![CDATA[kostik87]]></name>
				<uri>https://linuxforum.ru/profile.php?id=34705</uri>
			</author>
			<updated>2014-08-29T10:15:51Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=420886#p420886</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Как исключить модуль из загрузки (LiveCD)]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=420885#p420885" />
			<content type="html"><![CDATA[<p>Просто параметр <br /></p><div class="codebox"><pre><code>blacklist=nouveau</code></pre></div><p>Вот выдержка из сценария init в initramfs LiveCD Ubuntu-14.04:<br /></p><div class="fancy_spoiler_switcher"><div class="fancy_spoiler_switcher_header" data-lang-open="открыть спойлер" data-lang-close="скрыть спойлер"><strong>+</strong>&nbsp;открыть спойлер</div><div class="fancy_spoiler"><div class="codebox"><pre><code># Parse command line options
for x in $(cat /proc/cmdline); do
    case $x in
    init=*)
        init=${x#init=}
        ;;
    root=*)
        ROOT=${x#root=}
        case $ROOT in
        LABEL=*)
            ROOT=&quot;${ROOT#LABEL=}&quot;

            # support any / in LABEL= path (escape to \x2f)
            case &quot;${ROOT}&quot; in
            */*)
            if command -v sed &gt;/dev/null 2&gt;&amp;1; then
                ROOT=&quot;$(echo ${ROOT} | sed &#039;s,/,\\x2f,g&#039;)&quot;
            else
                if [ &quot;${ROOT}&quot; != &quot;${ROOT#/}&quot; ]; then
                    ROOT=&quot;\x2f${ROOT#/}&quot;
                fi
                if [ &quot;${ROOT}&quot; != &quot;${ROOT%/}&quot; ]; then
                    ROOT=&quot;${ROOT%/}\x2f&quot;
                fi
                IFS=&#039;/&#039;
                newroot=
                for s in $ROOT; do
                    newroot=&quot;${newroot:+${newroot}\\x2f}${s}&quot;
                done
                unset IFS
                ROOT=&quot;${newroot}&quot;
            fi
            esac
            ROOT=&quot;/dev/disk/by-label/${ROOT}&quot;
            ;;
        UUID=*)
            ROOT=&quot;/dev/disk/by-uuid/${ROOT#UUID=}&quot;
            ;;
        /dev/nfs)
            [ -z &quot;${BOOT}&quot; ] &amp;&amp; BOOT=nfs
            ;;
        esac
        ;;
    rootflags=*)
        ROOTFLAGS=&quot;-o ${x#rootflags=}&quot;
        ;;
    rootfstype=*)
        ROOTFSTYPE=&quot;${x#rootfstype=}&quot;
        ;;
    rootdelay=*)
        ROOTDELAY=&quot;${x#rootdelay=}&quot;
        case ${ROOTDELAY} in
        *[![:digit:].]*)
            ROOTDELAY=
            ;;
        esac
        ;;
    resumedelay=*)
        RESUMEDELAY=&quot;${x#resumedelay=}&quot;
        ;;
    loop=*)
        LOOP=&quot;${x#loop=}&quot;
        ;;
    loopflags=*)
        LOOPFLAGS=&quot;-o ${x#loopflags=}&quot;
        ;;
    loopfstype=*)
        LOOPFSTYPE=&quot;${x#loopfstype=}&quot;
        ;;
    cryptopts=*)
        cryptopts=&quot;${x#cryptopts=}&quot;
        ;;
    nfsroot=*)
        NFSROOT=&quot;${x#nfsroot=}&quot;
        ;;
    netboot=*)
        NETBOOT=&quot;${x#netboot=}&quot;
        ;;
    ip=*)
        IP=&quot;${x#ip=}&quot;
        ;;
    boot=*)
        BOOT=${x#boot=}
        ;;
    ubi.mtd=*)
        UBIMTD=${x#ubi.mtd=}
        ;;
    resume=*)
        RESUME=&quot;${x#resume=}&quot;
        ;;
    resume_offset=*)
        resume_offset=&quot;${x#resume_offset=}&quot;
        ;;
    noresume)
        noresume=y
        ;;
    panic=*)
        panic=&quot;${x#panic=}&quot;
        case ${panic} in
        *[![:digit:].]*)
            panic=
            ;;
        esac
        ;;
    quiet)
        quiet=y
        ;;
    ro)
        readonly=y
        ;;
    rw)
        readonly=n
        ;;
    debug)
        debug=y
        quiet=n
        exec &gt;/run/initramfs/initramfs.debug 2&gt;&amp;1
        set -x
        ;;
    debug=*)
        debug=y
        quiet=n
        set -x
        ;;
    break=*)
        break=${x#break=}
        ;;
    break)
        break=premount
        ;;
    blacklist=*)
        blacklist=${x#blacklist=}
        ;;
    netconsole=*)
        netconsole=${x#netconsole=}
        ;;
    BOOTIF=*)
        BOOTIF=${x#BOOTIF=}
        ;;
    hwaddr=*)
        BOOTIF=${x#BOOTIF=}
        ;;
    recovery)
        recovery=y
        ;;
    esac
done</code></pre></div></div></div>]]></content>
			<author>
				<name><![CDATA[kostik87]]></name>
				<uri>https://linuxforum.ru/profile.php?id=34705</uri>
			</author>
			<updated>2014-08-29T10:15:05Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=420885#p420885</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Как исключить модуль из загрузки (LiveCD)]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=420884#p420884" />
			<content type="html"><![CDATA[<p>nomodeset в те же параметры ядра.</p>]]></content>
			<author>
				<name><![CDATA[Vascom]]></name>
				<uri>https://linuxforum.ru/profile.php?id=5339</uri>
			</author>
			<updated>2014-08-29T10:12:31Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=420884#p420884</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Как исключить модуль из загрузки (LiveCD)]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=420883#p420883" />
			<content type="html"><![CDATA[<p><strong>kostik87</strong>, нет.</p>]]></content>
			<author>
				<name><![CDATA[kirillov3798]]></name>
				<uri>https://linuxforum.ru/profile.php?id=31059</uri>
			</author>
			<updated>2014-08-29T10:09:27Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=420883#p420883</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Как исключить модуль из загрузки (LiveCD)]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=420881#p420881" />
			<content type="html"><![CDATA[<p><strong>kostik87</strong>, сейчас попробую.</p>]]></content>
			<author>
				<name><![CDATA[kirillov3798]]></name>
				<uri>https://linuxforum.ru/profile.php?id=31059</uri>
			</author>
			<updated>2014-08-29T10:00:26Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=420881#p420881</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Как исключить модуль из загрузки (LiveCD)]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=420880#p420880" />
			<content type="html"><![CDATA[<p>В параметры ядра nouveau.blacklist=yes не помогает?</p>]]></content>
			<author>
				<name><![CDATA[kostik87]]></name>
				<uri>https://linuxforum.ru/profile.php?id=34705</uri>
			</author>
			<updated>2014-08-29T09:59:44Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=420880#p420880</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Как исключить модуль из загрузки (LiveCD)]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=420874#p420874" />
			<content type="html"><![CDATA[<p>Как исключить модуль nouveau из загрузки LiveCD? ОС: Kubuntu 14.04.1 i386.</p>]]></content>
			<author>
				<name><![CDATA[kirillov3798]]></name>
				<uri>https://linuxforum.ru/profile.php?id=31059</uri>
			</author>
			<updated>2014-08-29T09:25:47Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=420874#p420874</id>
		</entry>
</feed>
