GNU/Linux >> Linux の 問題 >  >> Debian

Debianchroot環境でのdebカーネルのインストール

chroot環境内にカスタムビルドまたは既存のDebianカーネルをインストールする方法の簡単な手順は次のとおりです。この例では、chroot環境に新しいバージョンのDebianをインストールしませんが、既存のインストールを使用します。 chroot環境用のディレクトリを作成しましょう:

ディレクトリを作成

# mkdir -p /mnt/chroot

まず、既存のDebianインストールでパーティションをマウントする必要があります。この場合、既存のインストールの/パーティションは/ dev/hdb1です。

# mount  /dev/hdb1 /mnt/chroot

次に、ハードウェアを新しいchroot環境にバインドする必要があります。次のコマンドは、接続されたハードウェアが機能することを確認します。そうでない場合、update-grubが正しく機能しない可能性があります。

マウント

# mount -o bind /proc /mnt/chroot/proc
# mount -o bind /proc /mnt/chroot/dev

これで、chroot環境に入る準備ができました

chroot

# chroot /mnt/chroot

カーネルのインストール

カーネルをインストールしましょう:

/# dpkg -i linux-image-2.6.26-2-486_2.6.26-21lenny4_i386.deb
Selecting previously deselected package linux-image-2.6.26-2-486.
(Reading database ... 12686 files and directories currently installed.)
Unpacking linux-image-2.6.26-2-486 (from linux-image-2.6.26-2-486_2.6.26-21lenny4_i386.deb) ...
Done.
Setting up linux-image-2.6.26-2-486 (2.6.26-21lenny4) ...
Running depmod.
Running mkinitramfs-kpkg.
Running postinst hook script update-grub.
Searching for GRUB installation directory ... found: /boot/grub
Searching for default file ... found: /boot/grub/default
Testing for an existing GRUB menu.lst file ... found: /boot/grub/menu.lst
Searching for splash image ... none found, skipping ...
Found kernel: /boot/vmlinuz-2.6.26-2-686
Found kernel: /boot/vmlinuz-2.6.26-2-486
Updating /boot/grub/menu.lst ... done


Debian
  1. Debianchroot環境でのdebカーネルのインストール

  2. Debian – DebianでAes-niを使用しますか?

  3. Debian – Devuan / debianのインストールを開始できませんか?

  1. Debianchrootインストールを実行する方法

  2. Debian 7WheezyLinuxへのSugarCRMCEのインストール

  3. カーネルハッキング環境

  1. DebianWheezyへのWarZone2100のインストール

  2. Debian10にAnacondaをインストールする方法

  3. スクリーンショット付きのDebian9「stretch」インストールガイド