debianでinitrdを使う際のポイント

  • 必要なパッケージ
    • initramfs-tools
  • 設定ファイル
    • /etc/kernel-img.conf
do_initrd = yes
    • /etc/modules
    • /etc/initramfs-tools/*
  • .config に必要な設定
    • CONFIG_BLK_DEV_INITRD=y
    • CONFIG_BLK_DEV_RAM=y
$ make-kpkg -rfakeroot --initrd  --revision リビジョン番号  kernel-image
  • initramfs の更新
# update-initramfs -u -k バージョン