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

Commit

Permalink
Add support for Slitaz
Browse files Browse the repository at this point in the history
  • Loading branch information
a1ive committed Apr 21, 2017
1 parent 8259f85 commit fefd418
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 2 deletions.
9 changes: 9 additions & 0 deletions boot/grub/distro/minitool.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
set icon="pmagic";
set vmlinuz_img="(loop)/casper/vmlinuz*";
set initrd_img="(loop)/casper/tinycore.gz";
set loopiso=" ";
menuentry "作为 MiniTool Partition Wizard ISO 启动" --class $icon{
set kcmdline="ramdisk_size=409600 root=/dev/ram0 rw";
linux $vmlinuz_img $kcmdline $loopiso;
initrd $initrd_img;
}
18 changes: 18 additions & 0 deletions boot/grub/distro/slitaz.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
set icon="gnu-linux";
set vmlinuz_img="(loop)/boot/bzImage";
set initrd_img="(loop)/boot/rootfs4.gz";
if test -f (loop)/boot/rootfs3.gz; then
initrd_img="${initrd_img} (loop)/boot/rootfs3.gz"
fi;
if test -f (loop)/boot/rootfs2.gz; then
initrd_img="${initrd_img} (loop)/boot/rootfs2.gz"
fi;
if test -f (loop)/boot/rootfs1.gz; then
initrd_img="${initrd_img} (loop)/boot/rootfs1.gz"
fi;

menuentry "作为 Slitaz Rolling ISO 启动" --class $icon{
set kcmdline="root=/dev/null video=-32 rw";
linux $vmlinuz_img $kcmdline;
initrd $initrd_img;
}
5 changes: 3 additions & 2 deletions boot/grub/g4d_path.lua
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ else
end
print (g4dcmd)
grub.setenv ("g4dcmd", g4dcmd)
--print ("按任意键继续")
--grub.getkey()

--print ("按任意键继续启动 ...")
--grub.getkey ()
return 0
4 changes: 4 additions & 0 deletions boot/grub/isoboot.sh
Original file line number Diff line number Diff line change
Expand Up @@ -73,5 +73,9 @@ function CheckLinuxType {
source $prefix/distro/antix.sh;
elif test -f (loop)/boot/core.gz -a -f (loop)/boot/vmlinuz; then
source $prefix/distro/tinycore.sh;
elif test -f (loop)/casper/tinycore.gz; then
source $prefix/distro/minitool.sh;
elif test -f (loop)/boot/bzImage -a -f (loop)/boot/rootfs4.gz; then
source $prefix/distro/slitaz.sh;
fi
}

0 comments on commit fefd418

Please sign in to comment.