不需要费那个事的,安装 lupin-casper 就可以得到能够引导 iso 的 initrd,19~21楼我已经说得很清楚了。tonway 写了:http://suddymail.org//show-194-1.html 这个不错 可惜不支持BT4 RC2 期待大鸟更新
billbear老大请移步过来看看~~要怎么修改grub2来直接引导squashfs镜像啊?
-
- 帖子: 3681
- 注册时间: 2008-05-03 23:42
Re: billbear老大请移步过来看看~~要怎么修改grub2来直接引导squashfs镜像啊?
-
- 帖子: 1
- 注册时间: 2018-07-28 23:38
- 系统: Ubuntu 16.04.4 LTS
Re: billbear老大请移步过来看看~~要怎么修改grub2来直接引导squashfs镜像啊?
# You should mount the squashfs image first
loopback loop /imagepath
# then you can get files from (loop) device
set root=(loop)
# Do some "init" work
set settings="noinitrd"
# "boot=casper" is just let initrd execuate /script/casper
# load kernel
linux /vmlinuz init=/sbin/init ${settings}
# Or you can load another kernel
# linux (hd0,1)/filepath ${settings}
# And you can boot
# Good luck
loopback loop /imagepath
# then you can get files from (loop) device
set root=(loop)
# Do some "init" work
set settings="noinitrd"
# "boot=casper" is just let initrd execuate /script/casper
# load kernel
linux /vmlinuz init=/sbin/init ${settings}
# Or you can load another kernel
# linux (hd0,1)/filepath ${settings}
# And you can boot
# Good luck