diff --git a/arch/legacy/ntboot/INSTALLXP b/arch/legacy/ntboot/INSTALLXP new file mode 100644 index 00000000..a71bf6c9 --- /dev/null +++ b/arch/legacy/ntboot/INSTALLXP @@ -0,0 +1,47 @@ +!BAT +:: INSTALLXP +:: Grub2-FileManager +:: Copyright (C) 2020 A1ive. +:: +:: Grub2-FileManager is free software: you can redistribute it and/or modify +:: it under the terms of the GNU General Public License as published by +:: the Free Software Foundation, either version 3 of the License, or +:: (at your option) any later version. +:: +:: Grub2-FileManager is distributed in the hope that it will be useful, +:: but WITHOUT ANY WARRANTY; without even the implied warranty of +:: MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +:: GNU General Public License for more details. +:: +:: You should have received a copy of the GNU General Public License +:: along with Grub2-FileManager. If not, see . +debug=off + +set dev=@ +if /I "%1"=="cd" set dev=(0xff) && set step=1 +if /I "%1"=="hd" set dev=(hd0) && set step=2 +if "%dev%"=="@" echo && echo #1 Parameters ERROR && goto :exit +shift + +echo -e %* | set img= +find --set-root --ignore-floppies %img% +if NOT exist %img% echo File not exist && goto :exit + +map --mem (rd)+1 (fd0) +map --mem (rd)+1 (fd1) + +echo Loading %img% ... +map %img% (0xff) || map --mem %img% (0xff) +map (hd0) (hd1) +map (hd1) (hd0) +map --hook + +echo Install Windows XP - STEP %step% +rootnoverify %dev% +chainloader %dev% || chainloader +1 || chainloader %dev%+1 || goto :exit +boot + +:exit +echo +pause press any key to exit ... +reboot diff --git a/arch/legacy/winvblk.gz b/arch/legacy/winvblk.gz new file mode 100755 index 00000000..5bab24fa Binary files /dev/null and b/arch/legacy/winvblk.gz differ diff --git a/boot/grubfm/distro/winxp.sh b/boot/grubfm/distro/winxp.sh new file mode 100644 index 00000000..5790be24 --- /dev/null +++ b/boot/grubfm/distro/winxp.sh @@ -0,0 +1,13 @@ +source ${prefix}/func.sh; + +menuentry "Install Windows XP - STEP 1" --class nt5 { + set g4d_cmd="find --set-root --ignore-floppies /fm.loop;/INSTALLXP cd ${grubfm_path};"; + linux ${prefix}/grub.exe --config-file=${g4d_cmd}; + initrd ${prefix}/winvblk.gz; +} + +menuentry "Install Windows XP - STEP 2" --class nt5 { + set g4d_cmd="find --set-root --ignore-floppies /fm.loop;/INSTALLXP hd ${grubfm_path};"; + linux ${prefix}/grub.exe --config-file=${g4d_cmd}; + initrd ${prefix}/winvblk.gz; +} diff --git a/boot/grubfm/rules/iso/loop_detect.sh b/boot/grubfm/rules/iso/loop_detect.sh index e1052e43..ad7fb818 100644 --- a/boot/grubfm/rules/iso/loop_detect.sh +++ b/boot/grubfm/rules/iso/loop_detect.sh @@ -72,6 +72,14 @@ function iso_detect { lua ${prefix}/rules/iso/winpe.lua; } fi; + if [ -f (loop)/WIN51 ]; + then + export linux_extra=" "; + export icon=nt5; + export distro="Windows XP"; + export src=winxp; + return; + fi; if [ -d (loop)/casper ]; then export linux_extra="iso-scan/filename=${grubfm_path}";