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

Commit

Permalink
update : gentoo32,slax
Browse files Browse the repository at this point in the history
  • Loading branch information
a1ive committed Apr 9, 2017
1 parent 909ee12 commit c40ee4f
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 8 deletions.
12 changes: 8 additions & 4 deletions boot/grub/distro/gentoo.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
set icon="gnu-linux";
set vmlinuz_img="(loop)/isolinux/gentoo64";
set initrd_img="(loop)/isolinux/gentoo64.xz";
set icon="gentoo";
set vmlinuz_img="(loop)/isolinux/gentoo";
set initrd_img="(loop)/isolinux/gentoo.xz";
if test -f (loop)/isolinux/gentoo64; then
vmlinuz_img="(loop)/isolinux/gentoo64";
initrd_img="(loop)/isolinux/gentoo64.xz";
fi
set loopiso="isoboot=$isofile";
menuentry "作为 Gentoo x86_64 LiveDVD 启动" --class $icon{
menuentry "作为 Gentoo LiveDVD 启动" --class $icon{
set kcmdline="root=/dev/ram0 init=/linuxrc dokeymap aufs looptype=squashfs loop=/image.squashfs cdroot console=tty1";
linux $vmlinuz_img $kcmdline $loopiso;
initrd $initrd_img;
Expand Down
8 changes: 6 additions & 2 deletions boot/grub/distro/slax.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
set icon="slax";
set loopiso="from=${isofile}";
set vmlinuz_img="(loop)/boot/vmlinuz";
set initrd_img="(loop)/boot/initrd*";
set vmlinuz_img="(loop)/slax/boot/vmlinuz";
set initrd_img="(loop)/slax/boot/initr*";
if test -f (loop)/boot/vmlinuz; then
vmlinuz_img="(loop)/slax/boot/vmlinuz";
initrd_img="(loop)/slax/boot/initr*";
fi
menuentry "作为 Slax LiveCD 启动" --class $icon{
set kcmdline="load_ramdisk=1 prompt_ramdisk=0 rw printk.time=0 slax.flags=xmode";
linux $vmlinuz_img $kcmdline $loopiso;
Expand Down
4 changes: 2 additions & 2 deletions boot/grub/isoboot.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ function CheckLinuxType {
if test -f (loop)/boot/grub/loopback.cfg; then
menuentry "作为 Loopback ISO 启动 (推荐)" "$isofile" --class gnu-linux{
set iso_path="$2"; export iso_path;
root=(loop);
root=loop;
configfile /boot/grub/loopback.cfg
}
fi
Expand All @@ -42,7 +42,7 @@ function CheckLinuxType {
source $prefix/distro/fedora.sh;
elif test -f (loop)/live/vmlinuz*; then
source $prefix/distro/debian.sh;
elif test -f (loop)/isolinux/gentoo64; then
elif test -f (loop)/isolinux/gentoo*; then
source $prefix/distro/gentoo.sh;
elif test -f (loop)/sysrcd.dat; then
source $prefix/distro/sysrcd.sh;
Expand Down

0 comments on commit c40ee4f

Please sign in to comment.