关于make-kpkg的--initrd选项
Debian 5.0内核2.6.26下编译2.6.34的内核
开始用命令make-kpkg --append-to-version=-mykernel --revision=1.0 kernel_image来编译,编译出来的内核无法启动,启动时提示如下错误:
Kernel panic - not syncing: VFS unable to mount root fs on unknown-block(0,0)
后来发现是因为没有加--initrd选项,改用make-kpkg --initrd --append-to-version=-mykernel --revision=1.0 kernel_image重新编译,成功启动。
man了一下make-kpkg,说是If make-kpkg is generating a kernel-image package, perform any actions necessary for a kernel loaded using initrd。
又说 It has no effect when make-kpkg is not making a kernel-image package.
那么,这个选项为什么不指定了kernel_image时就自动给加上,而要另外给指定一下呢