Skip to content
This repository has been archived by the owner on Oct 28, 2023. It is now read-only.

Commit

Permalink
Fix antiX ISO boot failure
Browse files Browse the repository at this point in the history
does not work under VM as needs a 'real' USB drive.

Read more:
http://www.easy2boot.com/add-payload-files/list-of-tested-payload-files/
  • Loading branch information
a1ive committed Apr 12, 2017
1 parent c40ee4f commit 2f061f4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions boot/grub/distro/antix.sh
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
set icon="debian";
set vmlinuz_img="(loop)/antiX/vmlinuz";
set initrd_img="(loop)/antiX/initrd.*";
set loopiso="from=$isofile root=UUID=$devuuid";
set initrd_img="(loop)/antiX/initrd.gz";
set loopiso="fromiso=$isofile from=hd,usb";
menuentry "作为 antiX LiveCD 启动" --class $icon{
set kcmdline="from=hd splash=v disable=lx";
set kcmdline="splash=v disable=lx";
linux $vmlinuz_img $kcmdline $loopiso;
initrd $initrd_img;
}
menuentry "作为 antiX LiveCD 启动 (安全模式)" --class $icon{
set kcmdline="from=hd splash=v disable=lx nomodeset failsafe";
set kcmdline="splash=v disable=lx nomodeset failsafe";
linux $vmlinuz_img $kcmdline $loopiso;
initrd $initrd_img;
}
menuentry "作为 antiX LiveCD 启动 (自定义模式)" {
set kcmdline="from=hd splash=v disable=lx menus";
menuentry "作为 antiX LiveCD 启动 (自定义模式)" --class $icon{
set kcmdline="splash=v disable=lx menus";
linux $vmlinuz_img $kcmdline $loopiso;
initrd $initrd_img;
}
2 changes: 1 addition & 1 deletion boot/grub/isoboot.sh
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ function CheckLinuxType {
source $prefix/distro/pmagic.sh;
elif test -f (loop)/boot/initramfs_*.img -a -f (loop)/boot/vmlinuz_*; then
source $prefix/distro/archboot.sh;
elif test -f (loop)/antiX/vmlinuz -a -f (loop)/antiX/initrd.*; then
elif test -f (loop)/antiX/vmlinuz -a -f (loop)/antiX/initrd.gz; then
source $prefix/distro/antix.sh;
fi
}

0 comments on commit 2f061f4

Please sign in to comment.