分页: 3 / 3

Re: billbear老大请移步过来看看~~要怎么修改grub2来直接引导squashfs镜像啊?

发表于 : 2011-03-13 15:11
billbear
tonway 写了:http://suddymail.org//show-194-1.html 这个不错 可惜不支持BT4 RC2 期待大鸟更新
不需要费那个事的,安装 lupin-casper 就可以得到能够引导 iso 的 initrd,19~21楼我已经说得很清楚了。

Re: billbear老大请移步过来看看~~要怎么修改grub2来直接引导squashfs镜像啊?

发表于 : 2018-07-28 23:46
JulianDroid
# 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