好吧,基本上,我正在尝试以类似于 WUBI 的方式启动 Gentoo;我在 ext4 格式的环回文件上安装了 BURG,安装在 Windows 引导加载程序下,内核/initramfs 可用于引导。启动仍然存在一些问题(我认为我可以解决这些问题,它们主要是由于程序本身的小问题)但我有基本的想法:
/root
并切换 root,执行/sbin/init
./host
./host/${LOOP}
)/root
mount -o move /host /root/host
对于busybox)/root
并执行/sbin/init
我init
这里有脚本:
#!/bin/sh
# Rescue shell in case of error.
rescue_shell() {
echo "Something went wrong. Dropping you to a shell."
exec /bin/sh
}
parse_opt() {
case "$1" in
*\=*)
echo "$1" | cut -d= -f2-
;;
esac
} …
Run Code Online (Sandbox Code Playgroud)