├── .gitattributes ├── .github └── workflows │ └── build.yml ├── .gitignore ├── .travis.yml ├── LICENSE ├── README.md ├── THANKS.md ├── arch ├── aa64 │ ├── builtin.lst │ ├── config.cfg │ ├── optional.lst │ └── wimboot.xz ├── ia32 │ ├── builtin.lst │ ├── config.cfg │ ├── explorer.xz │ ├── install.xz │ ├── optional.lst │ └── wimboot.xz ├── legacy │ ├── builtin.lst │ ├── config.cfg │ ├── insmod.lst │ ├── optional.lst │ ├── preloader.cfg │ └── preloader.lst ├── multiboot │ ├── builtin.lst │ ├── config.cfg │ ├── duet64.iso.xz │ ├── explorer.xz │ ├── grub.exe │ ├── initrd.img.xz │ ├── install.xz │ ├── memdisk │ ├── optional.lst │ └── wimboot.xz └── x64 │ ├── builtin.lst │ ├── config.cfg │ ├── explorer.xz │ ├── install.xz │ ├── optional.lst │ └── wimboot.xz ├── boot └── grubfm │ ├── distro │ ├── alt.sh │ ├── andmenu.sh │ ├── android.sh │ ├── antix.sh │ ├── archlinux.sh │ ├── austrumi.sh │ ├── blackarch.sh │ ├── calculate.sh │ ├── cdlinux.sh │ ├── chakra.sh │ ├── debian.sh │ ├── debmenu.sh │ ├── fedora.sh │ ├── freebsd.sh │ ├── gentoo.sh │ ├── hyper.sh │ ├── init │ │ ├── proxmox │ │ └── veket │ ├── ipfire.sh │ ├── kaos.sh │ ├── knoppix.sh │ ├── krd.sh │ ├── liveslack.sh │ ├── netbsd.sh │ ├── openbsd.sh │ ├── parabola.sh │ ├── pclinuxos.sh │ ├── pentoo.sh │ ├── plop.sh │ ├── pmagic.sh │ ├── porteus.sh │ ├── proxmox.sh │ ├── sabayon.sh │ ├── siduction.sh │ ├── slax.sh │ ├── smartos.sh │ ├── suse64.sh │ ├── sysrcd.sh │ ├── sysresccd.sh │ ├── tinycore.sh │ ├── ubuntu.sh │ ├── veket.sh │ ├── wifislax.sh │ ├── win.sh │ └── winxp.sh │ ├── fonts │ └── unicode.xz │ ├── func.sh │ ├── g4d_menu.lua │ ├── g4d_path.lua │ ├── global.sh │ ├── hwinfo.sh │ ├── init.sh │ ├── insmod.lst │ ├── kbd.lua │ ├── kbd │ ├── KBD_AZERTY.cfg │ ├── KBD_CZECH_QWERTY.cfg │ ├── KBD_CZECH_QWERTZ.cfg │ ├── KBD_DANISH.cfg │ ├── KBD_DVORAK_USA.cfg │ ├── KBD_FRENCH.cfg │ ├── KBD_GERMAN.cfg │ ├── KBD_ITALIANO.cfg │ ├── KBD_JAPAN_106.cfg │ ├── KBD_LATIN_USA.cfg │ ├── KBD_PORTU_BRAZIL.cfg │ ├── KBD_QWERTY_UK.cfg │ ├── KBD_QWERTZ.cfg │ ├── KBD_QWERTZ_HUN.cfg │ ├── KBD_QWERTZ_SLOV_CROAT.cfg │ ├── KBD_SPANISH.cfg │ ├── KBD_SWEDISH.cfg │ ├── KBD_TURKISH_Q.cfg │ └── KBD_VIETNAMESE.cfg │ ├── lang.sh │ ├── language.lua │ ├── locale │ └── fm │ │ └── README │ ├── netboot.sh │ ├── null.cpio │ ├── osdetect.sh │ ├── power.sh │ ├── pxeinit.sh │ ├── rules │ ├── bmp │ │ └── bgrt.sh │ ├── cfg │ │ ├── grub2.sh │ │ ├── pxelinux.sh │ │ └── syslinux.sh │ ├── efi │ │ ├── chain.sh │ │ └── load.sh │ ├── fatfs │ │ ├── copy.sh │ │ ├── copy_test.sh │ │ ├── delete.sh │ │ ├── fatfs_test.sh │ │ ├── list.sh │ │ └── rename.sh │ ├── generic.ini │ ├── generic │ │ ├── cat.sh │ │ ├── custom.sh │ │ ├── custom_test.sh │ │ ├── dummy.sh │ │ ├── hex.sh │ │ ├── info.sh │ │ ├── info_test.sh │ │ └── kernel.sh │ ├── gkb │ │ └── keymap.sh │ ├── img │ │ ├── fdd.sh │ │ └── hdd.sh │ ├── iso │ │ ├── buildpe.sh │ │ ├── e2b.sh │ │ ├── e2b_test.sh │ │ ├── loop.sh │ │ ├── loop_detect.sh │ │ ├── loop_test.sh │ │ ├── map.sh │ │ ├── win.sh │ │ └── winpe.lua │ ├── lst │ │ ├── g4d.sh │ │ └── grub.sh │ ├── lua │ │ └── lua.sh │ ├── mod │ │ └── mod.sh │ ├── nes │ │ └── nes.sh │ ├── pf2 │ │ └── pf2.sh │ ├── png │ │ └── view.sh │ ├── vhd │ │ ├── map.sh │ │ └── ntboot.sh │ └── wim │ │ ├── nt5.sh │ │ ├── ntboot.sh │ │ └── wimboot.sh │ ├── search.lua │ ├── search.sh │ ├── settings.sh │ ├── themes │ └── slack │ │ ├── background.png │ │ ├── dock │ │ ├── boot.png │ │ ├── fm.png │ │ ├── hwinfo.png │ │ ├── logout.png │ │ ├── search.png │ │ ├── settings.png │ │ ├── space.png │ │ └── util.png │ │ ├── fm.txt │ │ ├── hwinfo │ │ ├── board.txt │ │ ├── cpu.txt │ │ ├── grub.txt │ │ ├── icons │ │ │ ├── board.png │ │ │ ├── cpu.png │ │ │ ├── grub.png │ │ │ └── ram.png │ │ ├── menu_bkg_c.png │ │ ├── ram.txt │ │ └── select_bkg_c.png │ │ ├── icons │ │ ├── 7z.png │ │ ├── acronis.png │ │ ├── aioboot.png │ │ ├── android.png │ │ ├── archlinux.png │ │ ├── bin.png │ │ ├── c.png │ │ ├── cancel.png │ │ ├── cfg.png │ │ ├── chakra.png │ │ ├── check.png │ │ ├── copy.png │ │ ├── crt.png │ │ ├── debian.png │ │ ├── devuan.png │ │ ├── dir.png │ │ ├── doc.png │ │ ├── elive.png │ │ ├── exe.png │ │ ├── extix.png │ │ ├── fedora.png │ │ ├── file.png │ │ ├── frag.png │ │ ├── freebsd.png │ │ ├── gentoo.png │ │ ├── gkb.png │ │ ├── gnu-linux.png │ │ ├── go-previous.png │ │ ├── halt.png │ │ ├── hdd.png │ │ ├── helenos.png │ │ ├── img.png │ │ ├── info.png │ │ ├── ipfire.png │ │ ├── iso.png │ │ ├── iso_file.png │ │ ├── kaos.png │ │ ├── knoppix.png │ │ ├── konboot.png │ │ ├── lang.png │ │ ├── lua.png │ │ ├── macOS.png │ │ ├── manjaro.png │ │ ├── mem.png │ │ ├── mod.png │ │ ├── mp3.png │ │ ├── mp4.png │ │ ├── ms-dos.png │ │ ├── net.png │ │ ├── netbsd.png │ │ ├── nt5.png │ │ ├── nt6.png │ │ ├── openbsd.png │ │ ├── opensuse.png │ │ ├── pclinuxos.png │ │ ├── pf2.png │ │ ├── pmagic.png │ │ ├── png.png │ │ ├── porteus.png │ │ ├── pxe.png │ │ ├── py.png │ │ ├── q4os.png │ │ ├── reboot.png │ │ ├── rename.png │ │ ├── sabayon.png │ │ ├── screen.png │ │ ├── search.png │ │ ├── settings.png │ │ ├── sh.png │ │ ├── siduction.png │ │ ├── slackware.png │ │ ├── slax.png │ │ ├── solaris.png │ │ ├── sort.png │ │ ├── strcase.png │ │ ├── tails.png │ │ ├── trash.png │ │ ├── txt.png │ │ ├── ubuntu.png │ │ ├── uefi.png │ │ ├── ventoy.png │ │ ├── wifislax.png │ │ └── wim.png │ │ ├── info.txt │ │ ├── menu_bkg_c.png │ │ ├── menu_bkg_e.png │ │ ├── menu_bkg_n.png │ │ ├── menu_bkg_ne.png │ │ ├── menu_bkg_nw.png │ │ ├── menu_bkg_s.png │ │ ├── menu_bkg_se.png │ │ ├── menu_bkg_sw.png │ │ ├── menu_bkg_w.png │ │ ├── sb_frame_c.png │ │ ├── sb_frame_n.png │ │ ├── sb_frame_s.png │ │ ├── sb_thumb_c.png │ │ ├── sb_thumb_n.png │ │ ├── sb_thumb_s.png │ │ ├── select_bkg_s.png │ │ ├── term_bkg_c.png │ │ ├── term_bkg_e.png │ │ ├── term_bkg_n.png │ │ ├── term_bkg_ne.png │ │ ├── term_bkg_nw.png │ │ ├── term_bkg_s.png │ │ ├── term_bkg_se.png │ │ ├── term_bkg_sw.png │ │ ├── term_bkg_w.png │ │ └── theme.txt │ ├── types │ ├── 3gp │ ├── 7z │ ├── asm │ ├── avi │ ├── bat │ ├── bin │ ├── bmp │ ├── c │ ├── cda │ ├── cer │ ├── cfg │ ├── cpio │ ├── cpp │ ├── crt │ ├── der │ ├── doc │ ├── docx │ ├── efi │ ├── elf │ ├── exe │ ├── fba │ ├── flac │ ├── flv │ ├── gif │ ├── gkb │ ├── gz │ ├── h │ ├── hpp │ ├── ico │ ├── im_ │ ├── ima │ ├── img │ ├── inf │ ├── ini │ ├── is_ │ ├── iso │ ├── jpeg │ ├── jpg │ ├── log │ ├── lst │ ├── lua │ ├── lz │ ├── lzma │ ├── md │ ├── mod │ ├── mp3 │ ├── mp4 │ ├── mpeg │ ├── nes │ ├── nsh │ ├── ogg │ ├── pf2 │ ├── png │ ├── ppt │ ├── pptx │ ├── py │ ├── pyc │ ├── rar │ ├── rmvb │ ├── s │ ├── sh │ ├── tar │ ├── tga │ ├── txt │ ├── vhd │ ├── vhdx │ ├── vmdk │ ├── wav │ ├── wim │ ├── wps │ ├── xls │ ├── xlsx │ ├── xz │ └── zip │ ├── util.sh │ ├── view.lua │ └── write.lua ├── build.sh ├── lang ├── ar_SA │ ├── fm.po │ └── lang.sh ├── da_DK │ ├── fm.po │ └── lang.sh ├── de_DE │ ├── fm.po │ └── lang.sh ├── es_ES │ ├── fm.po │ └── lang.sh ├── fm.pot ├── fr_FR │ ├── fm.po │ └── lang.sh ├── he_IL │ ├── fm.po │ └── lang.sh ├── hu_HU │ ├── fm.po │ └── lang.sh ├── id_ID │ └── fm.po ├── ja_JP │ └── fm.po ├── ko_KR │ ├── fm.po │ └── lang.sh ├── pl_PL │ ├── fm.po │ └── lang.sh ├── pt_BR │ ├── fm.po │ └── lang.sh ├── pt_PT │ └── fm.po ├── ru_RU │ ├── fm.po │ └── lang.sh ├── tr_TR │ ├── fm.po │ └── lang.sh ├── uk_UA │ ├── fm.po │ └── lang.sh ├── vi_VN │ ├── fm.po │ └── lang.sh ├── zh_CN │ ├── fm.po │ └── lang.sh └── zh_TW │ ├── fm.po │ └── lang.sh ├── loadfm ├── release.sh ├── samples ├── bootiso.lua ├── grubfm.cfg ├── grubfm_offical.cfg ├── osdetect.lua ├── splash │ ├── splash10.txt │ └── splash10 │ │ ├── 1.png │ │ ├── 10.png │ │ ├── 11.png │ │ ├── 12.png │ │ ├── 13.png │ │ ├── 14.png │ │ ├── 15.png │ │ ├── 16.png │ │ ├── 17.png │ │ ├── 18.png │ │ ├── 19.png │ │ ├── 2.png │ │ ├── 20.png │ │ ├── 21.png │ │ ├── 22.png │ │ ├── 23.png │ │ ├── 24.png │ │ ├── 25.png │ │ ├── 26.png │ │ ├── 27.png │ │ ├── 28.png │ │ ├── 29.png │ │ ├── 3.png │ │ ├── 30.png │ │ ├── 31.png │ │ ├── 32.png │ │ ├── 33.png │ │ ├── 34.png │ │ ├── 35.png │ │ ├── 36.png │ │ ├── 37.png │ │ ├── 38.png │ │ ├── 39.png │ │ ├── 4.png │ │ ├── 40.png │ │ ├── 41.png │ │ ├── 42.png │ │ ├── 5.png │ │ ├── 6.png │ │ ├── 7.png │ │ ├── 8.png │ │ ├── 9.png │ │ └── black.png └── usb_install.cmd └── update_grub2.sh /.gitattributes: -------------------------------------------------------------------------------- 1 | *.bat text eol=crlf 2 | *.sh text eol=lf 3 | null.cfg binary 4 | NTBOOT binary 5 | -------------------------------------------------------------------------------- /.github/workflows/build.yml: -------------------------------------------------------------------------------- 1 | name: release 2 | 3 | on: 4 | push: 5 | branches: 6 | - master 7 | 8 | jobs: 9 | build: 10 | runs-on: ubuntu-latest 11 | steps: 12 | - name: checkout 13 | uses: actions/checkout@v1 14 | - name: initialize 15 | run: | 16 | sudo -E apt-get -y install gettext grub2-common genisoimage p7zip-full mtools xorriso 17 | 18 | - name: update_grub2 19 | run: ./update_grub2.sh 20 | 21 | - name: build 22 | run: | 23 | ./release.sh 24 | echo "3" | ./build.sh 25 | 26 | - name: upload 27 | uses: marvinpinto/action-automatic-releases@latest 28 | with: 29 | repo_token: "${{ secrets.GITHUB_TOKEN }}" 30 | automatic_release_tag: "latest" 31 | prerelease: true 32 | title: "Development Build" 33 | files: | 34 | grubfm-zh_CN.7z 35 | grubfm-zh_TW.7z 36 | grubfm-en_US.7z 37 | grubfm-ar_SA.7z 38 | grubfm-da_DK.7z 39 | grubfm-de_DE.7z 40 | grubfm-es_ES.7z 41 | grubfm-fr_FR.7z 42 | grubfm-he_IL.7z 43 | grubfm-hu_HU.7z 44 | grubfm-ko_KR.7z 45 | grubfm-pl_PL.7z 46 | grubfm-pt_BR.7z 47 | grubfm-ru_RU.7z 48 | grubfm-tr_TR.7z 49 | grubfm-uk_UA.7z 50 | grubfm-vi_VN.7z 51 | grubfm_multiarch.iso 52 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | grubfm*.efi 2 | grubfm*.efi.signed 3 | grubfm*.iso 4 | grubfm*.7z 5 | grubfm*.elf 6 | build 7 | *.crt 8 | test*.cer 9 | *.key 10 | desktop.ini 11 | grub2-latest.tar.gz 12 | grub/* 13 | -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- 1 | dist: xenial 2 | language: generic 3 | notifications: 4 | email: false 5 | sudo: required 6 | install: sudo apt-get install -y gettext grub2-common genisoimage p7zip-full 7 | script: ./release.sh 8 | before_deploy: 9 | - export TRAVIS_TAG=${TRAVIS_TAG:-$(date +'%Y%m%d')-$(git log --format=%h -1)} 10 | - git tag $TRAVIS_TAG 11 | deploy: 12 | provider: releases 13 | api_key: $GITHUB_TOKEN 14 | file: grubfm-zh_CN.7z 15 | skip_cleanup: true 16 | on: 17 | tags: true 18 | -------------------------------------------------------------------------------- /THANKS.md: -------------------------------------------------------------------------------- 1 | GRUB2-filemanager would not be what it is today without the invaluable help of 2 | everybody who was kind enough to spend time testing it and reporting 3 | bugs. 4 | 5 | GRUB2-filemanager is based on the following open source projects: 6 | 7 | [a1ive's GRUB2](https://github.com/a1ive/grub) 8 | [GRUB4DOS](https://github.com/chenall/grub4dos) 9 | [memdisk](https://wiki.syslinux.org/wiki/index.php?title=MEMDISK) 10 | [ImDisk](http://www.ltr-data.se/opencode.html/#ImDisk) 11 | [Explorer++](https://github.com/derceg/explorerplusplus) 12 | [WinXShell](https://github.com/slorelee/PExplorer) 13 | [DUET from Clover](https://sourceforge.net/projects/cloverefiboot/) 14 | [NTBOOT](http://chenall.net/post/ntboot/) 15 | [winvblock](https://github.com/Sha0/winvblock) 16 | -------------------------------------------------------------------------------- /arch/aa64/builtin.lst: -------------------------------------------------------------------------------- 1 | acpi affs afs alias all_video bfs bitmap bitmap_scale blocklist bmp boot btrfs cat chain cmp commandline configfile cpio crc crscreenshot date datehook dd disk dm_nv echo efi_gop efi_mouse efiload efinet eval exfat expr ext2 extcmd f2fs fat fatfs fb file fixmmap font fshelp gcry_arcfour gcry_blowfish gcry_camellia gcry_cast5 gcry_crc gcry_des gcry_dsa gcry_idea gcry_md4 gcry_md5 gcry_rfc2268 gcry_rijndael gcry_rmd160 gcry_rsa gcry_seed gcry_serpent gcry_sha1 gcry_sha256 gcry_sha512 gcry_tiger gcry_twofish gcry_whirlpool getargs getenv getkey gfxmenu gfxterm gfxterm_background gfxterm_menu gptsync grubfm gzio halt hashsum help hexdump hfs hfsplus http iso9660 jfs jpeg keystatus linux loadenv loopback ls lsmmap lua lvm lzopio map mdraid09 mdraid09_be memdisk minicmd msdospart nes net newc normal ntfs ntfscomp nttools part_apple part_bsd part_gpt part_msdos partnew parttool png probe progress raid5rec raid6rec read reboot regexp reiserfs sbpolicy search setenv setkey sleep squash4 stat tar terminal terminfo test tftp tga time tr true udf version vhd video video_colors video_fb videoinfo wimboot xfs xzio zfs 2 | -------------------------------------------------------------------------------- /arch/aa64/config.cfg: -------------------------------------------------------------------------------- 1 | normal (memdisk)/boot/grubfm/init.sh 2 | -------------------------------------------------------------------------------- /arch/aa64/optional.lst: -------------------------------------------------------------------------------- 1 | afsplitter crypto cryptodisk geli json luks luks2 pbkdf2 2 | -------------------------------------------------------------------------------- /arch/aa64/wimboot.xz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1ive/grub2-filemanager/918524dc18f08eba1ade421282b54a7b2787fa15/arch/aa64/wimboot.xz -------------------------------------------------------------------------------- /arch/ia32/builtin.lst: -------------------------------------------------------------------------------- 1 | acpi affs afs alias all_video at_keyboard bfs bitmap bitmap_scale blocklist bmp boot bsd btrfs cat chain cmp commandline configfile cpio cpuid crc crscreenshot date datehook dd disk dm_nv echo efi_gop efi_mouse efiload efinet eval exfat expr ext2 extcmd f2fs fat fatfs fb file fixmmap font fshelp gcry_arcfour gcry_blowfish gcry_camellia gcry_cast5 gcry_crc gcry_des gcry_dsa gcry_idea gcry_md4 gcry_md5 gcry_rfc2268 gcry_rijndael gcry_rmd160 gcry_rsa gcry_seed gcry_serpent gcry_sha1 gcry_sha256 gcry_sha512 gcry_tiger gcry_twofish gcry_whirlpool getargs getenv getkey gfxmenu gfxterm gfxterm_background gfxterm_menu gptsync grubfm gzio halt hashsum help hexdump hfs hfsplus http iso9660 jfs jpeg keylayouts keystatus legacycfg linux linuxefi loadbios loadenv loopback ls lsmmap lua lvm lzopio map mdraid09 mdraid09_be memdisk minicmd msdospart multiboot multiboot2 nes net newc normal ntboot ntfs ntfscomp nttools part_apple part_bsd part_gpt part_msdos partnew parttool png probe progress raid5rec raid6rec random read reboot regexp reiserfs sbpolicy search setenv setkey shell sleep squash4 stat syslinuxcfg tar terminal terminfo test tftp tga time tr true udf version vhd video video_colors video_fb videoinfo wimboot xfs xzio zfs 2 | -------------------------------------------------------------------------------- /arch/ia32/config.cfg: -------------------------------------------------------------------------------- 1 | normal (memdisk)/boot/grubfm/init.sh 2 | -------------------------------------------------------------------------------- /arch/ia32/explorer.xz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1ive/grub2-filemanager/918524dc18f08eba1ade421282b54a7b2787fa15/arch/ia32/explorer.xz -------------------------------------------------------------------------------- /arch/ia32/install.xz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1ive/grub2-filemanager/918524dc18f08eba1ade421282b54a7b2787fa15/arch/ia32/install.xz -------------------------------------------------------------------------------- /arch/ia32/optional.lst: -------------------------------------------------------------------------------- 1 | afsplitter crypto cryptodisk geli json luks luks2 pbkdf2 2 | -------------------------------------------------------------------------------- /arch/ia32/wimboot.xz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1ive/grub2-filemanager/918524dc18f08eba1ade421282b54a7b2787fa15/arch/ia32/wimboot.xz -------------------------------------------------------------------------------- /arch/legacy/builtin.lst: -------------------------------------------------------------------------------- 1 | biosdisk boot cat chain configfile cpio echo exfat ext2 extcmd fat fb font gzio halt help http iso9660 linux linux16 loopback ls lzopio memdisk minicmd net newc normal ntfs ntldr part_gpt part_msdos pxe search tar test tftp udf xzio 2 | -------------------------------------------------------------------------------- /arch/legacy/config.cfg: -------------------------------------------------------------------------------- 1 | loopback -m memdisk (cd)/fm.loop 2 | normal (memdisk)/boot/grubfm/init.sh 3 | -------------------------------------------------------------------------------- /arch/legacy/insmod.lst: -------------------------------------------------------------------------------- 1 | acpi affs afs alias all_video aout at_keyboard bfs bitmap bitmap_scale blocklist bmp bsd btrfs cat cmp commandline conv cpuid crc date datehook datetime dd disk diskfilter div dm_nv elf eval expr f2fs fatfs file freedos functional_test gcry_arcfour gcry_blowfish gcry_camellia gcry_cast5 gcry_crc gcry_des gcry_dsa gcry_idea gcry_md4 gcry_md5 gcry_rfc2268 gcry_rijndael gcry_rmd160 gcry_rsa gcry_seed gcry_serpent gcry_sha1 gcry_sha256 gcry_sha512 gcry_tiger gcry_twofish gcry_whirlpool getkey gfxmenu gfxterm gfxterm_background gfxterm_menu gptsync grubfm hashsum hexdump hfs hfsplus ini jfs jpeg keylayouts keystatus legacycfg loadenv lsapm lsmmap lua lvm macho map mmap mdraid09 mdraid09_be msdospart multiboot multiboot2 nes ntboot ntfscomp nttools offsetio part_apple part_bsd partnew parttool password pci png priority_queue probe procfs progress raid5rec raid6rec random read reboot regexp reiserfs search_fs_uuid search_label sendkey serial setjmp setkey sleep smbios sortlib squash4 stat syslinuxcfg terminfo tga time tr trig true uuid vbe version vga vhd video video_bochs video_cirrus video_colors video_fb videoinfo wimboot xfs zfs zstd 2 | -------------------------------------------------------------------------------- /arch/legacy/optional.lst: -------------------------------------------------------------------------------- 1 | afsplitter crypto cryptodisk geli json luks luks2 mpi pbkdf2 pci pgp 2 | -------------------------------------------------------------------------------- /arch/legacy/preloader.cfg: -------------------------------------------------------------------------------- 1 | multiboot /grubfm.elf 2 | boot 3 | -------------------------------------------------------------------------------- /arch/legacy/preloader.lst: -------------------------------------------------------------------------------- 1 | biosdisk boot iso9660 multiboot search udf 2 | -------------------------------------------------------------------------------- /arch/multiboot/builtin.lst: -------------------------------------------------------------------------------- 1 | acpi affs afs alias all_video at_keyboard biosdisk bfs bitmap bitmap_scale blocklist bmp boot bsd btrfs cat chain cmp commandline configfile cpio cpuid crc date datehook dd disk dm_nv echo eval exfat expr ext2 extcmd f2fs fat fatfs fb file fshelp gcry_arcfour gcry_blowfish gcry_camellia gcry_cast5 gcry_crc gcry_des gcry_dsa gcry_idea gcry_md4 gcry_md5 gcry_rfc2268 gcry_rijndael gcry_rmd160 gcry_rsa gcry_seed gcry_serpent gcry_sha1 gcry_sha256 gcry_sha512 gcry_tiger gcry_twofish gcry_whirlpool getkey gfxmenu gfxterm_background gfxterm_menu gptsync grubfm gzio halt hashsum help hexdump hfs hfsplus iso9660 jfs jpeg keylayouts keystatus linux linux16 loadenv loopback ls lsmmap lua lvm lzopio map mdraid09 mdraid09_be memdisk minicmd msdospart multiboot multiboot2 nativedisk nes newc normal ntboot ntfs ntfscomp ntldr nttools part_apple part_bsd part_gpt part_msdos partnew parttool png probe progress raid5rec raid6rec random read reboot regexp reiserfs search setkey sleep squash4 stat syslinuxcfg tar terminal terminfo test tga time tr true udf vbe version vhd video_colors videoinfo wimboot xfs xzio zfs 2 | -------------------------------------------------------------------------------- /arch/multiboot/config.cfg: -------------------------------------------------------------------------------- 1 | normal (memdisk)/boot/grubfm/init.sh 2 | -------------------------------------------------------------------------------- /arch/multiboot/duet64.iso.xz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1ive/grub2-filemanager/918524dc18f08eba1ade421282b54a7b2787fa15/arch/multiboot/duet64.iso.xz -------------------------------------------------------------------------------- /arch/multiboot/explorer.xz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1ive/grub2-filemanager/918524dc18f08eba1ade421282b54a7b2787fa15/arch/multiboot/explorer.xz -------------------------------------------------------------------------------- /arch/multiboot/grub.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1ive/grub2-filemanager/918524dc18f08eba1ade421282b54a7b2787fa15/arch/multiboot/grub.exe -------------------------------------------------------------------------------- /arch/multiboot/initrd.img.xz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1ive/grub2-filemanager/918524dc18f08eba1ade421282b54a7b2787fa15/arch/multiboot/initrd.img.xz -------------------------------------------------------------------------------- /arch/multiboot/install.xz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1ive/grub2-filemanager/918524dc18f08eba1ade421282b54a7b2787fa15/arch/multiboot/install.xz -------------------------------------------------------------------------------- /arch/multiboot/memdisk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1ive/grub2-filemanager/918524dc18f08eba1ade421282b54a7b2787fa15/arch/multiboot/memdisk -------------------------------------------------------------------------------- /arch/multiboot/optional.lst: -------------------------------------------------------------------------------- 1 | afsplitter crypto cryptodisk geli json luks luks2 pbkdf2 2 | -------------------------------------------------------------------------------- /arch/multiboot/wimboot.xz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1ive/grub2-filemanager/918524dc18f08eba1ade421282b54a7b2787fa15/arch/multiboot/wimboot.xz -------------------------------------------------------------------------------- /arch/x64/builtin.lst: -------------------------------------------------------------------------------- 1 | acpi affs afs alias all_video at_keyboard bfs bitmap bitmap_scale blocklist bmp boot bsd btrfs cat chain cmp commandline configfile cpio cpuid crc crscreenshot date datehook dd disk dm_nv echo efi_gop efi_mouse efiload efinet eval exfat expr ext2 extcmd f2fs fat fatfs fb file fixmmap font fshelp gcry_arcfour gcry_blowfish gcry_camellia gcry_cast5 gcry_crc gcry_des gcry_dsa gcry_idea gcry_md4 gcry_md5 gcry_rfc2268 gcry_rijndael gcry_rmd160 gcry_rsa gcry_seed gcry_serpent gcry_sha1 gcry_sha256 gcry_sha512 gcry_tiger gcry_twofish gcry_whirlpool getargs getenv getkey gfxmenu gfxterm gfxterm_background gfxterm_menu gptsync grubfm gzio halt hashsum help hexdump hfs hfsplus http iso9660 jfs jpeg keylayouts keystatus legacycfg linux linuxefi loadbios loadenv loopback ls lsmmap lua lvm lzopio map mdraid09 mdraid09_be memdisk minicmd msdospart multiboot multiboot2 nes net newc normal ntboot ntfs ntfscomp nttools part_apple part_bsd part_gpt part_msdos partnew parttool png probe progress raid5rec raid6rec random read reboot regexp reiserfs sbpolicy search setenv setkey shell sleep squash4 stat syslinuxcfg tar terminal terminfo test tftp tga time tr true udf version vhd video video_colors video_fb videoinfo wimboot xfs xzio zfs 2 | -------------------------------------------------------------------------------- /arch/x64/config.cfg: -------------------------------------------------------------------------------- 1 | normal (memdisk)/boot/grubfm/init.sh 2 | -------------------------------------------------------------------------------- /arch/x64/explorer.xz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1ive/grub2-filemanager/918524dc18f08eba1ade421282b54a7b2787fa15/arch/x64/explorer.xz -------------------------------------------------------------------------------- /arch/x64/install.xz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1ive/grub2-filemanager/918524dc18f08eba1ade421282b54a7b2787fa15/arch/x64/install.xz -------------------------------------------------------------------------------- /arch/x64/optional.lst: -------------------------------------------------------------------------------- 1 | afsplitter crypto cryptodisk geli json luks luks2 pbkdf2 2 | -------------------------------------------------------------------------------- /arch/x64/wimboot.xz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1ive/grub2-filemanager/918524dc18f08eba1ade421282b54a7b2787fa15/arch/x64/wimboot.xz -------------------------------------------------------------------------------- /boot/grubfm/distro/alt.sh: -------------------------------------------------------------------------------- 1 | set vmlinuz_img="(loop)/syslinux/alt0/vmlinuz"; 2 | set initrd_img="(loop)/syslinux/alt0/full.cz"; 3 | set kcmdline="noeject fastboot live lowmem showopts quiet splash live_rw stagename=live"; 4 | linux $vmlinuz_img $kcmdline $linux_extra; 5 | initrd $initrd_img; 6 | -------------------------------------------------------------------------------- /boot/grubfm/distro/andmenu.sh: -------------------------------------------------------------------------------- 1 | menuentry $"Android-x86 Live" --class android{ 2 | set kcmdline="root=/dev/ram0"; 3 | linux $vmlinuz_img $kcmdline $android_selinux $android_hardware $linux_extra; 4 | initrd $initrd_img; 5 | } 6 | if [ "${android_selinux}" = " " ]; then 7 | menuentry "[ ] androidboot.selinux=permissive"{ 8 | export android_selinux="androidboot.selinux=permissive"; 9 | configfile ${prefix}/distro/andmenu.sh 10 | } 11 | else 12 | menuentry "[+] androidboot.selinux=permissive"{ 13 | export android_selinux=" "; 14 | configfile ${prefix}/distro/andmenu.sh; 15 | } 16 | fi; 17 | if [ "${android_hardware}" = " " ]; then 18 | menuentry "[ ] androidboot.hardware=android_x86"{ 19 | export android_hardware="androidboot.hardware=android_x86"; 20 | configfile ${prefix}/distro/andmenu.sh 21 | } 22 | else 23 | menuentry "[+] androidboot.hardware=android_x86"{ 24 | export android_hardware=" "; 25 | configfile ${prefix}/distro/andmenu.sh; 26 | } 27 | fi; 28 | -------------------------------------------------------------------------------- /boot/grubfm/distro/android.sh: -------------------------------------------------------------------------------- 1 | export vmlinuz_img="(loop)/kernel"; 2 | export initrd_img="(loop)/initrd.img"; 3 | export android_selinux="androidboot.selinux=permissive"; 4 | export android_hardware=" "; 5 | configfile ${prefix}/distro/andmenu.sh; 6 | -------------------------------------------------------------------------------- /boot/grubfm/distro/antix.sh: -------------------------------------------------------------------------------- 1 | set icon="debian"; 2 | set vmlinuz_img="(loop)/antiX/vmlinuz"; 3 | set initrd_img="(loop)/antiX/initrd.gz"; 4 | menuentry $"antiX Live" --class $icon{ 5 | set kcmdline="splash=v disable=lx"; 6 | linux $vmlinuz_img $kcmdline $linux_extra; 7 | initrd $initrd_img; 8 | } 9 | menuentry $"antiX Fail Safe" --class $icon{ 10 | set kcmdline="splash=v disable=lx nomodeset failsafe"; 11 | linux $vmlinuz_img $kcmdline $linux_extra; 12 | initrd $initrd_img; 13 | } 14 | -------------------------------------------------------------------------------- /boot/grubfm/distro/archlinux.sh: -------------------------------------------------------------------------------- 1 | export enable_progress_indicator=1; 2 | if test -f (loop)/arch/boot/x86_64/vmlinuz*; 3 | then 4 | set vmlinuz_img="(loop)/arch/boot/x86_64/vmlinuz*"; 5 | set kcmdline="archisodevice=/dev/loop0 earlymodules=loop"; 6 | elif test -f (loop)/boot/vmlinuz_x86_64; 7 | then 8 | set vmlinuz_img="(loop)/boot/vmlinuz_x86_64"; 9 | set kcmdline=""; 10 | elif test -f (loop)/arch/boot/vmlinuz*; 11 | then 12 | set vmlinuz_img="(loop)/arch/boot/vmlinuz*"; 13 | set kcmdline="archisobasedir=arch earlymodules=loop modules-load=loop"; 14 | fi; 15 | 16 | if test -f (loop)/arch/boot/x86_64/initramfs-linux.img; 17 | then 18 | set initrd_img="(loop)/arch/boot/x86_64/initramfs-linux.img"; 19 | elif test -f (loop)/arch/boot/x86_64/archiso.img; 20 | then 21 | set initrd_img="(loop)/arch/boot/x86_64/archiso.img"; 22 | elif test -f (loop)/boot/initramfs_x86_64.img; 23 | then 24 | set initrd_img="(loop)/boot/initramfs_x86_64.img"; 25 | elif test -f (loop)/arch/boot/archiso.img; 26 | then 27 | set initrd_img="(loop)/arch/boot/archiso.img"; 28 | fi; 29 | 30 | if test -f (loop)/arch/boot/intel_ucode.img; 31 | then 32 | set initrd_img="${initrd_img} (loop)/arch/boot/intel_ucode.img"; 33 | fi; 34 | if test -f (loop)/arch/boot/amd_ucode.img; 35 | then 36 | set initrd_img="${initrd_img} (loop)/arch/boot/amd_ucode.img"; 37 | fi; 38 | 39 | linux $vmlinuz_img $kcmdline $linux_extra; 40 | initrd $initrd_img; 41 | -------------------------------------------------------------------------------- /boot/grubfm/distro/austrumi.sh: -------------------------------------------------------------------------------- 1 | set icon="slackware" 2 | set kcmdline="rcutree.rcu_idle_gp_delay=1 lang_en dousb aa=/dev/loop1"; 3 | set kernel_img="(loop)/austrumi/bzImage" 4 | set initrd_img="(loop)/austrumi/initrd.gz"; 5 | echo $"Loading ..."; 6 | loopback -d md_initrd 7 | loopback -m md_initrd ${initrd_img}; 8 | 9 | set search_str="if test %-f \$CD/austrumi/austrumi.fs; then"; 10 | set replace_str="if [ %-f \$CD\$sr ]; then losetup \$aa \$CD\$sr"; 11 | set src_file="(md_initrd)/init"; 12 | lua ${prefix}/write.lua; 13 | 14 | set search_str="echo \" Austrumi found at \$device\""; 15 | set replace_str="CD=\$bb; device=loop1; mount \$aa \$bb "; 16 | set src_file="(md_initrd)/init"; 17 | lua ${prefix}/write.lua; 18 | 19 | set search_str="# fdisk %-l | grep ^/dev | cut %-c6%-9"; 20 | set replace_str="bb=/mnt/loop1; mkdir \$bb; echo \$bb "; 21 | set src_file="(md_initrd)/init"; 22 | lua ${prefix}/write.lua; 23 | 24 | menuentry $"1. Run from RAM / Eject USB" --class $icon{ 25 | linux ${kernel_img} $kcmdline $linux_extra emb_user; 26 | initrd (md_initrd); 27 | } 28 | 29 | menuentry $"2. Do not eject USB" --class $icon{ 30 | linux ${kernel_img} $kcmdline $linux_extra emb_user nocache; 31 | initrd (md_initrd); 32 | } 33 | 34 | menuentry $"3. Superuser" --class $icon{ 35 | linux ${kernel_img} $kcmdline $linux_extra; 36 | initrd (md_initrd); 37 | } 38 | 39 | menuentry $"4. Text mode" --class $icon{ 40 | linux ${kernel_img} $kcmdline $linux_extra emb_user text; 41 | initrd (md_initrd); 42 | } 43 | -------------------------------------------------------------------------------- /boot/grubfm/distro/blackarch.sh: -------------------------------------------------------------------------------- 1 | export enable_progress_indicator=1; 2 | set kcmdline="archisodevice=/dev/loop0 earlymodules=loop archisobasedir=blackarch"; 3 | set vmlinuz_img="(loop)/blackarch/boot/x86_64/vmlinuz-linux"; 4 | 5 | if test -f (loop)/blackarch/boot/x86_64/initramfs-linux.img; 6 | then 7 | set initrd_img="(loop)/blackarch/boot/x86_64/initramfs-linux.img"; 8 | elif test -f (loop)/blackarch/blackboot/x86_64/archiso.img; 9 | then 10 | set initrd_img="(loop)/blackarch/boot/x86_64/archiso.img"; 11 | fi; 12 | 13 | if test -f (loop)/blackarch/boot/intel_ucode.img; 14 | then 15 | set initrd_img="${initrd_img} (loop)/blackarch/boot/intel_ucode.img"; 16 | fi; 17 | if test -f (loop)/blackarch/boot/amd_ucode.img; 18 | then 19 | set initrd_img="${initrd_img} (loop)/blackarch/boot/amd_ucode.img"; 20 | fi; 21 | 22 | linux $vmlinuz_img $kcmdline $linux_extra; 23 | initrd $initrd_img; 24 | -------------------------------------------------------------------------------- /boot/grubfm/distro/calculate.sh: -------------------------------------------------------------------------------- 1 | set vmlinuz_img="(loop)/boot/vmlinuz"; 2 | set initrd_img="(loop)/boot/initrd"; 3 | set kcmdline="vga=791 init=/linuxrc rd.live.squashimg=livecd.squashfs nodevfs quiet noresume splash=silent,theme:calculate console=tty1"; 4 | linux $vmlinuz_img $kcmdline $linux_extra; 5 | initrd $initrd_img; 6 | -------------------------------------------------------------------------------- /boot/grubfm/distro/cdlinux.sh: -------------------------------------------------------------------------------- 1 | set vmlinuz_img="(loop)/CDlinux/bzImage"; 2 | set initrd_img="(loop)/CDlinux/initrd*"; 3 | set kcmdline=""; 4 | if [ "${lang}" = "zh_CN" ]; then 5 | kcmdline="${kcmdline} CDL_LANG=zh_CN.UTF-8"; 6 | fi; 7 | if test -f $vmlinuz_img -a -f $initrd_img; then 8 | linux $vmlinuz_img $kcmdline $linux_extra; 9 | initrd $initrd_img; 10 | fi; 11 | -------------------------------------------------------------------------------- /boot/grubfm/distro/chakra.sh: -------------------------------------------------------------------------------- 1 | set icon="chakra"; 2 | set vmlinuz_img="(loop)/chakra/boot/x86_64/chakraiso"; 3 | set initrd_img="(loop)/chakra/boot/x86_64/chakraiso.img"; 4 | menuentry $"Chakra" --class $icon { 5 | export enable_progress_indicator=1; 6 | set kcmdline="earlymodules=loop nonfree=no xdriver=no"; 7 | linux $vmlinuz_img $kcmdline $linux_extra; 8 | initrd $initrd_img; 9 | } 10 | menuentry $"Chakra (non-free drivers)" --class $icon { 11 | export enable_progress_indicator=1; 12 | set kcmdline="earlymodules=loop nonfree=yes xdriver=no radeon.modeset=0 nouveau.modeset=0 i915.modeset=1 showopts"; 13 | linux $vmlinuz_img $kcmdline $linux_extra; 14 | initrd $initrd_img; 15 | } 16 | -------------------------------------------------------------------------------- /boot/grubfm/distro/debian.sh: -------------------------------------------------------------------------------- 1 | if test -f (loop)/live/vmlinuz; then 2 | export vmlinuz_img="(loop)/live/vmlinuz"; 3 | else 4 | export vmlinuz_img="(loop)/live/vmlinuz*"; 5 | fi; 6 | if test -f (loop)/live/initrd.img; then 7 | export initrd_img="(loop)/live/initrd.img"; 8 | else 9 | export initrd_img="(loop)/live/initrd*"; 10 | fi; 11 | if [ "${lang}" = "zh_CN" ]; then 12 | export debian_locale="locales=zh_CN.UTF-8"; 13 | elif [ "${lang}" = "zh_TW" ]; then 14 | export debian_locale="locales=zh_TW.UTF-8"; 15 | else 16 | export debian_locale=""; 17 | fi; 18 | export debian_user="username=user"; 19 | export debian_union=""; 20 | export debian_toram=""; 21 | configfile ${prefix}/distro/debmenu.sh; -------------------------------------------------------------------------------- /boot/grubfm/distro/debmenu.sh: -------------------------------------------------------------------------------- 1 | menuentry $"Debian Live" --class debian{ 2 | set kcmdline="boot=live config"; 3 | linux $vmlinuz_img $kcmdline $debian_user $debian_union $debian_locale $linux_extra; 4 | initrd $initrd_img; 5 | } 6 | menuentry $"Devuan Live" --class devuan{ 7 | set kcmdline="boot=live config username=devuan"; 8 | linux $vmlinuz_img $kcmdline $debian_union $debian_locale $linux_extra; 9 | initrd $initrd_img; 10 | } 11 | menuentry $"Elive Live" --class elive{ 12 | set kcmdline="boot=live config username=eliveuser components union=aufs loglevel=0 quiet splash modprobe.blacklist=nouveau,radeonhd,radeon,vmwgfx"; 13 | linux $vmlinuz_img $kcmdline $debian_locale $linux_extra; 14 | initrd $initrd_img; 15 | } 16 | menuentry $"ExTiX Live" --class extix{ 17 | set kcmdline="boot=live username=live"; 18 | linux $vmlinuz_img $kcmdline $debian_union $debian_locale $linux_extra; 19 | initrd $initrd_img; 20 | } 21 | menuentry $"Q4OS Live" --class q4os{ 22 | set kcmdline="boot=live components username=adminq user-fullname=Admin_Q4OS loglevel=3 systemd.log_color=0 systemd.show_status=1"; 23 | linux $vmlinuz_img $kcmdline $debian_union $debian_locale $linux_extra; 24 | initrd $initrd_img; 25 | } 26 | menuentry $"Tails Live" --class tails{ 27 | set kcmdline="boot=live config apparmor=1 security=apparmor nopersistence noprompt timezone=Etc/UTC block.events_dfl_poll_msecs=1000 splash noautologin module=Tails kaslr slab_nomerge slub_debug=FZP mce=0 vsyscall=none page_poison=1 union=aufs"; 28 | linux $vmlinuz_img $kcmdline $debian_locale $linux_extra; 29 | initrd $initrd_img; 30 | } 31 | if [ "${debian_user}" = "username=root" ]; then 32 | menuentry "[+] Root Login"{ 33 | export debian_user="username=user"; 34 | configfile ${prefix}/distro/debmenu.sh; 35 | } 36 | else 37 | menuentry "[ ] Root Login"{ 38 | export debian_user="username=root"; 39 | configfile ${prefix}/distro/debmenu.sh 40 | } 41 | fi; 42 | if [ "${debian_union}" = "union=overlay" ]; then 43 | menuentry "[+] Overlay (Clonezilla/GParted)"{ 44 | export debian_union=""; 45 | configfile ${prefix}/distro/debmenu.sh; 46 | } 47 | else 48 | menuentry "[ ] Overlay (Clonezilla/GParted)"{ 49 | export debian_union="union=overlay"; 50 | configfile ${prefix}/distro/debmenu.sh 51 | } 52 | fi; 53 | if [ "${debian_locale}" = "locales=zh_CN.UTF-8" ]; then 54 | menuentry "[+] Chinese locale"{ 55 | export debian_locale=""; 56 | configfile ${prefix}/distro/debmenu.sh; 57 | } 58 | elif [ "${debian_locale}" = "locales=zh_TW.UTF-8" ]; then 59 | menuentry "[+] Chinese locale"{ 60 | export debian_locale=""; 61 | configfile ${prefix}/distro/debmenu.sh; 62 | } 63 | else 64 | menuentry "[ ] Chinese locale"{ 65 | if [ "${lang}" = "zh_CN" ]; then 66 | export debian_locale="locales=zh_CN.UTF-8"; 67 | elif [ "${lang}" = "zh_TW" ]; then 68 | export debian_locale="locales=zh_TW.UTF-8"; 69 | fi; 70 | configfile ${prefix}/distro/debmenu.sh 71 | } 72 | fi; 73 | if [ "${debian_toram}" = "toram" ]; then 74 | menuentry "[+] Copy to RAM"{ 75 | export debian_toram=""; 76 | configfile ${prefix}/distro/debmenu.sh; 77 | } 78 | else 79 | menuentry "[ ] Copy to RAM"{ 80 | export debian_toram="toram"; 81 | configfile ${prefix}/distro/debmenu.sh 82 | } 83 | fi; 84 | -------------------------------------------------------------------------------- /boot/grubfm/distro/fedora.sh: -------------------------------------------------------------------------------- 1 | source ${prefix}/func.sh; 2 | 3 | set icon="fedora"; 4 | set vmlinuz_img="(loop)/isolinux/vmlinuz*"; 5 | set initrd_img="(loop)/isolinux/initrd*"; 6 | if test -f (loop)/boot/vmlinuz -a -f (loop)/boot/initrd; then 7 | set vmlinuz_img=(loop)/boot/vmlinuz; 8 | set initrd_img=(loop)/boot/initrd; 9 | elif test -f (loop)/boot/kernel -a -f (loop)/boot/initrd.*; then 10 | #Solus 11 | set vmlinuz_img=(loop)/boot/kernel; 12 | set initrd_img=(loop)/boot/initrd.*; 13 | elif test -f (loop)/boot/*/loader/linux -a -f (loop)/boot/*/loader/initrd; then 14 | # OpenSUSE Tumbleweed Live 15 | set vmlinuz_img=(loop)/boot/*/loader/linux; 16 | set initrd_img=(loop)/boot/*/loader/initrd; 17 | elif test -f (loop)/boot/vmlinuz* -a -f (loop)/boot/liveinitrd*; then 18 | # OpenMandriva 19 | set linux_extra="root=live:LABEL=${iso_label} iso-scan/filename=${iso_path}" 20 | set vmlinuz_img=(loop)/boot/vmlinuz*; 21 | set initrd_img=(loop)/boot/liveinitrd*; 22 | fi; 23 | if test -f $vmlinuz_img -a -d (loop)/LiveOS; then 24 | menuentry $"Fedora Live" --class $icon{ 25 | set kcmdline="rd.live.image"; 26 | linux $vmlinuz_img $kcmdline $linux_extra; 27 | initrd $initrd_img; 28 | } 29 | menuentry $"Fedora Live Fail Safe" --class $icon{ 30 | set kcmdline="rd.live.image nomodeset"; 31 | linux $vmlinuz_img $kcmdline $linux_extra; 32 | initrd $initrd_img; 33 | } 34 | menuentry $"Fedora Live Rescue" --class $icon{ 35 | set kcmdline="rd.live.image rescue"; 36 | linux $vmlinuz_img $kcmdline $linux_extra; 37 | initrd $initrd_img; 38 | } 39 | fi; 40 | if test -f (loop)/images/pxeboot/vmlinuz*; then 41 | menuentry $"Fedora Minimal Install" --class $icon{ 42 | probe --set=loopuuid -u (loop); 43 | linux (loop)/images/pxeboot/vmlinuz* boot=images quiet iso-scan/filename="${grubfm_path}" inst.stage2=hd:UUID="${loopuuid}"; 44 | initrd (loop)/images/pxeboot/initrd*; 45 | } 46 | fi; 47 | -------------------------------------------------------------------------------- /boot/grubfm/distro/freebsd.sh: -------------------------------------------------------------------------------- 1 | if test -f (loop)/boot/kernel/kernel*; then 2 | set bsd_kernel=(loop)/boot/kernel/kernel*; 3 | else 4 | set bsd_kernel=(loop)/boot/kernel/kfreebsd.gz; 5 | fi; 6 | set bsd_mfsroot=(loop)/boot/mfsroot.gz; 7 | enable_progress_indicator=1; 8 | echo $"Loading kernel"; 9 | kfreebsd ${bsd_kernel}; 10 | echo $"Loading ISO"; 11 | if test -f ${bsd_mfsroot}; then 12 | kfreebsd_module "${bsd_mfsroot}" type=mfs_root; 13 | else 14 | kfreebsd_module "${linux_extra}" type=mfs_root; 15 | set kFreeBSD.vfs.root.mountfrom=cd9660:/dev/md0; 16 | set kFreeBSD.vfs.root.mountfrom.options=ro; 17 | set kFreeBSD.grub.platform=$grub_platform; 18 | fi; 19 | echo $"Starting FreeBSD"; 20 | -------------------------------------------------------------------------------- /boot/grubfm/distro/gentoo.sh: -------------------------------------------------------------------------------- 1 | set vmlinuz_img="(loop)/isolinux/gentoo"; 2 | set initrd_img="(loop)/isolinux/gentoo.xz"; 3 | if test -f (loop)/isolinux/gentoo64; then 4 | vmlinuz_img="(loop)/isolinux/gentoo64"; 5 | initrd_img="(loop)/isolinux/gentoo64.xz"; 6 | fi 7 | set kcmdline="root=/dev/ram0 init=/linuxrc dokeymap aufs looptype=squashfs loop=/image.squashfs cdroot console=tty1"; 8 | linux $vmlinuz_img $kcmdline $linux_extra; 9 | initrd $initrd_img; 10 | -------------------------------------------------------------------------------- /boot/grubfm/distro/hyper.sh: -------------------------------------------------------------------------------- 1 | export enable_progress_indicator=1; 2 | set vmlinuz_img="(loop)/hyperbola/boot/x86_64/vmlinuz"; 3 | set kcmdline="hyperisobasedir=hyperbola earlymodules=loop"; 4 | 5 | if test -f (loop)/hyperbola/boot/x86_64/initramfs-linux.img; 6 | then 7 | set initrd_img="(loop)/hyperbola/boot/x86_64/initramfs-linux.img"; 8 | elif test -f (loop)/hyperbola/boot/x86_64/hyperiso.img; 9 | then 10 | set initrd_img="(loop)/hyperbola/boot/x86_64/hyperiso.img"; 11 | fi; 12 | 13 | linux $vmlinuz_img $kcmdline $linux_extra; 14 | initrd $initrd_img; 15 | -------------------------------------------------------------------------------- /boot/grubfm/distro/ipfire.sh: -------------------------------------------------------------------------------- 1 | set vmlinuz_img="(loop)/boot/isolinux/vmlinuz"; 2 | set initrd_img="(loop)/boot/isolinux/instroot"; 3 | set kcmdline="vga=791"; 4 | linux $vmlinuz_img $kcmdline $linux_extra; 5 | initrd $initrd_img; 6 | -------------------------------------------------------------------------------- /boot/grubfm/distro/kaos.sh: -------------------------------------------------------------------------------- 1 | export enable_progress_indicator=1; 2 | set vmlinuz_img="(loop)/kdeos/boot/x86_64/kdeosiso"; 3 | set initrd_img="(loop)/kdeos/boot/x86_64/kdeosiso.img"; 4 | set kcmdline="kdeosisodevice=/dev/loop0 earlymodules=loop"; 5 | linux $vmlinuz_img $kcmdline $linux_extra; 6 | initrd $initrd_img; 7 | -------------------------------------------------------------------------------- /boot/grubfm/distro/knoppix.sh: -------------------------------------------------------------------------------- 1 | set vmlinuz_img="(loop)/boot/isolinux/linux"; 2 | set initrd_img="(loop)/boot/isolinux/minirt.gz"; 3 | set kcmdline="ramdisk_size=100000 lang=en apm=power-off nomce libata.force=noncq hpsa.hpsa_allow_any=1 loglevel=1 tz=localtime"; 4 | set linux_suffix=; 5 | set kernel_arch=; 6 | if [ "$grub_platform" != "efi" ]; 7 | then 8 | set linux_suffix=16; 9 | fi; 10 | if cpuid -l; 11 | then 12 | if [ -f (loop)/boot/isolinux/linux64 ]; 13 | then 14 | set vmlinuz_img="(loop)/boot/isolinux/linux64"; 15 | fi; 16 | fi; 17 | linux$linux_suffix ${vmlinuz_img} $kcmdline $linux_extra; 18 | initrd$linux_suffix ${initrd_img}; 19 | -------------------------------------------------------------------------------- /boot/grubfm/distro/krd.sh: -------------------------------------------------------------------------------- 1 | set icon="gentoo" 2 | set kcmdline="net.ifnames=0 lang=en"; 3 | set initrd_img="(loop)/boot/grub/initrd.xz"; 4 | if cpuid -l; 5 | then 6 | set kernel_postfix="x86_64"; 7 | else 8 | set kernel_postfix="x86"; 9 | fi; 10 | echo $"Loading ..."; 11 | loopback -d md_initrd 12 | loopback -m md_initrd ${initrd_img}; 13 | set search_str="\${SUBDIR}/\${ISOLOOP}"; 14 | set replace_str="\${ISOLOOP} "; 15 | set src_file="(md_initrd)/init"; 16 | lua ${prefix}/write.lua; 17 | menuentry $"Kaspersky Rescue Disk. Graphic mode (${kernel_postfix})" --class $icon{ 18 | linux (loop)/boot/grub/k-${kernel_postfix} $kcmdline $linux_extra dostartx; 19 | initrd (md_initrd); 20 | } 21 | 22 | menuentry $"Kaspersky Rescue Disk. Limited graphic mode (${kernel_postfix})" --class $icon{ 23 | linux (loop)/boot/grub/k-${kernel_postfix} $kcmdline $linux_extra dostartx nomodeset; 24 | initrd (md_initrd); 25 | } 26 | 27 | menuentry $"Kaspersky Rescue Disk. Text mode (${kernel_postfix})" --class $icon{ 28 | linux (loop)/boot/grub/k-${kernel_postfix} $kcmdline $linux_extra nox nomodeset; 29 | initrd (md_initrd); 30 | } 31 | 32 | menuentry $"Kaspersky Rescue Disk. Hardware Info (${kernel_postfix})" --class $icon{ 33 | linux (loop)/boot/grub/k-${kernel_postfix} $kcmdline $linux_extra docache loadsrm=000-core.srm,003-kl.srm nox hwinfo docheck; 34 | initrd (md_initrd); 35 | } 36 | -------------------------------------------------------------------------------- /boot/grubfm/distro/liveslack.sh: -------------------------------------------------------------------------------- 1 | set vmlinuz_img="(loop)/boot/generic"; 2 | set initrd_img="(loop)/boot/initrd.img"; 3 | set kcmdline="load_ramdisk=1 prompt_ramdisk=0 rw printk.time=0"; 4 | linux $vmlinuz_img $kcmdline $linux_extra; 5 | initrd $initrd_img; 6 | -------------------------------------------------------------------------------- /boot/grubfm/distro/netbsd.sh: -------------------------------------------------------------------------------- 1 | set bsd_kernel=(loop)/netbsd; 2 | set bsd_module=(loop)/*/installation/miniroot/miniroot.kmod 3 | terminal_output console; 4 | enable_progress_indicator=1; 5 | echo "Loading kernel"; 6 | knetbsd ${bsd_kernel}; 7 | echo "Loading modules"; 8 | knetbsd_module_elf ${bsd_module}; 9 | echo "Starting NetBSD"; 10 | -------------------------------------------------------------------------------- /boot/grubfm/distro/openbsd.sh: -------------------------------------------------------------------------------- 1 | set bsd_kernel=(loop)/*/*/bsd.rd; 2 | terminal_output console; 3 | enable_progress_indicator=1; 4 | echo "Loading kernel"; 5 | kopenbsd ${bsd_kernel}; 6 | echo "Starting OpenBSD"; 7 | -------------------------------------------------------------------------------- /boot/grubfm/distro/parabola.sh: -------------------------------------------------------------------------------- 1 | export enable_progress_indicator=1; 2 | set vmlinuz_img="(loop)/parabola/boot/x86_64/vmlinuz*"; 3 | set kcmdline="earlymodules=loop"; 4 | 5 | if test -f (loop)/parabola/boot/x86_64/initramfs-linux.img; 6 | then 7 | set initrd_img="(loop)/parabola/boot/x86_64/initramfs-linux.img"; 8 | elif test -f (loop)/parabola/boot/x86_64/parabolaiso.img; 9 | then 10 | set initrd_img="(loop)/parabola/boot/x86_64/parabolaiso.img"; 11 | fi; 12 | 13 | linux $vmlinuz_img $kcmdline $linux_extra; 14 | initrd $initrd_img; 15 | -------------------------------------------------------------------------------- /boot/grubfm/distro/pclinuxos.sh: -------------------------------------------------------------------------------- 1 | set vmlinuz_img="(loop)/isolinux/vmlinuz"; 2 | set initrd_img="(loop)/isolinux/initrd.gz"; 3 | set kcmdline="keyb=us splash=verbose livecd=livecd"; 4 | linux $vmlinuz_img $kcmdline $linux_extra; 5 | initrd $initrd_img; 6 | -------------------------------------------------------------------------------- /boot/grubfm/distro/pentoo.sh: -------------------------------------------------------------------------------- 1 | set vmlinuz_img="(loop)/isolinux/pentoo"; 2 | set initrd_img="(loop)/isolinux/pentoo.xz"; 3 | set kcmdline="root=/dev/ram0 init=/linuxrc nox nodhcp aufs max_loop=256 dokeymap looptype=squashfs loop=/image.squashfs cdroot video=uvesafb:mtrr:3,ywrap,1024x768-16 usbcore.autosuspend=1 console=tty0 net.ifnames=0"; 4 | linux $vmlinuz_img $kcmdline $linux_extra; 5 | initrd $initrd_img; 6 | -------------------------------------------------------------------------------- /boot/grubfm/distro/plop.sh: -------------------------------------------------------------------------------- 1 | set icon="gnu-linux"; 2 | set vmlinuz_img="(loop)/syslinux/kernel/bzImage"; 3 | set initrd_img="(loop)/syslinux/kernel/initramfs.*"; 4 | menuentry "Plop Linux framebuffer mode" --class $icon{ 5 | set kcmdline="vga=0x317"; 6 | linux $vmlinuz_img $kcmdline $linux_extra; 7 | initrd $initrd_img; 8 | } 9 | menuentry "Plop Linux text mode" --class $icon{ 10 | set kcmdline="vga=1 nomodeset"; 11 | linux $vmlinuz_img $kcmdline $linux_extra; 12 | initrd $initrd_img; 13 | } 14 | menuentry "Plop Linux text mode + copy2ram" --class $icon{ 15 | set kcmdline="vga=1 nomodeset copy2ram"; 16 | linux $vmlinuz_img $kcmdline $linux_extra; 17 | initrd $initrd_img; 18 | } 19 | menuentry "Plop Linux framebuffer mode + copy2ram" --class $icon{ 20 | set kcmdline="vga=0x317 nomodeset copy2ram"; 21 | linux $vmlinuz_img $kcmdline $linux_extra; 22 | initrd $initrd_img; 23 | } -------------------------------------------------------------------------------- /boot/grubfm/distro/pmagic.sh: -------------------------------------------------------------------------------- 1 | set icon="pmagic"; 2 | if test -f (loop)/pmagic/bzImage64; 3 | then 4 | set vmlinuz_img="(loop)/pmagic/bzImage64"; 5 | else 6 | set vmlinuz_img="(loop)/pmagic/bzImage"; 7 | fi; 8 | set initrd_img="(loop)/pmagic/initrd.img (loop)/pmagic/fu.img"; 9 | if test -f (loop)/pmagic/m64.img; 10 | then 11 | set initrd_img="${initrd_img} (loop)/pmagic/m64.img"; 12 | else 13 | set initrd_img="${initrd_img} (loop)/pmagic/m.img"; 14 | fi; 15 | set kcmdline="eject=no edd=on vga=normal mem=32G boot=live"; 16 | linux $vmlinuz_img $kcmdline $linux_extra; 17 | initrd $initrd_img; 18 | -------------------------------------------------------------------------------- /boot/grubfm/distro/porteus.sh: -------------------------------------------------------------------------------- 1 | set vmlinuz_img="(loop)/boot/syslinux/vmlinuz"; 2 | set initrd_img="(loop)/boot/syslinux/initrd*"; 3 | if test -f (loop)/porteus/vmlinuz; then 4 | set vmlinuz_img="(loop)/porteus/vmlinuz"; 5 | set initrd_img="(loop)/porteus/initrd*"; 6 | fi 7 | set kcmdline="norootcopy nomagic"; 8 | linux $vmlinuz_img $kcmdline $linux_extra; 9 | if test -f $initrd_img; then 10 | initrd $initrd_img; 11 | fi; 12 | -------------------------------------------------------------------------------- /boot/grubfm/distro/proxmox.sh: -------------------------------------------------------------------------------- 1 | set gfxmode=640x400; 2 | set gfxpayload=1024x768; 3 | set theme=(loop)/boot/grub/pvetheme/theme.txt; 4 | terminal_output gfxterm; 5 | 6 | set kernel_img="(loop)/boot/linux26"; 7 | set initrd_img="(loop)/boot/initrd.img"; 8 | 9 | menuentry "Install Proxmox VE" --class debian { 10 | export enable_progress_indicator=1; 11 | echo "Loading Proxmox VE Installer ..."; 12 | set kcmdline="ro ramdisk_size=16777216 rw quiet splash=silent"; 13 | linux ${kernel_img} ${kcmdline} ${linux_extra}; 14 | echo "Loading initial ramdisk ..."; 15 | mkinitrd -c md_initrd "${initrd_img}"; 16 | echo "Patching initial ramdisk ..."; 17 | mkinitrd -r md_initrd init FUCK; 18 | mkinitrd -a md_initrd "${prefix}/distro/init/proxmox" init; 19 | initrd (md_initrd); 20 | } 21 | 22 | menuentry "Install Proxmox VE (Debug mode)" --class debian { 23 | export enable_progress_indicator=1; 24 | echo "Loading Proxmox VE Installer ..."; 25 | set kcmdline="ro ramdisk_size=16777216 rw quiet splash=verbose proxdebug"; 26 | linux ${kernel_img} ${kcmdline} ${linux_extra}; 27 | echo "Loading initial ramdisk ..."; 28 | mkinitrd -c md_initrd "${initrd_img}"; 29 | echo "Loading Proxmox ISO"; 30 | mkinitrd -r md_initrd init FUCK; 31 | mkinitrd -a md_initrd "${prefix}/distro/init/proxmox" init; 32 | initrd (md_initrd); 33 | } 34 | -------------------------------------------------------------------------------- /boot/grubfm/distro/sabayon.sh: -------------------------------------------------------------------------------- 1 | set vmlinuz_img="(loop)/boot/sabayon"; 2 | set initrd_img="(loop)/boot/sabayon.igz"; 3 | set kcmdline="overlayfs cdroot splash --"; 4 | linux $vmlinuz_img $kcmdline $linux_extra; 5 | initrd $initrd_img; 6 | -------------------------------------------------------------------------------- /boot/grubfm/distro/siduction.sh: -------------------------------------------------------------------------------- 1 | set vmlinuz_img="(loop)/boot/vmlinuz*"; 2 | set initrd_img="(loop)/boot/initrd.img*"; 3 | set kcmdline="boot=fll fromhd systemd.show_status=1"; 4 | linux $vmlinuz_img $kcmdline $linux_extra; 5 | initrd $initrd_img; 6 | -------------------------------------------------------------------------------- /boot/grubfm/distro/slax.sh: -------------------------------------------------------------------------------- 1 | set vmlinuz_img="(loop)/slax/boot/vmlinuz"; 2 | set initrd_img="(loop)/slax/boot/initr*"; 3 | if test -f (loop)/boot/vmlinuz; then 4 | vmlinuz_img="(loop)/boot/vmlinuz"; 5 | initrd_img="(loop)/boot/initr*"; 6 | fi 7 | set kcmdline="load_ramdisk=1 prompt_ramdisk=0 rw printk.time=0 slax.flags=xmode"; 8 | linux $vmlinuz_img $kcmdline $linux_extra; 9 | initrd $initrd_img; 10 | -------------------------------------------------------------------------------- /boot/grubfm/distro/smartos.sh: -------------------------------------------------------------------------------- 1 | set multiboot_kernel=/platform/i86pc/kernel/amd64/unix; 2 | set multiboot_module=/platform/i86pc/amd64/boot_archive; 3 | enable_progress_indicator=1; 4 | echo "Loading multiboot kernel"; 5 | multiboot (loop)${multiboot_kernel} ${multiboot_kernel} -B smartos=true; 6 | echo "Loading multiboot modules"; 7 | module (loop)${multiboot_module} ${multiboot_module} type=rootfs name=ramdisk 8 | echo "Starting SmartOS"; 9 | -------------------------------------------------------------------------------- /boot/grubfm/distro/suse64.sh: -------------------------------------------------------------------------------- 1 | set icon="opensuse"; 2 | set vmlinuz_img="(loop)/boot/*/loader/linux"; 3 | set initrd_img="(loop)/boot/*/loader/initrd"; 4 | 5 | if [ -d (loop)/LiveOS ]; 6 | then 7 | set kcmdline="rd.live.image splash=silent"; 8 | fi; 9 | 10 | menuentry $"openSUSE Live" --class $icon{ 11 | linux $vmlinuz_img $kcmdline $linux_extra; 12 | initrd $initrd_img; 13 | } 14 | menuentry $"openSUSE Live Failsafe" --class $icon{ 15 | linux $vmlinuz_img $kcmdline ide=nodma apm=off noresume edd=off nomodeset 3 $linux_extra; 16 | initrd $initrd_img; 17 | } 18 | -------------------------------------------------------------------------------- /boot/grubfm/distro/sysrcd.sh: -------------------------------------------------------------------------------- 1 | set icon="gentoo" 2 | set kcmdline="scandelay=1"; 3 | set initrd_img="(loop)/isolinux/initram.igz" 4 | menuentry $"Boot System Rescue CD From ISO (x86_64)" --class $icon{ 5 | linux (loop)/isolinux/rescue64 $kcmdline $linux_extra; 6 | initrd $initrd_img; 7 | } 8 | menuentry $"Boot System Rescue CD From ISO (i686)" --class $icon{ 9 | linux (loop)/isolinux/rescue32 $kcmdline $linux_extra; 10 | initrd $initrd_img; 11 | } -------------------------------------------------------------------------------- /boot/grubfm/distro/sysresccd.sh: -------------------------------------------------------------------------------- 1 | set icon="archlinux" 2 | set kcmdline="archisobasedir=sysresccd"; 3 | set vmlinuz_img="(loop)/sysresccd/boot/x86_64/vmlinuz"; 4 | set initrd_img="(loop)/sysresccd/boot/x86_64/sysresccd.img"; 5 | 6 | if test -f (loop)/sysresccd/boot/intel_ucode.img; 7 | then 8 | set initrd_img="${initrd_img} (loop)/sysresccd/boot/intel_ucode.img"; 9 | fi; 10 | if test -f (loop)/sysresccd/boot/amd_ucode.img; 11 | then 12 | set initrd_img="${initrd_img} (loop)/sysresccd/boot/amd_ucode.img"; 13 | fi; 14 | 15 | menuentry "Boot SystemRescueCd using default options" { 16 | export enable_progress_indicator=1; 17 | linux $vmlinuz_img $kcmdline $linux_extra; 18 | initrd $initrd_img; 19 | } 20 | 21 | menuentry "Boot SystemRescueCd and copy system to RAM" { 22 | export enable_progress_indicator=1; 23 | linux $vmlinuz_img $kcmdline $linux_extra copytoram; 24 | initrd $initrd_img; 25 | } 26 | -------------------------------------------------------------------------------- /boot/grubfm/distro/tinycore.sh: -------------------------------------------------------------------------------- 1 | set vmlinuz_img="(loop)/boot/vmlinuz"; 2 | set initrd_img="(loop)/boot/core.gz"; 3 | if test -f (loop)/boot/vmlinuz64; then 4 | vmlinuz_img="(loop)/boot/vmlinuz64"; 5 | initrd_img="(loop)/boot/corepure64.gz"; 6 | fi 7 | set kcmdline="loglevel=3 cde vga=791"; 8 | linux $vmlinuz_img $kcmdline $linux_extra; 9 | initrd $initrd_img; 10 | -------------------------------------------------------------------------------- /boot/grubfm/distro/ubuntu.sh: -------------------------------------------------------------------------------- 1 | set icon="ubuntu"; 2 | set vmlinuz_img="(loop)/casper/vmlinuz*"; 3 | set initrd_img="(loop)/casper/initrd*"; 4 | function CHSLocale { 5 | echo "是否使用简体中文?按[Y]选择简体中文,按其他键使用默认语言。"; 6 | getkey key; 7 | if [ "$key" = "121" ]; then 8 | kcmdline="${kcmdline} locale=zh_CN.UTF-8"; 9 | fi; 10 | } 11 | menuentry $"Ubuntu Live" --class $icon{ 12 | set kcmdline="boot=casper noprompt noeject"; 13 | if [ "${lang}" = "zh_CN" ]; then 14 | CHSLocale; 15 | fi; 16 | linux $vmlinuz_img $kcmdline $linux_extra; 17 | initrd $initrd_img; 18 | } 19 | menuentry $"Ubuntu Live (persistent)" --class $icon{ 20 | set kcmdline="boot=casper noprompt noeject persistent"; 21 | if [ "${lang}" = "zh_CN" ]; then 22 | CHSLocale; 23 | fi; 24 | linux $vmlinuz_img $kcmdline $linux_extra; 25 | initrd $initrd_img; 26 | } 27 | -------------------------------------------------------------------------------- /boot/grubfm/distro/veket.sh: -------------------------------------------------------------------------------- 1 | unset theme; 2 | background_image (loop)/splash.png 3 | 4 | set kernel_img="(loop)/vmlinuz"; 5 | set initrd_img="(loop)/initrd.gz"; 6 | 7 | menuentry "Start veket 20.0" { 8 | export enable_progress_indicator=1; 9 | echo "Loading Veket kernel ..."; 10 | set kcmdline="pfix=fsck pmedia=usbhd"; 11 | linux ${kernel_img} ${kcmdline} ${linux_extra}; 12 | echo "Loading initial ramdisk ..."; 13 | mkinitrd -c md_initrd "${initrd_img}"; 14 | echo "Patching initial ramdisk ..."; 15 | mkinitrd -r md_initrd init FUCK; 16 | mkinitrd -a md_initrd "${prefix}/distro/init/veket" init; 17 | initrd (md_initrd); 18 | } 19 | 20 | menuentry "Start veket 20.0 - Don't copy SFS files to RAM" { 21 | export enable_progress_indicator=1; 22 | echo "Loading Veket kernel ..."; 23 | set kcmdline="pfix=nocopy,fsck pmedia=usbhd"; 24 | linux ${kernel_img} ${kcmdline} ${linux_extra}; 25 | echo "Loading initial ramdisk ..."; 26 | mkinitrd -c md_initrd "${initrd_img}"; 27 | echo "Patching initial ramdisk ..."; 28 | mkinitrd -r md_initrd init FUCK; 29 | mkinitrd -a md_initrd "${prefix}/distro/init/veket" init; 30 | initrd (md_initrd); 31 | } 32 | 33 | menuentry "Start veket 20.0 - RAM only" { 34 | export enable_progress_indicator=1; 35 | echo "Loading Veket kernel ..."; 36 | set kcmdline="pfix=ram,fsck pmedia=usbhd"; 37 | linux ${kernel_img} ${kcmdline} ${linux_extra}; 38 | echo "Loading initial ramdisk ..."; 39 | mkinitrd -c md_initrd "${initrd_img}"; 40 | echo "Patching initial ramdisk ..."; 41 | mkinitrd -r md_initrd init FUCK; 42 | mkinitrd -a md_initrd "${prefix}/distro/init/veket" init; 43 | initrd (md_initrd); 44 | } 45 | 46 | menuentry "Start veket 20.0 - No X" { 47 | export enable_progress_indicator=1; 48 | echo "Loading Veket kernel ..."; 49 | set kcmdline="pfix=nox,fsck pmedia=usbhd"; 50 | linux ${kernel_img} ${kcmdline} ${linux_extra}; 51 | echo "Loading initial ramdisk ..."; 52 | mkinitrd -c md_initrd "${initrd_img}"; 53 | echo "Patching initial ramdisk ..."; 54 | mkinitrd -r md_initrd init FUCK; 55 | mkinitrd -a md_initrd "${prefix}/distro/init/veket" init; 56 | initrd (md_initrd); 57 | } 58 | 59 | menuentry "Start veket 20.0 - No KMS (Kernel mode setting)" { 60 | export enable_progress_indicator=1; 61 | echo "Loading Veket kernel ..."; 62 | set kcmdline="nomodeset pfix=fsck pmedia=usbhd"; 63 | linux ${kernel_img} ${kcmdline} ${linux_extra}; 64 | echo "Loading initial ramdisk ..."; 65 | mkinitrd -c md_initrd "${initrd_img}"; 66 | echo "Patching initial ramdisk ..."; 67 | mkinitrd -r md_initrd init FUCK; 68 | mkinitrd -a md_initrd "${prefix}/distro/init/veket" init; 69 | initrd (md_initrd); 70 | } 71 | 72 | menuentry "Start veket 20.0 - Ram Disk SHell" { 73 | export enable_progress_indicator=1; 74 | echo "Loading Veket kernel ..."; 75 | set kcmdline="pfix=rdsh pmedia=usbhd"; 76 | linux ${kernel_img} ${kcmdline} ${linux_extra}; 77 | echo "Loading initial ramdisk ..."; 78 | mkinitrd -c md_initrd "${initrd_img}"; 79 | echo "Patching initial ramdisk ..."; 80 | mkinitrd -r md_initrd init FUCK; 81 | mkinitrd -a md_initrd "${prefix}/distro/init/veket" init; 82 | initrd (md_initrd); 83 | } 84 | -------------------------------------------------------------------------------- /boot/grubfm/distro/wifislax.sh: -------------------------------------------------------------------------------- 1 | set vmlinuz_img="(loop)/boot/vmlinuz"; 2 | set initrd_img="(loop)/boot/initrd*"; 3 | if test -d (loop)/wifislax64; then 4 | set kcmdline="kbd=us tz=Asia/Shanghai locale=en_US.utf8 rw"; 5 | linux $vmlinuz_img $kcmdline $linux_extra; 6 | initrd $initrd_img; 7 | elif test -d (loop)/wifislax; then 8 | if test -f (loop)/wifislax/vmlinuz*; then 9 | set vmlinuz_img="(loop)/wifislax/vmlinuz*"; 10 | set initrd_img="(loop)/wifislax/initrd*"; 11 | fi; 12 | set kcmdline="noload=006-Xfce load=English"; 13 | linux $vmlinuz_img $kcmdline $linux_extra; 14 | initrd $initrd_img; 15 | elif test -d (loop)/wifiway; then 16 | set kcmdline=""; 17 | if [ "$grub_platform" != "efi" ]; then 18 | kcmdline="${kcmdline} autoexec=telinit~4 vga=788 noload=efi"; 19 | fi; 20 | linux $vmlinuz_img $kcmdline $linux_extra; 21 | initrd $initrd_img; 22 | fi; 23 | -------------------------------------------------------------------------------- /boot/grubfm/distro/win.sh: -------------------------------------------------------------------------------- 1 | source ${prefix}/func.sh; 2 | 3 | if [ -z "${grubfm_startbat}" -o ! -f "${grubfm_startbat}" ]; 4 | then 5 | set grubfm_startbat="(install)/start.bat"; 6 | fi; 7 | 8 | function win_isoboot { 9 | set lang=en_US; 10 | terminal_output console; 11 | set installiso="${grubfm_path}"; 12 | tr --set=installiso "/" "\\"; 13 | loopback -m envblk ${prefix}/null.cpio; 14 | save_env -s -f (envblk)/null.cfg installiso; 15 | cat (envblk)/null.cfg; 16 | loopback wimboot ${prefix}/wimboot.xz; 17 | loopback install ${prefix}/install.xz; 18 | swap_hd01; 19 | if [ -z "${2}" ]; 20 | then 21 | wimboot --highest=no --testmode=no \ 22 | @:bootmgfw.efi:(wimboot)/bootmgfw.efi \ 23 | @:null.cfg:(envblk)/null.cfg \ 24 | @:mount_x64.exe:(install)/mount_x64.exe \ 25 | @:mount_x86.exe:(install)/mount_x86.exe \ 26 | @:start.bat:${grubfm_startbat} \ 27 | @:winpeshl.ini:(install)/winpeshl.ini \ 28 | @:boot.wim:"${1}"; 29 | else 30 | wimboot --highest=no --testmode=no \ 31 | @:bootmgfw.efi:(wimboot)/bootmgfw.efi \ 32 | @:null.cfg:(envblk)/null.cfg \ 33 | @:mount_x64.exe:(install)/mount_x64.exe \ 34 | @:mount_x86.exe:(install)/mount_x86.exe \ 35 | @:start.bat:${grubfm_startbat} \ 36 | @:winpeshl.ini:(install)/winpeshl.ini \ 37 | @:autounattend.xml:"${2}" \ 38 | @:boot.wim:"${1}"; 39 | fi; 40 | } 41 | 42 | function xml_list { 43 | # autounattend.xml 44 | if [ -f "(${grubfm_device})${grubfm_dir}"*.xml ]; 45 | then 46 | clear_menu; 47 | menuentry $"Install Windows without autounattend.xml" "${1}" --class nt6 { 48 | win_isoboot "${2}"; 49 | } 50 | for xml in "(${grubfm_device})${grubfm_dir}"*.xml; 51 | do 52 | regexp --set=1:xml_name '^.*/(.*)$' "${xml}"; 53 | menuentry $"Load ${xml_name}" "${1}" "${xml}" --class nt6 { 54 | win_isoboot "${2}" "${3}"; 55 | } 56 | done; 57 | source ${prefix}/global.sh; 58 | else 59 | win_isoboot "${1}"; 60 | fi; 61 | } 62 | 63 | if test -f (loop)/sources/boot.wim; then 64 | xml_list "(loop)/sources/boot.wim"; 65 | else 66 | if test -f (loop)/x64/sources/boot.wim; then 67 | menuentry $"Install Windows (x64)" --class nt6 { 68 | xml_list "(loop)/x64/sources/boot.wim"; 69 | } 70 | fi; 71 | if test -f (loop)/x86/sources/boot.wim; then 72 | menuentry $"Install Windows (x86)" --class nt6 { 73 | xml_list "(loop)/x86/sources/boot.wim"; 74 | } 75 | fi; 76 | source ${prefix}/global.sh; 77 | fi; 78 | -------------------------------------------------------------------------------- /boot/grubfm/distro/winxp.sh: -------------------------------------------------------------------------------- 1 | source ${prefix}/func.sh; 2 | to_g4d_path "${grubfm_file}"; 3 | set g4d_cmd="map --mem (rd)+1 (fd0);map --mem (rd)+1 (fd1);map --hook;configfile (fd0)/menu.lst"; 4 | 5 | menuentry $"Install Windows XP - STEP 1" --class nt5 { 6 | to_g4d_menu "set file=${g4d_path}\x0amap %file% (0xff) || map --mem %file% (0xff)\x0amap (hd0) (hd1)\x0amap (hd1) (hd0)\x0amap --hook\x0achainloader (0xff)\x0aboot"; 7 | linux ${prefix}/grub.exe --config-file=${g4d_cmd}; 8 | initrd (rd); 9 | } 10 | 11 | menuentry $"Install Windows XP - STEP 2" --class nt5 { 12 | to_g4d_menu "set file=${g4d_path}\x0amap %file% (0xff) || map --mem %file% (0xff)\x0amap (hd0) (hd1)\x0amap (hd1) (hd0)\x0amap --hook\x0arootnoverify (hd0)\x0achainloader +1\x0aboot"; 13 | linux ${prefix}/grub.exe --config-file=${g4d_cmd}; 14 | initrd (rd); 15 | } 16 | -------------------------------------------------------------------------------- /boot/grubfm/fonts/unicode.xz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1ive/grub2-filemanager/918524dc18f08eba1ade421282b54a7b2787fa15/boot/grubfm/fonts/unicode.xz -------------------------------------------------------------------------------- /boot/grubfm/func.sh: -------------------------------------------------------------------------------- 1 | # Grub2-FileManager 2 | # Copyright (C) 2020 A1ive. 3 | # 4 | # Grub2-FileManager is free software: you can redistribute it and/or modify 5 | # it under the terms of the GNU General Public License as published by 6 | # the Free Software Foundation, either version 3 of the License, or 7 | # (at your option) any later version. 8 | # 9 | # Grub2-FileManager is distributed in the hope that it will be useful, 10 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | # GNU General Public License for more details. 13 | # 14 | # You should have received a copy of the GNU General Public License 15 | # along with Grub2-FileManager. If not, see . 16 | 17 | function to_g4d_path { 18 | set g4d_path="${1}"; 19 | lua ${prefix}/g4d_path.lua; 20 | } 21 | 22 | function to_g4d_menu { 23 | set g4d_menu="${1}"; 24 | loopback -d rd; 25 | loopback -m rd ${prefix}/initrd.img.xz; 26 | lua ${prefix}/g4d_menu.lua; 27 | } 28 | 29 | function auto_swap { 30 | if regexp '^hd[0-9a-zA-Z,]+$' ${grubfm_disk}; 31 | then 32 | regexp -s devnum '^hd([0-9]+).*$' ${grubfm_disk}; 33 | if test "devnum" != "0"; 34 | then 35 | map -s (hd0) (${grubfm_disk}); 36 | fi; 37 | fi; 38 | } 39 | 40 | function swap_hd01 { 41 | if [ "$grub_platform" != "efi" ]; 42 | then 43 | if [ "${bootdev}" = "hd0" ]; 44 | then 45 | map -s (hd0) (hd1); 46 | fi; 47 | fi; 48 | } 49 | 50 | unset grubfm_path; 51 | regexp --set=1:grubfm_path '(/.*)$' "${grubfm_file}"; 52 | export grubfm_path; 53 | unset grubfm_dir; 54 | regexp --set=1:grubfm_dir '^(.*/).*$' "${grubfm_path}"; 55 | export grubfm_dir; 56 | unset grubfm_device; 57 | regexp --set=1:grubfm_device '^\(([0-9a-zA-Z,]+)\)/.*' "${grubfm_file}"; 58 | export grubfm_device; 59 | unset grubfm_disk; 60 | regexp --set=1:grubfm_disk '([chf]d[0-9]+)[0-9,]*' "${grubfm_device}"; 61 | export grubfm_disk; 62 | unset grubfm_name; 63 | regexp --set=1:grubfm_name '^.*/(.*)$' "${grubfm_file}"; 64 | export grubfm_name; 65 | unset grubfm_filename; 66 | regexp --set=1:grubfm_filename '^(.*)\.(.*)$' "${grubfm_name}"; 67 | export grubfm_filename; 68 | unset grubfm_fileext; 69 | regexp --set=1:grubfm_fileext '^.*\.(.*)$' "${grubfm_name}"; 70 | export grubfm_fileext; 71 | -------------------------------------------------------------------------------- /boot/grubfm/g4d_menu.lua: -------------------------------------------------------------------------------- 1 | #!lua 2 | -- Grub2-FileManager 3 | -- Copyright (C) 2020 A1ive. 4 | -- 5 | -- Grub2-FileManager is free software: you can redistribute it and/or modify 6 | -- it under the terms of the GNU General Public License as published by 7 | -- the Free Software Foundation, either version 3 of the License, or 8 | -- (at your option) any later version. 9 | -- 10 | -- Grub2-FileManager is distributed in the hope that it will be useful, 11 | -- but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | -- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | -- GNU General Public License for more details. 14 | -- 15 | -- You should have received a copy of the GNU General Public License 16 | -- along with Grub2-FileManager. If not, see . 17 | 18 | menu = grub.getenv ("g4d_menu") 19 | if (menu == nil) then 20 | menu = "" 21 | end 22 | 23 | fat.umount (9) 24 | fat.mount ("rd", 9) 25 | fp = fat.open ("9:/menu.lst", 0x0a) 26 | fat.write (fp, menu) 27 | fat.close (fp) 28 | fat.umount (9) 29 | -------------------------------------------------------------------------------- /boot/grubfm/g4d_path.lua: -------------------------------------------------------------------------------- 1 | #!lua 2 | -- Grub2-FileManager 3 | -- Copyright (C) 2018, 2019, 2020 A1ive. 4 | -- 5 | -- Grub2-FileManager is free software: you can redistribute it and/or modify 6 | -- it under the terms of the GNU General Public License as published by 7 | -- the Free Software Foundation, either version 3 of the License, or 8 | -- (at your option) any later version. 9 | -- 10 | -- Grub2-FileManager is distributed in the hope that it will be useful, 11 | -- but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | -- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | -- GNU General Public License for more details. 14 | -- 15 | -- You should have received a copy of the GNU General Public License 16 | -- along with Grub2-FileManager. If not, see . 17 | 18 | file = grub.getenv ("g4d_path") 19 | if (file == nil) then 20 | file = "" 21 | end 22 | 23 | device = string.match (file, "^%(([%w,]+)%)/.*$") 24 | if string.match (device, "^hd[%d]+,[%w]+") ~= nil then 25 | -- (hdx,y) 26 | devnum = string.match (device, "^hd%d+,%a*(%d+)$") 27 | devnum = devnum - 1 28 | g4d_file = "(" .. string.match (device, "^(hd%d+,)%a*%d+$") .. devnum .. ")" 29 | .. string.match (file, "^%([%w,]+%)(.*)$") 30 | elseif string.match (device, "^[hcf]d[%d]*") ~= nil then 31 | -- (hdx) (cdx) (fdx) (cd) 32 | g4d_file = file 33 | else 34 | -- (loop) (memdisk) (proc) etc. 35 | g4d_file = "" 36 | end 37 | 38 | g4d_file = string.gsub (g4d_file, " ", "\\ ") 39 | grub.exportenv ("g4d_path", g4d_file) 40 | -------------------------------------------------------------------------------- /boot/grubfm/global.sh: -------------------------------------------------------------------------------- 1 | # Grub2-FileManager 2 | # Copyright (C) 2020 A1ive. 3 | # 4 | # Grub2-FileManager is free software: you can redistribute it and/or modify 5 | # it under the terms of the GNU General Public License as published by 6 | # the Free Software Foundation, either version 3 of the License, or 7 | # (at your option) any later version. 8 | # 9 | # Grub2-FileManager is distributed in the hope that it will be useful, 10 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | # GNU General Public License for more details. 13 | # 14 | # You should have received a copy of the GNU General Public License 15 | # along with Grub2-FileManager. If not, see . 16 | 17 | if [ -f "${theme_fm}" ]; 18 | then 19 | export theme=${theme_fm}; 20 | fi; 21 | 22 | hiddenentry " " --hotkey f1 { 23 | configfile ${prefix}/hwinfo.sh; 24 | } 25 | 26 | hiddenentry " " --hotkey f2 { 27 | if [ -n "${grubfm_current_path}" ]; 28 | then 29 | grubfm "${grubfm_current_path}"; 30 | else 31 | grubfm; 32 | fi; 33 | } 34 | 35 | hiddenentry " " --hotkey f3 { 36 | configfile ${prefix}/osdetect.sh; 37 | } 38 | 39 | hiddenentry " " --hotkey f4 { 40 | configfile ${prefix}/settings.sh; 41 | } 42 | 43 | hiddenentry " " --hotkey f5 { 44 | configfile ${prefix}/util.sh; 45 | } 46 | 47 | hiddenentry " " --hotkey f6 { 48 | configfile ${prefix}/power.sh; 49 | } 50 | 51 | if [ -n "${grubfm_current_path}" ]; 52 | then 53 | hiddenentry " " --hotkey 0x02000066 { 54 | if [ -f "(${user})/boot/grubfm/search.sh" ]; 55 | then 56 | configfile (${user})/boot/grubfm/search.sh; 57 | else 58 | configfile $prefix/search.sh; 59 | fi; 60 | } 61 | fi; 62 | -------------------------------------------------------------------------------- /boot/grubfm/insmod.lst: -------------------------------------------------------------------------------- 1 | all_video 2 | -------------------------------------------------------------------------------- /boot/grubfm/kbd.lua: -------------------------------------------------------------------------------- 1 | #!lua 2 | -- Grub2-FileManager 3 | -- Copyright (C) 2020 A1ive. 4 | -- 5 | -- Grub2-FileManager is free software: you can redistribute it and/or modify 6 | -- it under the terms of the GNU General Public License as published by 7 | -- the Free Software Foundation, either version 3 of the License, or 8 | -- (at your option) any later version. 9 | -- 10 | -- Grub2-FileManager is distributed in the hope that it will be useful, 11 | -- but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | -- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | -- GNU General Public License for more details. 14 | -- 15 | -- You should have received a copy of the GNU General Public License 16 | -- along with Grub2-FileManager. If not, see . 17 | 18 | kbd_dir = "(memdisk)/boot/grubfm/kbd" 19 | 20 | function enum_kbd_file (name) 21 | local item = kbd_dir .. "/" .. name 22 | local kbd_name = string.match (name, "KBD_(.*)%.cfg$") 23 | if grub.file_exist (item) and kbd_name ~= nil then 24 | i = i + 1 25 | f_table[i] = kbd_name 26 | end 27 | end 28 | 29 | grub.clear_menu () 30 | f_table = {} 31 | i = 0 32 | grub.enum_file (enum_kbd_file, kbd_dir .. "/") 33 | table.sort (f_table) 34 | 35 | command = "setkey -r; setkey -d; configfile ${prefix}/settings.sh;" 36 | grub.add_icon_menu ("gkb", command, "QWERTY_USA") 37 | 38 | for j, name in ipairs(f_table) do 39 | command = "source " .. kbd_dir .. "/KBD_" .. name .. ".cfg; configfile ${prefix}/settings.sh;" 40 | grub.add_icon_menu ("gkb", command, name) 41 | end 42 | 43 | grub.script ("source ${prefix}/global.sh") 44 | -------------------------------------------------------------------------------- /boot/grubfm/kbd/KBD_AZERTY.cfg: -------------------------------------------------------------------------------- 1 | # set AZERTY keyboard generic 2 | #clear all settings 3 | setkey -r 4 | #setkey [new character] [QWERTY-USA character] 5 | setkey a q 6 | setkey A Q 7 | setkey z w 8 | setkey Z W 9 | setkey q a 10 | setkey Q A 11 | setkey m semicolon 12 | setkey M colon 13 | setkey w z 14 | setkey W Z 15 | setkey comma m 16 | setkey question M 17 | setkey semicolon comma 18 | setkey period less 19 | setkey colon period 20 | setkey slash greater 21 | setkey exclam slash 22 | setkey dollar bracketright 23 | setkey asterisk backslash 24 | setkey percent doublequote 25 | setkey ampersand 1 26 | setkey 1 exclam 27 | setkey tilde 2 28 | setkey 2 at 29 | setkey doublequote 3 30 | setkey 3 numbersign 31 | setkey quote 4 32 | setkey 4 dollar 33 | setkey parenleft 5 34 | setkey 5 percent 35 | setkey minus 6 36 | setkey 6 caret 37 | setkey backquote 7 38 | setkey 7 ampersand 39 | setkey underscore 8 40 | setkey 8 asterisk 41 | setkey caret 9 42 | setkey 9 parenleft 43 | setkey at 0 44 | setkey 0 parenright 45 | setkey parenright minus 46 | setkey less backquote 47 | setkey greater tilde 48 | setkey numbersign braceright 49 | setkey backslash question 50 | setkey bracketright braceleft 51 | setkey braceleft quote 52 | setkey braceright underscore 53 | 54 | setkey -e 55 | if [ "${quiet}" = "" ]; then 56 | echo AZERTY KBD 57 | fi 58 | 59 | #key names 60 | #escape, exclam (!), at (@), numbersign (#), dollar ($), parenright ()), caret (^), ampersand (&), asterisk (*), plus (+), percent (%) 61 | #minus (-), underscore (_), equal (=), parenleft [(], backspace (backspace), tab (Tab), bracketleft ([), braceleft ({), bracketright (]) 62 | #braceright (}), enter (carriage return), semicolon (;), colon (:), quote (') , doublequote ("), slash (/), backquote (`), tilde (~) 63 | #backslash (\), bar (|), comma (,), less (<) period (.) , greater (>), question (?) 64 | #space, home, uparrow, pageup, leftarrow, center, rightarrow, end, downarrow, pagedown, insert, delete, F1-F12, shiftF1-shiftF12, ctrlF1-ctrlF12 65 | #Use prefix A for Alt+, e.g. Aequal, Aq, Aslash, A0, etc. -------------------------------------------------------------------------------- /boot/grubfm/kbd/KBD_CZECH_QWERTY.cfg: -------------------------------------------------------------------------------- 1 | #QWERTY CZECH 2 | #clear all settings 3 | setkey -r 4 | #setkey [new character] [QWERTY-USA character] 5 | setkey semicolon backquote 6 | setkey plus 1 7 | setkey equal minus 8 | setkey quote equal 9 | setkey parenright bracketright 10 | setkey doublequote backslash 11 | setkey minus slash 12 | #shift 13 | setkey 1 exclam 14 | setkey 2 at 15 | setkey 3 numbersign 16 | setkey 4 dollar 17 | setkey 5 percent 18 | setkey 6 caret 19 | setkey 7 ampersand 20 | setkey 8 asterisk 21 | setkey 9 parenleft 22 | setkey 0 parenright 23 | setkey percent underscore 24 | setkey slash braceleft 25 | setkey parenleft braceright 26 | setkey doublequote colon 27 | setkey exclam doublequote 28 | setkey quote bar 29 | setkey question less 30 | setkey colon greater 31 | setkey underscore question 32 | #Alt 33 | setkey backquote Abackquote 34 | setkey exclam A1 35 | setkey at A2 36 | setkey numbersign A3 37 | setkey dollar A4 38 | setkey percent A5 39 | setkey caret A6 40 | setkey ampersand A7 41 | setkey asterisk A8 42 | setkey parenleft A9 43 | setkey parenright A0 44 | setkey minus Aminus 45 | setkey equal Aequal 46 | setkey bracketleft Abracketleft 47 | setkey bracketright Abracketright 48 | setkey semicolon Asemicolon 49 | setkey backslash Abackslash 50 | setkey less Acomma 51 | setkey greater Aperiod 52 | setkey slash Aslash 53 | setkey tilde Atilde 54 | setkey underscore Aunderscore 55 | setkey plus Aplus 56 | setkey braceleft Abraceleft 57 | setkey braceright Abraceright 58 | setkey caret Adoublequote 59 | setkey colon Acolon 60 | setkey question Aquestion 61 | 62 | setkey bar Abar 63 | 64 | setkey -e 65 | if [ "${quiet}" = "" ]; then 66 | echo CZECH QWERTY KBD 67 | fi 68 | 69 | #key names 70 | #escape, exclam (!), at (@), numbersign (#), dollar ($), parenright ()), caret (^), ampersand (&), asterisk (*), plus (+), percent (%) 71 | #minus (-), underscore (_), equal (=), parenleft [(], backspace (backspace), tab (Tab), bracketleft ([), braceleft ({), bracketright (]) 72 | #braceright (}), enter (carriage return), semicolon (;), colon (:), quote (') , doublequote ("), slash (/), backquote (`), tilde (~) 73 | #backslash (\), bar (|), comma (,), less (<) period (.) , greater (>), question (?) 74 | #space, home, uparrow, pageup, leftarrow, center, rightarrow, end, downarrow, pagedown, insert, delete, F1-F12, shiftF1-shiftF12, ctrlF1-ctrlF12 75 | #Use prefix A for Alt+, e.g. Aequal, Aq, Aslash, A0, etc. -------------------------------------------------------------------------------- /boot/grubfm/kbd/KBD_CZECH_QWERTZ.cfg: -------------------------------------------------------------------------------- 1 | #QWERTZ CZECH 2 | #clear all settings 3 | setkey -r 4 | #setkey [new character] [QWERTY-USA character] 5 | setkey y z 6 | setkey z y 7 | setkey Y Z 8 | setkey Z Y 9 | setkey semicolon backquote 10 | setkey plus 1 11 | setkey equal minus 12 | setkey quote equal 13 | setkey parenright bracketright 14 | setkey doublequote backslash 15 | setkey minus slash 16 | #shift 17 | setkey 1 exclam 18 | setkey 2 at 19 | setkey 3 numbersign 20 | setkey 4 dollar 21 | setkey 5 percent 22 | setkey 6 caret 23 | setkey 7 ampersand 24 | setkey 8 asterisk 25 | setkey 9 parenleft 26 | setkey 0 parenright 27 | setkey percent underscore 28 | setkey slash braceleft 29 | setkey parenleft braceright 30 | setkey doublequote colon 31 | setkey exclam doublequote 32 | setkey quote bar 33 | setkey question less 34 | setkey colon greater 35 | setkey underscore question 36 | #Alt 37 | setkey tilde A1 38 | setkey caret A3 39 | setkey backslash Aq 40 | setkey bar Aw 41 | setkey bracketleft Af 42 | setkey bracketright Ag 43 | setkey dollar Asemicolon 44 | setkey numbersign Ax 45 | setkey ampersand Ac 46 | setkey at Av 47 | setkey braceleft Ab 48 | setkey braceright An 49 | setkey less Acomma 50 | setkey greater Aperiod 51 | setkey asterisk Aslash 52 | 53 | setkey -e 54 | if [ "${quiet}" = "" ]; then 55 | echo CZECH QWERTZ KBD 56 | fi 57 | 58 | #key names 59 | #escape, exclam (!), at (@), numbersign (#), dollar ($), parenright ()), caret (^), ampersand (&), asterisk (*), plus (+), percent (%) 60 | #minus (-), underscore (_), equal (=), parenleft [(], backspace (backspace), tab (Tab), bracketleft ([), braceleft ({), bracketright (]) 61 | #braceright (}), enter (carriage return), semicolon (;), colon (:), quote (') , doublequote ("), slash (/), backquote (`), tilde (~) 62 | #backslash (\), bar (|), comma (,), less (<) period (.) , greater (>), question (?) 63 | #space, home, uparrow, pageup, leftarrow, center, rightarrow, end, downarrow, pagedown, insert, delete, F1-F12, shiftF1-shiftF12, ctrlF1-ctrlF12 64 | #Use prefix A for Alt+, e.g. Aequal, Aq, Aslash, A0, etc. -------------------------------------------------------------------------------- /boot/grubfm/kbd/KBD_DANISH.cfg: -------------------------------------------------------------------------------- 1 | #DANISH 2 | #clear all settings 3 | setkey -r 4 | #setkey [new character] [QWERTY-USA character] 5 | setkey plus minus 6 | setkey quote equal 7 | setkey doublequote bracketright 8 | setkey quote backslash 9 | setkey minus slash 10 | 11 | #shifted 12 | setkey doublequote at 13 | setkey ampersand caret 14 | setkey slash ampersand 15 | setkey parenleft asterisk 16 | setkey parenright parenleft 17 | setkey equal parenright 18 | setkey question underscore 19 | setkey caret braceright 20 | setkey asterisk bar 21 | setkey backquote plus 22 | setkey semicolon less 23 | setkey colon greater 24 | setkey underscore question 25 | 26 | #use top-left key for oem102 codes 27 | setkey bar Atilde 28 | setkey backslash Abackquote 29 | setkey greater tilde 30 | 31 | #AltGr 32 | setkey at A2 33 | setkey dollar A4 34 | setkey braceleft A7 35 | setkey bracketleft A8 36 | setkey bracketright A9 37 | setkey braceright A0 38 | setkey backslash Aminus 39 | 40 | setkey less quote 41 | setkey greater doublequote 42 | setkey tilde Abracketright 43 | 44 | setkey -e 45 | if [ "${quiet}" = "" ]; then 46 | echo "DANISH KBD a=< A=>" 47 | sleep 2 48 | fi 49 | 50 | #key names 51 | #escape, exclam (!), at (@), numbersign (#), dollar ($), parenright ()), caret (^), ampersand (&), asterisk (*), plus (+), percent (%) 52 | #minus (-), underscore (_), equal (=), parenleft [(], backspace (backspace), tab (Tab), bracketleft ([), braceleft ({), bracketright (]) 53 | #braceright (}), enter (carriage return), semicolon (;), colon (:), quote (') , doublequote ("), slash (/), backquote (`), tilde (~) 54 | #backslash (\), bar (|), comma (,), less (<) period (.) , greater (>), question (?) 55 | #space, home, uparrow, pageup, leftarrow, center, rightarrow, end, downarrow, pagedown, insert, delete, F1-F12, shiftF1-shiftF12, ctrlF1-ctrlF12 56 | #Use prefix A for Alt+, e.g. Aequal, Aq, Aslash, A0, etc. -------------------------------------------------------------------------------- /boot/grubfm/kbd/KBD_DVORAK_USA.cfg: -------------------------------------------------------------------------------- 1 | # Author: Alex Roper 2 | # set DVORAK keyboard 3 | #clear all settings 4 | setkey -r 5 | #setkey [new character] [QWERTY-USA character] 6 | setkey [ minus 7 | setkey braceleft underscore 8 | setkey quote q 9 | setkey doublequote Q 10 | setkey comma w 11 | setkey less W 12 | setkey s semicolon 13 | setkey S colon 14 | setkey semicolon z 15 | setkey colon Z 16 | setkey w comma 17 | setkey W less 18 | setkey v period 19 | setkey z greater 20 | setkey z slash 21 | setkey equal bracketright 22 | setkey backslash backslash 23 | setkey underscore doublequote 24 | setkey quote q 25 | setkey doublequote Q 26 | setkey comma w 27 | setkey less W 28 | setkey period e 29 | setkey greater E 30 | setkey p r 31 | setkey P R 32 | setkey y t 33 | setkey Y T 34 | setkey f y 35 | setkey F Y 36 | setkey g u 37 | setkey G U 38 | setkey c c 39 | setkey C I 40 | setkey r o 41 | setkey R O 42 | setkey l p 43 | setkey L P 44 | setkey bracketright equal 45 | setkey braceright plus 46 | setkey a a 47 | setkey A A 48 | setkey o s 49 | setkey O S 50 | setkey e d 51 | setkey E D 52 | setkey u f 53 | setkey U F 54 | setkey i g 55 | setkey I G 56 | setkey d h 57 | setkey D H 58 | setkey h j 59 | setkey H J 60 | setkey t k 61 | setkey T K 62 | setkey n l 63 | setkey N L 64 | setkey s semicolon 65 | setkey S colon 66 | setkey minus quote 67 | setkey underscore doublequote 68 | setkey semicolon z 69 | setkey colon Z 70 | setkey q x 71 | setkey Q X 72 | setkey j c 73 | setkey J C 74 | setkey k v 75 | setkey K V 76 | setkey x b 77 | setkey X B 78 | setkey b n 79 | setkey B N 80 | #setkey m m 81 | #setkey M M 82 | setkey w comma 83 | setkey W less 84 | setkey v period 85 | setkey V greater 86 | setkey z slash 87 | setkey Z question 88 | setkey slash bracketleft 89 | setkey question braceleft 90 | setkey equal bracketright 91 | setkey plus braceright 92 | 93 | setkey -e 94 | if [ "${quiet}" = "" ]; then 95 | echo DVORAK KBD 96 | fi 97 | 98 | #key names 99 | #escape, exclam (!), at (@), numbersign (#), dollar ($), parenright ()), caret (^), ampersand (&), asterisk (*), plus (+), percent (%) 100 | #minus (-), underscore (_), equal (=), parenleft [(], backspace (backspace), tab (Tab), bracketleft ([), braceleft ({), bracketright (]) 101 | #braceright (}), enter (carriage return), semicolon (;), colon (:), quote (') , doublequote ("), slash (/), backquote (`), tilde (~) 102 | #backslash (\), bar (|), comma (,), less (<) period (.) , greater (>), question (?) 103 | #space, home, uparrow, pageup, leftarrow, center, rightarrow, end, downarrow, pagedown, insert, delete, F1-F12, shiftF1-shiftF12, ctrlF1-ctrlF12 104 | #Use prefix A for Alt+, e.g. Aequal, Aq, Aslash, A0, etc. -------------------------------------------------------------------------------- /boot/grubfm/kbd/KBD_FRENCH.cfg: -------------------------------------------------------------------------------- 1 | #FRENCH AZERTY 2 | #clear all settings 3 | setkey -r 4 | #setkey [new character] [QWERTY-USA character] 5 | setkey less backquote 6 | setkey greater tilde 7 | setkey ampersand 1 8 | setkey 1 exclam 9 | setkey tilde 2 10 | setkey 2 at 11 | setkey doublequote 3 12 | setkey 3 numbersign 13 | setkey quote 4 14 | setkey 4 dollar 15 | setkey parenleft 5 16 | setkey 5 percent 17 | setkey minus 6 18 | setkey 6 caret 19 | setkey backquote 7 20 | setkey 7 ampersand 21 | setkey underscore 8 22 | setkey 8 asterisk 23 | setkey backslash 9 24 | setkey 9 parenleft 25 | setkey at 0 26 | setkey 0 parenright 27 | setkey parenright minus 28 | setkey numbersign underscore 29 | # no change for equal 30 | # no change for plus 31 | setkey a q 32 | setkey A Q 33 | setkey z w 34 | setkey Z W 35 | setkey caret bracketleft 36 | # no equivalent for diaresis => we keep the US braceleft 37 | setkey dollar bracketright 38 | # no equivalent for pound => we keep the US braceright 39 | setkey q a 40 | setkey Q A 41 | setkey m semicolon 42 | setkey M colon 43 | setkey bracketleft quote 44 | setkey percent doublequote 45 | setkey asterisk backslash 46 | setkey bracketright bar 47 | setkey w z 48 | setkey W Z 49 | setkey comma m 50 | setkey question M 51 | setkey semicolon comma 52 | setkey period less 53 | setkey colon period 54 | setkey slash greater 55 | setkey exclam slash 56 | setkey bar question 57 | 58 | setkey tilde A2 59 | setkey numbersign A3 60 | setkey braceleft A4 61 | setkey bracketleft A5 62 | setkey bar A6 63 | setkey quote A7 64 | setkey backslash A8 65 | setkey caret A9 66 | setkey at A0 67 | setkey bracketright Aminus 68 | setkey braceright Aequal 69 | setkey -e 70 | if [ "${quiet}" = "" ]; then 71 | echo FRENCH KBD 72 | fi 73 | 74 | #key names 75 | #escape, exclam (!), at (@), numbersign (#), dollar ($), parenright ()), caret (^), ampersand (&), asterisk (*), plus (+), percent (%) 76 | #minus (-), underscore (_), equal (=), parenleft [(], backspace (backspace), tab (Tab), bracketleft ([), braceleft ({), bracketright (]) 77 | #braceright (}), enter (carriage return), semicolon (;), colon (:), quote (') , doublequote ("), slash (/), backquote (`), tilde (~) 78 | #backslash (\), bar (|), comma (,), less (<) period (.) , greater (>), question (?) 79 | #space, home, uparrow, pageup, leftarrow, center, rightarrow, end, downarrow, pagedown, insert, delete, F1-F12, shiftF1-shiftF12, ctrlF1-ctrlF12 80 | #Use prefix A for Alt+, e.g. Aequal, Aq, Aslash, A0, etc. -------------------------------------------------------------------------------- /boot/grubfm/kbd/KBD_GERMAN.cfg: -------------------------------------------------------------------------------- 1 | #GERMAN 2 | #clear all settings 3 | setkey -r 4 | #setkey [new character] [QWERTY-USA character] 5 | setkey doublequote at 6 | setkey ampersand caret 7 | setkey slash ampersand 8 | setkey parenleft asterisk 9 | setkey parenright parenleft 10 | setkey equal parenright 11 | setkey question underscore 12 | setkey backslash minus 13 | setkey z y 14 | setkey Z Y 15 | setkey y z 16 | setkey Y Z 17 | setkey plus bracketright 18 | setkey asterisk braceright 19 | setkey semicolon less 20 | setkey colon greater 21 | setkey minus slash 22 | setkey backslash Aminus 23 | setkey underscore question 24 | setkey caret backquote 25 | setkey quote equal 26 | setkey backquote plus 27 | setkey braceright doublequote 28 | setkey bar bracketleft 29 | setkey at braceleft 30 | setkey numbersign backslash 31 | setkey at Aq 32 | setkey less backquote 33 | setkey greater tilde 34 | setkey braceleft A7 35 | setkey bracketleft A8 36 | setkey bracketright A9 37 | setkey braceright A0 38 | setkey tilde Abracketright 39 | setkey backslash Aminus 40 | setkey quote bar 41 | setkey greater semicolon 42 | setkey less colon 43 | setkey bar quote 44 | 45 | setkey -e 46 | if [ "${quiet}" = "" ]; then 47 | echo GERMAN KBD 48 | fi 49 | 50 | #key names 51 | #escape, exclam (!), at (@), numbersign (#), dollar ($), parenright ()), caret (^), ampersand (&), asterisk (*), plus (+), percent (%) 52 | #minus (-), underscore (_), equal (=), parenleft [(], backspace (backspace), tab (Tab), bracketleft ([), braceleft ({), bracketright (]) 53 | #braceright (}), enter (carriage return), semicolon (;), colon (:), quote (') , doublequote ("), slash (/), backquote (`), tilde (~) 54 | #backslash (\), bar (|), comma (,), less (<) period (.) , greater (>), question (?) 55 | #space, home, uparrow, pageup, leftarrow, center, rightarrow, end, downarrow, pagedown, insert, delete, F1-F12, shiftF1-shiftF12, ctrlF1-ctrlF12 56 | #Use prefix A for Alt+, e.g. Aequal, Aq, Aslash, A0, etc. -------------------------------------------------------------------------------- /boot/grubfm/kbd/KBD_ITALIANO.cfg: -------------------------------------------------------------------------------- 1 | # Italian 2 | #clear all settings 3 | setkey -r 4 | #setkey [new character] [QWERTY-USA character] 5 | setkey backslash backquote 6 | setkey bar tilde 7 | setkey doublequote at 8 | setkey tilde numbersign 9 | setkey ampersand caret 10 | setkey slash ampersand 11 | setkey parenleft asterisk 12 | setkey parenright parenleft 13 | setkey equal parenright 14 | setkey quote minus 15 | setkey question underscore 16 | setkey caret plus 17 | setkey bracketleft bracketleft 18 | setkey bracketright braceleft 19 | setkey plus bracketright 20 | setkey asterisk braceright 21 | setkey at semicolon 22 | setkey braceleft colon 23 | setkey numbersign quote 24 | setkey braceright doublequote 25 | setkey less backslash 26 | setkey greater bar 27 | setkey minus slash 28 | setkey underscore question 29 | setkey semicolon less 30 | setkey colon greater 31 | 32 | setkey bracketleft Abracketleft 33 | setkey bracketright Abracketright 34 | setkey at Asemicolon 35 | setkey numbersign Aquote 36 | setkey braceright Abraceright 37 | setkey braceleft Abraceleft 38 | 39 | setkey -e 40 | 41 | if [ "${quiet}" = "" ]; then 42 | echo ITALIAN KBD 43 | fi 44 | 45 | 46 | #key names 47 | #escape, exclam (!), at (@), numbersign (#), dollar ($), parenright ()), caret (^), ampersand (&), asterisk (*), plus (+), percent (%) 48 | #minus (-), underscore (_), equal (=), parenleft [(], backspace (backspace), tab (Tab), bracketleft ([), braceleft ({), bracketright (]) 49 | #braceright (}), enter (carriage return), semicolon (;), colon (:), quote (') , doublequote ("), slash (/), backquote (`), tilde (~) 50 | #backslash (\), bar (|), comma (,), less (<) period (.) , greater (>), question (?) 51 | #space, home, uparrow, pageup, leftarrow, center, rightarrow, end, downarrow, pagedown, insert, delete, F1-F12, shiftF1-shiftF12, ctrlF1-ctrlF12 52 | #Use prefix A for Alt+, e.g. Aequal, Aq, Aslash, A0, etc. -------------------------------------------------------------------------------- /boot/grubfm/kbd/KBD_JAPAN_106.cfg: -------------------------------------------------------------------------------- 1 | #clear all settings 2 | setkey -r 3 | #setkey [new character] [QWERTY-USA character] 4 | # Jp106 keypad 5 | setkey at bracketleft 6 | setkey doublequote at 7 | setkey ampersand caret 8 | setkey quote ampersand 9 | setkey parenleft asterisk 10 | setkey parenright parenleft 11 | setkey underscore parenright 12 | setkey equal underscore 13 | setkey plus colon 14 | setkey colon quote 15 | setkey asterisk doublequote 16 | setkey bracketleft bracketright 17 | setkey braceleft braceright 18 | setkey bracketright backslash 19 | setkey braceright bar 20 | setkey backslash backquote 21 | setkey tilde plus 22 | setkey caret equal 23 | setkey backquote braceleft 24 | setkey bar tilde 25 | 26 | setkey -e 27 | if [ "${quiet}" = "" ]; then 28 | echo JAPANESE 106 KBD 29 | fi 30 | 31 | #key names 32 | #escape, exclam (!), at (@), numbersign (#), dollar ($), parenright ()), caret (^), ampersand (&), asterisk (*), plus (+), percent (%) 33 | #minus (-), underscore (_), equal (=), parenleft [(], backspace (backspace), tab (Tab), bracketleft ([), braceleft ({), bracketright (]) 34 | #braceright (}), enter (carriage return), semicolon (;), colon (:), quote (') , doublequote ("), slash (/), backquote (`), tilde (~) 35 | #backslash (\), bar (|), comma (,), less (<) period (.) , greater (>), question (?) 36 | #space, home, uparrow, pageup, leftarrow, center, rightarrow, end, downarrow, pagedown, insert, delete, F1-F12, shiftF1-shiftF12, ctrlF1-ctrlF12 37 | #Use prefix A for Alt+, e.g. Aequal, Aq, Aslash, A0, etc. -------------------------------------------------------------------------------- /boot/grubfm/kbd/KBD_LATIN_USA.cfg: -------------------------------------------------------------------------------- 1 | #LATIN AMERCICAN KBD 2 | #clear all settings 3 | setkey -r 4 | #setkey [new character] [QWERTY-USA character] 5 | setkey bar backquote 6 | setkey quote minus 7 | setkey question underscore 8 | setkey backquote bracketleft 9 | setkey plus bracketright 10 | setkey braceleft quote 11 | setkey braceright backslash 12 | setkey minus slash 13 | setkey ampersand caret 14 | setkey doublequote at 15 | setkey slash ampersand 16 | setkey parenleft asterisk 17 | setkey parenright parenleft 18 | setkey equal parenright 19 | setkey asterisk braceright 20 | setkey bracketleft doublequote 21 | setkey bracketright bar 22 | setkey semicolon less 23 | setkey colon greater 24 | setkey underscore question 25 | 26 | setkey caret Aquote 27 | setkey doublequote braceleft 28 | setkey at Aq 29 | setkey backquote Abackslash 30 | 31 | setkey backslash Aminus 32 | 33 | setkey greater plus 34 | setkey less equal 35 | 36 | setkey backslash Aminus 37 | setkey backquote Abackslash 38 | setkey tilde Abracketright 39 | setkey caret Aquote 40 | 41 | setkey -e 42 | if [ "${quiet}" = "" ]; then 43 | echo "LATIN AMERICAN KBD shift+top-right '>' top-right '<'" 44 | sleep 3 45 | fi 46 | 47 | #key names 48 | #escape, exclam (!), at (@), numbersign (#), dollar ($), parenright ()), caret (^), ampersand (&), asterisk (*), plus (+), percent (%) 49 | #minus (-), underscore (_), equal (=), parenleft [(], backspace (backspace), tab (Tab), bracketleft ([), braceleft ({), bracketright (]) 50 | #braceright (}), enter (carriage return), semicolon (;), colon (:), quote (') , doublequote ("), slash (/), backquote (`), tilde (~) 51 | #backslash (\), bar (|), comma (,), less (<) period (.) , greater (>), question (?) 52 | #space, home, uparrow, pageup, leftarrow, center, rightarrow, end, downarrow, pagedown, insert, delete, F1-F12, shiftF1-shiftF12, ctrlF1-ctrlF12 53 | #Use prefix A for Alt+, e.g. Aequal, Aq, Aslash, A0, etc. -------------------------------------------------------------------------------- /boot/grubfm/kbd/KBD_PORTU_BRAZIL.cfg: -------------------------------------------------------------------------------- 1 | #PORTUGUESE-BRAZIL 2 | #clear all settings 3 | setkey -r 4 | #setkey [new character] [QWERTY-USA character] 5 | setkey quote backquote 6 | setkey quote bracketleft 7 | setkey bracketleft bracketright 8 | setkey tilde quote 9 | setkey bracketright backslash 10 | setkey semicolon slash 11 | setkey bar colon 12 | 13 | #shifted 14 | setkey doublequote tilde 15 | setkey backquote braceleft 16 | setkey braceleft braceright 17 | setkey caret doublequote 18 | setkey braceright bar 19 | setkey colon question 20 | setkey backslash semicolon 21 | 22 | 23 | #AltGr 24 | setkey bar Atilde 25 | setkey backslash Abackquote 26 | setkey slash Aq 27 | setkey question Aw 28 | 29 | setkey -e 30 | if [ "${quiet}" = "" ]; then 31 | echo "PORTUGUESE-BRAZIL KBD c+' -> \"|\" C -> \"\\\"" 32 | sleep 3 33 | fi 34 | 35 | #key names 36 | #escape, exclam (!), at (@), numbersign (#), dollar ($), parenright ()), caret (^), ampersand (&), asterisk (*), plus (+), percent (%) 37 | #minus (-), underscore (_), equal (=), parenleft [(], backspace (backspace), tab (Tab), bracketleft ([), braceleft ({), bracketright (]) 38 | #braceright (}), enter (carriage return), semicolon (;), colon (:), quote (') , doublequote ("), slash (/), backquote (`), tilde (~) 39 | #backslash (\), bar (|), comma (,), less (<) period (.) , greater (>), question (?) 40 | #space, home, uparrow, pageup, leftarrow, center, rightarrow, end, downarrow, pagedown, insert, delete, F1-F12, shiftF1-shiftF12, ctrlF1-ctrlF12 41 | #Use prefix A for Alt+, e.g. Aequal, Aq, Aslash, A0, etc. -------------------------------------------------------------------------------- /boot/grubfm/kbd/KBD_QWERTY_UK.cfg: -------------------------------------------------------------------------------- 1 | #QWERTY UK 2 | #clear all settings 3 | setkey -r 4 | #setkey [new character] [QWERTY-USA character] 5 | #change key map for UK keyboard 6 | setkey at doublequote 7 | setkey doublequote at 8 | setkey tilde bar 9 | setkey numbersign backslash 10 | setkey backslash numbersign 11 | setkey bar tilde 12 | setkey backslash Atilde 13 | setkey backslash Abackquote 14 | 15 | setkey -e 16 | if [ "${quiet}" = "" ]; then 17 | echo "UK KBD use [Shift+3] for \\ and [Shift+top-left] for |" 18 | sleep 2 19 | fi 20 | 21 | #key names 22 | #escape, exclam (!), at (@), numbersign (#), dollar ($), parenright ()), caret (^), ampersand (&), asterisk (*), plus (+), percent (%) 23 | #minus (-), underscore (_), equal (=), parenleft [(], backspace (backspace), tab (Tab), bracketleft ([), braceleft ({), bracketright (]) 24 | #braceright (}), enter (carriage return), semicolon (;), colon (:), quote (') , doublequote ("), slash (/), backquote (`), tilde (~) 25 | #backslash (\), bar (|), comma (,), less (<) period (.) , greater (>), question (?) 26 | #space, home, uparrow, pageup, leftarrow, center, rightarrow, end, downarrow, pagedown, insert, delete, F1-F12, shiftF1-shiftF12, ctrlF1-ctrlF12 27 | #Use prefix A for Alt+, e.g. Aequal, Aq, Aslash, A0, etc. -------------------------------------------------------------------------------- /boot/grubfm/kbd/KBD_QWERTZ.cfg: -------------------------------------------------------------------------------- 1 | #QWERTZ generic 2 | #clear all settings 3 | setkey -r 4 | #setkey [new character] [QWERTY-USA character] 5 | setkey doublequote at 6 | setkey ampersand percent 7 | setkey slash ampersand 8 | 9 | setkey equal parenright 10 | setkey question underscore 11 | setkey backslash minus 12 | setkey z y 13 | setkey Z Y 14 | setkey y z 15 | setkey Y Z 16 | setkey plus bracketright 17 | setkey asterisk braceright 18 | setkey semicolon less 19 | setkey colon greater 20 | setkey minus slash 21 | 22 | setkey underscore question 23 | setkey caret backquote 24 | 25 | setkey backquote equal 26 | setkey numbersign backslash 27 | setkey parenright parenleft 28 | setkey parenleft asterisk 29 | setkey percent caret 30 | setkey less numbersign 31 | setkey greater bar 32 | 33 | setkey -e 34 | if [ "${quiet}" = "" ]; then 35 | echo QWERTZ KBD 36 | fi 37 | 38 | #key names 39 | #escape, exclam (!), at (@), numbersign (#), dollar ($), parenright ()), caret (^), ampersand (&), asterisk (*), plus (+), percent (%) 40 | #minus (-), underscore (_), equal (=), parenleft [(], backspace (backspace), tab (Tab), bracketleft ([), braceleft ({), bracketright (]) 41 | #braceright (}), enter (carriage return), semicolon (;), colon (:), quote (') , doublequote ("), slash (/), backquote (`), tilde (~) 42 | #backslash (\), bar (|), comma (,), less (<) period (.) , greater (>), question (?) 43 | #space, home, uparrow, pageup, leftarrow, center, rightarrow, end, downarrow, pagedown, insert, delete, F1-F12, shiftF1-shiftF12, ctrlF1-ctrlF12 44 | #Use prefix A for Alt+, e.g. Aequal, Aq, Aslash, A0, etc. -------------------------------------------------------------------------------- /boot/grubfm/kbd/KBD_QWERTZ_HUN.cfg: -------------------------------------------------------------------------------- 1 | #QWERTZ Hungarian 2 | #clear all settings 3 | setkey -r 4 | #setkey [new character] [QWERTY-USA character] 5 | setkey y z 6 | setkey z y 7 | setkey Y Z 8 | setkey Z Y 9 | setkey 0 backquote 10 | setkey quote exclam 11 | setkey doublequote at 12 | setkey plus numbersign 13 | setkey exclam dollar 14 | setkey slash caret 15 | setkey equal ampersand 16 | setkey parenleft asterisk 17 | setkey parenright parenleft 18 | setkey backslash Aq 19 | setkey bar Aw 20 | setkey bracketleft Af 21 | setkey bracketright Ag 22 | #setkey greater Aoem102 - Aoem102 not supported 23 | #this is a y key in hungarian keyboard 24 | setkey greater Az 25 | setkey numbersign Ax 26 | setkey ampersand Ac 27 | setkey at Av 28 | setkey braceleft Ab 29 | setkey braceright An 30 | setkey less Am 31 | #use É (USA=:) for $ 32 | setkey dollar colon 33 | setkey question less 34 | setkey colon greater 35 | setkey minus slash 36 | setkey underscore question 37 | setkey at doublequote 38 | setkey tilde A1 39 | setkey caret A3 40 | setkey backquote A7 41 | 42 | #use Ö for asterisk 43 | setkey asterisk 0 44 | 45 | setkey dollar Asemicolon 46 | setkey semicolon Acomma 47 | setkey greater Aperiod 48 | setkey asterisk Aslash 49 | #semicolon use é key 50 | #Hun AltGR chars: less greater numbersign ampersand at braceleft braceright semicolon asterisk backslash bar tilde caret quote doublequote bracketleft bracketright 51 | 52 | setkey backquote A9 53 | setkey doublequote A0 54 | 55 | 56 | 57 | setkey -e 58 | if [ "${quiet}" = "" ]; then 59 | echo "QWERTZ_HUN KBD e ';'" 60 | sleep 2 61 | fi 62 | 63 | #key names 64 | #escape, exclam (!), at (@), numbersign (#), dollar ($), parenright ()), caret (^), ampersand (&), asterisk (*), plus (+), percent (%) 65 | #minus (-), underscore (_), equal (=), parenleft [(], backspace (backspace), tab (Tab), bracketleft ([), braceleft ({), bracketright (]) 66 | #braceright (}), enter (carriage return), semicolon (;), colon (:), quote (') , doublequote ("), slash (/), backquote (`), tilde (~) 67 | #backslash (\), bar (|), comma (,), less (<) period (.) , greater (>), question (?) 68 | #space, home, uparrow, pageup, leftarrow, center, rightarrow, end, downarrow, pagedown, insert, delete, F1-F12, shiftF1-shiftF12, ctrlF1-ctrlF12 69 | #Use prefix A for Alt+, e.g. Aequal, Aq, Aslash, A0, etc. -------------------------------------------------------------------------------- /boot/grubfm/kbd/KBD_QWERTZ_SLOV_CROAT.cfg: -------------------------------------------------------------------------------- 1 | #QWERTZ Croatian\Slovenian 2 | #clear all settings 3 | setkey -r 4 | #setkey [new character] [QWERTY-USA character] 5 | setkey quote minus 6 | setkey plus equal 7 | setkey y z 8 | setkey minus slash 9 | #shifted 10 | setkey doublequote tilde 11 | setkey doublequote at 12 | setkey ampersand caret 13 | setkey slash ampersand 14 | setkey parenleft asterisk 15 | setkey parenright parenleft 16 | setkey equal parenright 17 | setkey question underscore 18 | setkey asterisk plus 19 | setkey Y Z 20 | setkey semicolon less 21 | setkey colon greater 22 | setkey underscore question 23 | #AltGr 24 | setkey tilde A1 25 | setkey caret A3 26 | setkey backquote A7 27 | setkey backslash Aq 28 | setkey bar Aw 29 | setkey bracketleft Af 30 | setkey bracketright Ag 31 | setkey at Av 32 | setkey braceleft Ab 33 | setkey braceright An 34 | setkey less Acomma 35 | setkey greater Aperiod 36 | 37 | setkey -e 38 | if [ "${quiet}" = "" ]; then 39 | echo QWERTZ_SLOV_CROAT KBD 40 | fi 41 | 42 | #key names 43 | #escape, exclam (!), at (@), numbersign (#), dollar ($), parenright ()), caret (^), ampersand (&), asterisk (*), plus (+), percent (%) 44 | #minus (-), underscore (_), equal (=), parenleft [(], backspace (backspace), tab (Tab), bracketleft ([), braceleft ({), bracketright (]) 45 | #braceright (}), enter (carriage return), semicolon (;), colon (:), quote (') , doublequote ("), slash (/), backquote (`), tilde (~) 46 | #backslash (\), bar (|), comma (,), less (<) period (.) , greater (>), question (?) 47 | #space, home, uparrow, pageup, leftarrow, center, rightarrow, end, downarrow, pagedown, insert, delete, F1-F12, shiftF1-shiftF12, ctrlF1-ctrlF12 48 | #Use prefix A for Alt+, e.g. Aequal, Aq, Aslash, A0, etc. -------------------------------------------------------------------------------- /boot/grubfm/kbd/KBD_SPANISH.cfg: -------------------------------------------------------------------------------- 1 | #Espanol - SPANISH CHARACTER - USA KBD CHARACTER 2 | #clear all settings 3 | setkey -r 4 | #setkey [new character] [QWERTY-USA character] 5 | setkey slash ampersand 6 | setkey ampersand caret 7 | setkey caret braceleft 8 | setkey asterisk braceright 9 | setkey parenleft asterisk 10 | setkey parenright parenleft 11 | setkey minus slash 12 | setkey equal parenright 13 | setkey quote minus 14 | setkey underscore question 15 | setkey question underscore 16 | #setkey braceleft quote 17 | #setkey braceright backslash 18 | setkey colon greater 19 | setkey greater bar 20 | setkey doublequote at 21 | setkey backslash backquote 22 | setkey less backslash 23 | setkey semicolon less 24 | setkey backquote bracketleft 25 | setkey plus bracketright 26 | setkey plus colon 27 | setkey at semicolon 28 | 29 | setkey bar A1 30 | setkey at A2 31 | setkey numbersign A3 32 | setkey tilde A4 33 | setkey bracketleft Abracketleft 34 | setkey bracketright Abracketright 35 | setkey braceleft Aquote 36 | setkey braceright Abackslash 37 | 38 | setkey greater bar 39 | setkey less backslash 40 | setkey backslash Abackquote 41 | 42 | setkey -e 43 | if [ "${quiet}" = "" ]; then 44 | echo "SPANISH KBD MAP SET c=< C=>" 45 | sleep 2 46 | fi 47 | 48 | #key names 49 | #escape, exclam (!), at (@), numbersign (#), dollar ($), parenright ()), caret (^), ampersand (&), asterisk (*), plus (+), percent (%) 50 | #minus (-), underscore (_), equal (=), parenleft [(], backspace (backspace), tab (Tab), bracketleft ([), braceleft ({), bracketright (]) 51 | #braceright (}), enter (carriage return), semicolon (;), colon (:), quote (') , doublequote ("), slash (/), backquote (`), tilde (~) 52 | #backslash (\), bar (|), comma (,), less (<) period (.) , greater (>), question (?) 53 | #space, home, uparrow, pageup, leftarrow, center, rightarrow, end, downarrow, pagedown, insert, delete, F1-F12, shiftF1-shiftF12, ctrlF1-ctrlF12 54 | #Use prefix A for Alt+, e.g. Aequal, Aq, Aslash, A0, etc. -------------------------------------------------------------------------------- /boot/grubfm/kbd/KBD_SWEDISH.cfg: -------------------------------------------------------------------------------- 1 | #SWEDISH 2 | #clear all settings 3 | setkey -r 4 | #setkey [new character] [QWERTY-USA character] 5 | setkey plus minus 6 | setkey quote equal 7 | setkey doublequote bracketright 8 | setkey quote backslash 9 | setkey minus slash 10 | 11 | #shifted 12 | setkey doublequote at 13 | setkey ampersand caret 14 | setkey slash ampersand 15 | setkey parenleft asterisk 16 | setkey parenright parenleft 17 | setkey equal parenright 18 | setkey question underscore 19 | setkey caret braceright 20 | setkey asterisk bar 21 | setkey backquote plus 22 | setkey semicolon less 23 | setkey colon greater 24 | setkey underscore question 25 | 26 | #use top-left key for oem102 codes 27 | setkey bar Atilde 28 | setkey backslash Abackquote 29 | setkey greater tilde 30 | 31 | #AltGr 32 | setkey at A2 33 | setkey dollar A4 34 | setkey braceleft A7 35 | setkey bracketleft A8 36 | setkey bracketright A9 37 | setkey braceright A0 38 | setkey backslash Aminus 39 | 40 | setkey less quote 41 | setkey greater doublequote 42 | setkey tilde Abracketright 43 | 44 | setkey -e 45 | if [ "${quiet}" = "" ]; then 46 | echo "SWEDISH KBD a=< A=>" 47 | sleep 2 48 | fi 49 | 50 | #key names 51 | #escape, exclam (!), at (@), numbersign (#), dollar ($), parenright ()), caret (^), ampersand (&), asterisk (*), plus (+), percent (%) 52 | #minus (-), underscore (_), equal (=), parenleft [(], backspace (backspace), tab (Tab), bracketleft ([), braceleft ({), bracketright (]) 53 | #braceright (}), enter (carriage return), semicolon (;), colon (:), quote (') , doublequote ("), slash (/), backquote (`), tilde (~) 54 | #backslash (\), bar (|), comma (,), less (<) period (.) , greater (>), question (?) 55 | #space, home, uparrow, pageup, leftarrow, center, rightarrow, end, downarrow, pagedown, insert, delete, F1-F12, shiftF1-shiftF12, ctrlF1-ctrlF12 56 | #Use prefix A for Alt+, e.g. Aequal, Aq, Aslash, A0, etc. -------------------------------------------------------------------------------- /boot/grubfm/kbd/KBD_TURKISH_Q.cfg: -------------------------------------------------------------------------------- 1 | #QWERTY TURKISH 2 | #clear all settings 3 | setkey -r 4 | #setkey [new character] [QWERTY-USA character] 5 | setkey doublequote backquote 6 | setkey asterisk minus 7 | setkey minus equal 8 | setkey comma backslash 9 | setkey period slash 10 | #shift 11 | setkey quote at 12 | setkey caret numbersign 13 | setkey plus dollar 14 | setkey ampersand caret 15 | setkey slash ampersand 16 | setkey parenleft asterisk 17 | setkey parenright parenleft 18 | setkey equal parenright 19 | setkey question underscore 20 | setkey underscore plus 21 | setkey semicolon bar 22 | setkey colon question 23 | #altgr 24 | setkey less Abackquote 25 | setkey greater A1 26 | setkey numbersign A3 27 | setkey dollar A4 28 | setkey braceleft A7 29 | setkey bracketleft A8 30 | setkey bracketright A9 31 | setkey braceright A0 32 | setkey backslash Aminus 33 | setkey bar Aequal 34 | setkey at Aq 35 | setkey doublequote Abracketleft 36 | setkey tilde Abracketright 37 | 38 | setkey -e 39 | if [ "${quiet}" = "" ]; then 40 | echo TURKISH QWERTY KBD 41 | fi 42 | 43 | #key names 44 | #escape, exclam (!), at (@), numbersign (#), dollar ($), parenright ()), caret (^), ampersand (&), asterisk (*), plus (+), percent (%) 45 | #minus (-), underscore (_), equal (=), parenleft [(], backspace (backspace), tab (Tab), bracketleft ([), braceleft ({), bracketright (]) 46 | #braceright (}), enter (carriage return), semicolon (;), colon (:), quote (') , doublequote ("), slash (/), backquote (`), tilde (~) 47 | #backslash (\), bar (|), comma (,), less (<) period (.) , greater (>), question (?) 48 | #space, home, uparrow, pageup, leftarrow, center, rightarrow, end, downarrow, pagedown, insert, delete, F1-F12, shiftF1-shiftF12, ctrlF1-ctrlF12 49 | #Use prefix A for Alt+, e.g. Aequal, Aq, Aslash, A0, etc. -------------------------------------------------------------------------------- /boot/grubfm/kbd/KBD_VIETNAMESE.cfg: -------------------------------------------------------------------------------- 1 | #VIETNAMESE 2 | #clear all settings 3 | setkey -r 4 | #setkey [new character] [QWERTY-USA character] 5 | setkey exclam A1 6 | setkey at A2 7 | setkey numbersign A3 8 | setkey dollar A4 9 | setkey percent A5 10 | setkey caret A6 11 | setkey ampersand A7 12 | setkey asterisk A8 13 | setkey parenleft A9 14 | setkey parenright A0 15 | setkey plus Aplus 16 | setkey equal Aequal 17 | setkey braceleft Abraceleft 18 | setkey braceright Abraceright 19 | setkey colon Acolon 20 | setkey semicolon Asemicolon 21 | setkey quote Aquote 22 | setkey backslash Abackslash 23 | setkey less Aless 24 | setkey greater Agreater 25 | setkey comma Acomma 26 | setkey period Aperiod 27 | setkey question Aquestion 28 | setkey slash Aslash 29 | setkey tilde Atilde 30 | setkey backquote Abackquote 31 | setkey bracketright Abracketright 32 | setkey bracketleft Abracketleft 33 | setkey bar Abar 34 | setkey doublequote Adoublequote 35 | setkey colon Acolon 36 | setkey minus Aminus 37 | setkey underscore Aunderscore 38 | 39 | #for top row, use unshifted and shifted keys 40 | setkey -e 41 | 42 | if [ "${quiet}" = "" ]; then 43 | echo VIETNAMESE KBD 44 | fi 45 | 46 | #key names 47 | #escape, exclam (!), at (@), numbersign (#), dollar ($), parenright ()), caret (^), ampersand (&), asterisk (*), plus (+), percent (%) 48 | #minus (-), underscore (_), equal (=), parenleft [(], backspace (backspace), tab (Tab), bracketleft ([), braceleft ({), bracketright (]) 49 | #braceright (}), enter (carriage return), semicolon (;), colon (:), quote (') , doublequote ("), slash (/), backquote (`), tilde (~) 50 | #backslash (\), bar (|), comma (,), less (<) period (.) , greater (>), question (?) 51 | #space, home, uparrow, pageup, leftarrow, center, rightarrow, end, downarrow, pagedown, insert, delete, F1-F12, shiftF1-shiftF12, ctrlF1-ctrlF12 52 | #Use prefix A for Alt+, e.g. Aequal, Aq, Aslash, A0, etc. -------------------------------------------------------------------------------- /boot/grubfm/lang.sh: -------------------------------------------------------------------------------- 1 | export lang=en_US; -------------------------------------------------------------------------------- /boot/grubfm/language.lua: -------------------------------------------------------------------------------- 1 | #!lua 2 | -- Grub2-FileManager 3 | -- Copyright (C) 2020 A1ive. 4 | -- 5 | -- Grub2-FileManager is free software: you can redistribute it and/or modify 6 | -- it under the terms of the GNU General Public License as published by 7 | -- the Free Software Foundation, either version 3 of the License, or 8 | -- (at your option) any later version. 9 | -- 10 | -- Grub2-FileManager is distributed in the hope that it will be useful, 11 | -- but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | -- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | -- GNU General Public License for more details. 14 | -- 15 | -- You should have received a copy of the GNU General Public License 16 | -- along with Grub2-FileManager. If not, see . 17 | 18 | locale_dir = grub.getenv ("secondary_locale_dir") 19 | if (locale_dir == nil) then 20 | locale_dir = "(memdisk)/boot/grubfm/locale" 21 | end 22 | 23 | function enum_mo_file (name) 24 | local item = locale_dir .. "/" .. name 25 | local lang = string.match (name, "(.*)%.mo$") 26 | if grub.file_exist (item) and lang ~= nil then 27 | i = i + 1 28 | f_table[i] = lang 29 | end 30 | end 31 | 32 | grub.clear_menu () 33 | f_table = {} 34 | i = 0 35 | grub.enum_file (enum_mo_file,locale_dir .. "/") 36 | table.sort (f_table) 37 | 38 | command = "export lang=en_US; configfile ${prefix}/settings.sh;" 39 | grub.add_icon_menu ("lang", command, "en_US") 40 | 41 | for j, name in ipairs(f_table) do 42 | command = "export lang=" .. name .. "; export grubfm_lang=${lang}; configfile ${prefix}/settings.sh;" 43 | grub.add_icon_menu ("lang", command, name) 44 | end 45 | 46 | grub.script ("source ${prefix}/global.sh") 47 | -------------------------------------------------------------------------------- /boot/grubfm/locale/fm/README: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1ive/grub2-filemanager/918524dc18f08eba1ade421282b54a7b2787fa15/boot/grubfm/locale/fm/README -------------------------------------------------------------------------------- /boot/grubfm/netboot.sh: -------------------------------------------------------------------------------- 1 | # Grub2-FileManager 2 | # Copyright (C) 2020 A1ive. 3 | # 4 | # Grub2-FileManager is free software: you can redistribute it and/or modify 5 | # it under the terms of the GNU General Public License as published by 6 | # the Free Software Foundation, either version 3 of the License, or 7 | # (at your option) any later version. 8 | # 9 | # Grub2-FileManager is distributed in the hope that it will be useful, 10 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | # GNU General Public License for more details. 13 | # 14 | # You should have received a copy of the GNU General Public License 15 | # along with Grub2-FileManager. If not, see . 16 | 17 | if [ "$grub_platform" = "efi" ]; 18 | then 19 | set netbootxyz=netboot.xyz.efi 20 | set chain=chainloader 21 | else 22 | set netbootxyz=netboot.xyz.lkrn 23 | set chain=linux16 24 | fi; 25 | 26 | menuentry $"netboot.xyz" --class net { 27 | set lang=en_US; 28 | terminal_output console; 29 | echo $"Please wait ..."; 30 | $chain (http,boot.netboot.xyz)/ipxe/$netbootxyz 31 | } 32 | 33 | source ${prefix}/global.sh; 34 | -------------------------------------------------------------------------------- /boot/grubfm/null.cpio: -------------------------------------------------------------------------------- 1 | 0707010000EF2C000041FF0000000000000000000000015C63C25200000000000000000000000C00000000000000000000000200000000.0707010001A8F8000081FF0000000000000000000000015C3F064D00000400000000000000000C00000000000000000000000900000000null.cfg# GRUB Environment Block 2 | #######################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################07070100000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000B00000000TRAILER!!! -------------------------------------------------------------------------------- /boot/grubfm/power.sh: -------------------------------------------------------------------------------- 1 | # Grub2-FileManager 2 | # Copyright (C) 2020 A1ive. 3 | # 4 | # Grub2-FileManager is free software: you can redistribute it and/or modify 5 | # it under the terms of the GNU General Public License as published by 6 | # the Free Software Foundation, either version 3 of the License, or 7 | # (at your option) any later version. 8 | # 9 | # Grub2-FileManager is distributed in the hope that it will be useful, 10 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | # GNU General Public License for more details. 13 | # 14 | # You should have received a copy of the GNU General Public License 15 | # along with Grub2-FileManager. If not, see . 16 | 17 | menuentry $"Warm Reboot (R)" --class reboot --hotkey "r" { 18 | reset -w; 19 | } 20 | 21 | menuentry $"Cold Reboot (S)" --class reboot --hotkey "s" { 22 | reset -c; 23 | } 24 | 25 | menuentry $"Halt (H)" --class halt --hotkey "h" { 26 | halt; 27 | } 28 | 29 | if [ "$grub_platform" = "efi" ]; 30 | then 31 | menuentry $"EFI Firmware Setup" --class mem { 32 | reset -f; 33 | } 34 | 35 | else 36 | menuentry $"Halt (don't use APM)" --class uefi { 37 | halt -n; 38 | } 39 | fi; 40 | 41 | source ${prefix}/global.sh; 42 | -------------------------------------------------------------------------------- /boot/grubfm/pxeinit.sh: -------------------------------------------------------------------------------- 1 | # Grub2-FileManager 2 | # Copyright (C) 2020 A1ive. 3 | # 4 | # Grub2-FileManager is free software: you can redistribute it and/or modify 5 | # it under the terms of the GNU General Public License as published by 6 | # the Free Software Foundation, either version 3 of the License, or 7 | # (at your option) any later version. 8 | # 9 | # Grub2-FileManager is distributed in the hope that it will be useful, 10 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | # GNU General Public License for more details. 13 | # 14 | # You should have received a copy of the GNU General Public License 15 | # along with Grub2-FileManager. If not, see . 16 | 17 | function net_detect { 18 | export grub_netboot=0; 19 | if [ "${bootdev}" != "tftp" ]; 20 | then 21 | return; 22 | fi; 23 | if [ "${grub_platform}" = "efi" ]; 24 | then 25 | if [ -z "${net_default_server}" -a -n "${net_efinet0_next_server}" ]; 26 | then 27 | export net_default_server="${net_efinet0_next_server}"; 28 | fi; 29 | if getargs --value "proxydhcp" proxydhcp; 30 | then 31 | export net_default_server="${proxydhcp}"; 32 | fi; 33 | if [ -z "${net_default_server}" ]; 34 | then 35 | return; 36 | fi; 37 | else 38 | if [ -z "${net_default_server}" ]; 39 | then 40 | export net_default_server="${net_pxe_next_server}"; 41 | fi; 42 | fi; 43 | export grub_netboot=1; 44 | grubfm_set --boot 1; 45 | } 46 | -------------------------------------------------------------------------------- /boot/grubfm/rules/bmp/bgrt.sh: -------------------------------------------------------------------------------- 1 | acpi --bgrt "${grubfm_file}"; 2 | sleep 1; 3 | -------------------------------------------------------------------------------- /boot/grubfm/rules/cfg/grub2.sh: -------------------------------------------------------------------------------- 1 | source ${prefix}/func.sh; 2 | 3 | set root=${grubfm_device}; 4 | if [ -f "${theme_std}" ]; 5 | then 6 | export theme=${theme_std}; 7 | fi; 8 | configfile "${grubfm_file}"; 9 | -------------------------------------------------------------------------------- /boot/grubfm/rules/cfg/pxelinux.sh: -------------------------------------------------------------------------------- 1 | source ${prefix}/func.sh; 2 | 3 | set root=${grubfm_device}; 4 | if [ -f "${theme_std}" ]; 5 | then 6 | export theme=${theme_std}; 7 | fi; 8 | syslinux_configfile -p "${grubfm_file}"; 9 | -------------------------------------------------------------------------------- /boot/grubfm/rules/cfg/syslinux.sh: -------------------------------------------------------------------------------- 1 | source ${prefix}/func.sh; 2 | 3 | set root=${grubfm_device}; 4 | if [ -f "${theme_std}" ]; 5 | then 6 | export theme=${theme_std}; 7 | fi; 8 | syslinux_configfile -s "${grubfm_file}"; 9 | -------------------------------------------------------------------------------- /boot/grubfm/rules/efi/chain.sh: -------------------------------------------------------------------------------- 1 | chainloader -b -t "${grubfm_file}"; 2 | -------------------------------------------------------------------------------- /boot/grubfm/rules/efi/load.sh: -------------------------------------------------------------------------------- 1 | efiload "${grubfm_file}"; 2 | sleep 2; 3 | -------------------------------------------------------------------------------- /boot/grubfm/rules/fatfs/copy.sh: -------------------------------------------------------------------------------- 1 | source ${prefix}/func.sh; 2 | 3 | function fatfs_opt { 4 | if [ -z "${dest}" ]; 5 | then 6 | echo "return ..."; 7 | fi; 8 | echo "DEST: ${dest}"; 9 | regexp --set=1:dest_dev '^\(([0-9a-zA-Z,]+)\)/.*' "${dest}"; 10 | regexp --set=1:dest_path '(/.*)$' "${dest}"; 11 | echo "DESTDEV: ${dest_dev}"; 12 | echo "DESTDIR: ${dest_path}"; 13 | echo $"Enter the name"; 14 | read name; 15 | echo ""; 16 | if regexp '[/\\:\*\?\$]' "${name}"; 17 | then 18 | echo $"Bad file name."; 19 | echo $"Press any key to exit."; 20 | else 21 | set path="${dest_path}${name}"; 22 | umount 9; 23 | mount (${dest_dev}) 9; 24 | echo $"Please wait ..."; 25 | cp "${grubfm_file}" "9:/${path}"; 26 | umount 9; 27 | fi; 28 | grubfm_open "${grubfm_file}"; 29 | } 30 | 31 | source ${prefix}/rules/fatfs/list.sh; 32 | 33 | unset dest; 34 | list_main; 35 | 36 | -------------------------------------------------------------------------------- /boot/grubfm/rules/fatfs/copy_test.sh: -------------------------------------------------------------------------------- 1 | stat -s size -z "${grubfm_file}"; 2 | # 4000000000 3 | if regexp '^[0-9]{0,9}$' "${size}"; 4 | then 5 | # 0 - 999 999 999 6 | set grubfm_test=1; 7 | elif regexp '^[0-3][0-9]{0,9}$' "${size}"; 8 | then 9 | # 1 000 000 000 - 3 999 999 999 10 | set grubfm_test=1; 11 | else 12 | set grubfm_test=0; 13 | fi; 14 | -------------------------------------------------------------------------------- /boot/grubfm/rules/fatfs/delete.sh: -------------------------------------------------------------------------------- 1 | source ${prefix}/func.sh; 2 | 3 | echo $"WARNING: Will delete ${grubfm_file}"; 4 | echo $"Press [1] to continue. Press any other key to return."; 5 | getkey key; 6 | if [ x$key = x49 ]; 7 | then 8 | umount 9; 9 | mount (${grubfm_device}) 9; 10 | rm "9:/${grubfm_path}"; 11 | umount 9; 12 | grubfm "(${grubfm_device})${grubfm_dir}"; 13 | fi; 14 | -------------------------------------------------------------------------------- /boot/grubfm/rules/fatfs/fatfs_test.sh: -------------------------------------------------------------------------------- 1 | source ${prefix}/func.sh; 2 | 3 | probe --set=fs --fs "(${grubfm_device})"; 4 | if [ "${fs}" = "fat" -o "${fs}" = "exfat" ]; 5 | then 6 | set grubfm_test=1; 7 | else 8 | set grubfm_test=0; 9 | fi; 10 | -------------------------------------------------------------------------------- /boot/grubfm/rules/fatfs/list.sh: -------------------------------------------------------------------------------- 1 | # GRUB2-FileManager 2 | # Copyright (C) 2016,2017,2018,2019,2020 A1ive. 3 | # 4 | # Grub2-FileManager is free software: you can redistribute it and/or modify 5 | # it under the terms of the GNU General Public License as published by 6 | # the Free Software Foundation, either version 3 of the License, or 7 | # (at your option) any later version. 8 | # 9 | # Grub2-FileManager is distributed in the hope that it will be useful, 10 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | # GNU General Public License for more details. 13 | # 14 | # You should have received a copy of the GNU General Public License 15 | # along with Grub2-FileManager. If not, see . 16 | 17 | function enum_device 18 | { 19 | for device in (*); 20 | do 21 | if test -d "${device}"; 22 | then 23 | probe --set=fs -f -q "${device}"; 24 | probe --set=label -l -q "${device}"; 25 | if [ "${fs}" != "fat" -a "${fs}" != "exfat" ]; 26 | then 27 | continue; 28 | fi; 29 | if regexp 'loop' "${device}"; 30 | then 31 | continue; 32 | fi; 33 | if test "${device}" = "(memdisk)" -o "${device}" = "(proc)"; 34 | then 35 | continue; 36 | fi; 37 | menuentry "${device} [$fs] $label" "${device}" --class hdd { 38 | list_main "${2}"; 39 | } 40 | unset label; 41 | unset fs; 42 | fi; 43 | done; 44 | } 45 | 46 | function enum_dir 47 | { 48 | for item in ${list_path}/*; 49 | do 50 | regexp --set=1:name '.*/(.*)$' "${item}"; 51 | if test -d "${item}"; 52 | then 53 | menuentry "[${name}]" "${item}" --class dir { 54 | list_main "${2}"; 55 | } 56 | fi; 57 | done; 58 | } 59 | 60 | # grubfm_main PATH 61 | function list_main 62 | { 63 | clear_menu; 64 | if [ -z "${1}" ]; 65 | then 66 | enum_device; 67 | menuentry $"Cancel" --class cancel { 68 | grubfm_open "${grubfm_file}"; 69 | } 70 | else 71 | export list_path="${1}"; 72 | set default=1; 73 | menuentry ".." --class go-previous { 74 | if ! regexp --set=1:list_path '(^.*)/.*$' "${list_path}"; 75 | then 76 | export list_path=""; 77 | fi 78 | export list_path; 79 | list_main "${list_path}"; 80 | } 81 | menuentry $"Paste here" --class check { 82 | export dest="${list_path}/"; 83 | fatfs_opt; 84 | } 85 | enum_dir; 86 | fi; 87 | } 88 | -------------------------------------------------------------------------------- /boot/grubfm/rules/fatfs/rename.sh: -------------------------------------------------------------------------------- 1 | source ${prefix}/func.sh; 2 | 3 | echo $"Enter the name"; 4 | read name; 5 | echo ""; 6 | if regexp '[/\\:\*\?\$]' "${name}"; 7 | then 8 | echo $"Bad file name."; 9 | echo $"Press any key to exit."; 10 | getkey; 11 | else 12 | set path="${grubfm_dir}${name}"; 13 | umount 9; 14 | mount (${grubfm_device}) 9; 15 | rename "9:/${grubfm_path}" "9:/${path}"; 16 | umount 9; 17 | grubfm "(${grubfm_device})${grubfm_dir}"; 18 | fi; 19 | -------------------------------------------------------------------------------- /boot/grubfm/rules/generic.ini: -------------------------------------------------------------------------------- 1 | [0] 2 | menu = generic/custom.sh 3 | condition = generic/custom_test.sh 4 | title = "User menu" 5 | icon = cfg 6 | 7 | [1] 8 | menu = generic/kernel.sh 9 | condition = generic/kernel.sh 10 | title = "Boot Kernel" 11 | icon = exe 12 | 13 | [2] 14 | menu = generic/cat.sh 15 | title = "Text Viewer" 16 | icon = txt 17 | 18 | [3] 19 | menu = generic/hex.sh 20 | title = "Hex Viewer" 21 | icon = bin 22 | 23 | [4] 24 | menu = fatfs/rename.sh 25 | condition = fatfs/fatfs_test.sh 26 | title = "Rename" 27 | icon = rename 28 | 29 | [5] 30 | menu = fatfs/copy.sh 31 | condition = fatfs/copy_test.sh 32 | title = "Copy to ..." 33 | icon = copy 34 | 35 | [6] 36 | menu = fatfs/delete.sh 37 | condition = fatfs/fatfs_test.sh 38 | title = "Delete" 39 | icon = trash 40 | 41 | [7] 42 | menu = generic/info.sh 43 | condition = generic/info_test.sh 44 | title = "File Info" 45 | icon = info 46 | 47 | [8] 48 | menu = generic/dummy.sh 49 | hidden = 1 50 | title = "---- HOTKEY MENU ----" 51 | condition = generic/dummy.sh 52 | -------------------------------------------------------------------------------- /boot/grubfm/rules/generic/cat.sh: -------------------------------------------------------------------------------- 1 | grubfm_cat "${grubfm_file}"; 2 | -------------------------------------------------------------------------------- /boot/grubfm/rules/generic/custom.sh: -------------------------------------------------------------------------------- 1 | if [ -f "${theme_std}" ]; 2 | then 3 | export theme=${theme_std}; 4 | fi; 5 | configfile "(${grubfm_device})${grubfm_dir}${grubfm_filename}.grubfm"; 6 | -------------------------------------------------------------------------------- /boot/grubfm/rules/generic/custom_test.sh: -------------------------------------------------------------------------------- 1 | source ${prefix}/func.sh; 2 | 3 | if [ -f "(${grubfm_device})${grubfm_dir}${grubfm_filename}.grubfm" ]; 4 | then 5 | set grubfm_test=1; 6 | else 7 | set grubfm_test=0; 8 | fi; 9 | 10 | # hide user menu for *grubfm 11 | if regexp '[gG][rR][uU][bB][fF][mM]' "${grubfm_fileext}"; 12 | then 13 | set grubfm_test=0; 14 | fi; 15 | -------------------------------------------------------------------------------- /boot/grubfm/rules/generic/dummy.sh: -------------------------------------------------------------------------------- 1 | source ${prefix}/func.sh; 2 | if [ -f "${theme_fm}" ]; 3 | then 4 | export theme=${theme_fm}; 5 | fi; 6 | 7 | hiddenentry " " --hotkey f1 { 8 | configfile ${prefix}/hwinfo.sh; 9 | } 10 | 11 | hiddenentry " " --hotkey f2 { 12 | grubfm_open "${grubfm_file}"; 13 | } 14 | 15 | hiddenentry " " --hotkey f3 { 16 | configfile ${prefix}/osdetect.sh; 17 | } 18 | 19 | hiddenentry " " --hotkey f4 { 20 | configfile ${prefix}/settings.sh; 21 | } 22 | 23 | hiddenentry " " --hotkey f5 { 24 | configfile ${prefix}/util.sh; 25 | } 26 | 27 | hiddenentry " " --hotkey f6 { 28 | configfile ${prefix}/power.sh; 29 | } 30 | -------------------------------------------------------------------------------- /boot/grubfm/rules/generic/hex.sh: -------------------------------------------------------------------------------- 1 | grubfm_hex "${grubfm_file}"; 2 | -------------------------------------------------------------------------------- /boot/grubfm/rules/generic/info.sh: -------------------------------------------------------------------------------- 1 | source ${prefix}/func.sh; 2 | 3 | if [ -f "${theme_info}" ]; 4 | then 5 | export theme=${theme_info}; 6 | fi; 7 | 8 | stat -s size -z "${grubfm_file}"; 9 | stat -s info "${grubfm_file}"; 10 | regexp -s 1:hsize -s 2:offset '^([0-9a-zA-Z\.]+) [0-9] ([0-9]+)$' "${info}"; 11 | 12 | menuentry $"File Info -- Press [ENTER] to exit" --class info { 13 | grubfm_open "${grubfm_file}"; 14 | } 15 | 16 | menuentry "${grubfm_name}" --class file { 17 | grubfm_open "${grubfm_file}"; 18 | } 19 | 20 | menuentry $"Type: ${grubfm_fileext}" --class cfg { 21 | grubfm_open "${grubfm_file}"; 22 | } 23 | 24 | menuentry $"Path:" --class dir { 25 | grubfm_open "${grubfm_file}"; 26 | } 27 | 28 | menuentry " ${grubfm_file}" { 29 | grubfm_open "${grubfm_file}"; 30 | } 31 | 32 | menuentry $"Size: ${hsize} (${size})" --class hdd { 33 | grubfm_open "${grubfm_file}"; 34 | } 35 | 36 | menuentry $"Offset on disk: ${offset}" --class hdd { 37 | grubfm_open "${grubfm_file}"; 38 | } 39 | 40 | set frag=0; 41 | probe --set=fs -f "${grubfm_device}"; 42 | if [ "${fs}" = "fat" -o "${fs}" = "exfat" -o "${fs}" = "ntfs" ]; 43 | then 44 | stat --set=frag -c -q "${grubfm_file}"; 45 | fi; 46 | if [ "${frag}" = "1" ]; 47 | then 48 | menuentry $"File is contiguous." --class frag { 49 | grubfm_open "${grubfm_file}"; 50 | } 51 | fi; 52 | if [ "${frag}" -gt 1 ]; 53 | then 54 | menuentry $"File is non-contiguous. (${frag} fragments)" --class frag { 55 | grubfm_open "${grubfm_file}"; 56 | } 57 | fi; 58 | -------------------------------------------------------------------------------- /boot/grubfm/rules/generic/info_test.sh: -------------------------------------------------------------------------------- 1 | source ${prefix}/func.sh; 2 | 3 | menuentry $"File Info (${grubfm_name})" --class info { 4 | configfile ${prefix}/rules/generic/info.sh; 5 | } 6 | -------------------------------------------------------------------------------- /boot/grubfm/rules/generic/kernel.sh: -------------------------------------------------------------------------------- 1 | if file --is-x86-linux "${grubfm_file}"; 2 | then 3 | menuentry $"Boot Linux Kernel" --class exe { 4 | if [ "$grub_platform" = "efi" ]; 5 | then 6 | linuxefi "${grubfm_file}"; 7 | else 8 | linux "${grubfm_file}"; 9 | fi; 10 | } 11 | fi; 12 | 13 | if file --is-x86-multiboot "${grubfm_file}"; 14 | then 15 | menuentry $"Boot Multiboot Kernel" --class exe { 16 | set root="${grubfm_device}"; 17 | multiboot "${grubfm_file}"; 18 | } 19 | fi; 20 | 21 | if file --is-x86-multiboot2 "${grubfm_file}"; 22 | then 23 | menuentry $"Boot Multiboot2 Kernel" --class exe { 24 | multiboot2 "${grubfm_file}"; 25 | } 26 | fi; 27 | 28 | if file --is-x86-bios-bootsector "${grubfm_file}"; 29 | then 30 | menuentry $"Chainload BIOS Boot Sector" --class bin { 31 | chainloader --force "${grubfm_file}"; 32 | } 33 | fi; 34 | -------------------------------------------------------------------------------- /boot/grubfm/rules/gkb/keymap.sh: -------------------------------------------------------------------------------- 1 | echo $"Loading ..." 2 | terminal_input at_keyboard; 3 | keymap "${grubfm_file}"; 4 | sleep 1; 5 | -------------------------------------------------------------------------------- /boot/grubfm/rules/img/fdd.sh: -------------------------------------------------------------------------------- 1 | source ${prefix}/func.sh; 2 | 3 | if [ "$grub_platform" = "efi" ]; 4 | then 5 | map --type=FD "${grubfm_file}"; 6 | else 7 | to_g4d_path "${grubfm_file}"; 8 | if [ -n "${g4d_path}" ]; 9 | then 10 | set g4d_cmd="map --mem (rd)+1 (fd0);map --hook;configfile (fd0)/menu.lst"; 11 | to_g4d_menu "set file=${g4d_path}\x0amap --mem %file% (fd0)\x0amap --hook\x0arootnoverify (fd0)\x0achainloader +1\x0aboot"; 12 | linux ${prefix}/grub.exe --config-file=${g4d_cmd}; 13 | initrd (rd); 14 | else 15 | set enable_progress_indicator=1; 16 | linux16 ${prefix}/memdisk floppy raw; 17 | initrd16 "${grubfm_file}"; 18 | fi; 19 | boot; 20 | fi; 21 | -------------------------------------------------------------------------------- /boot/grubfm/rules/img/hdd.sh: -------------------------------------------------------------------------------- 1 | source ${prefix}/func.sh; 2 | 3 | if [ "$grub_platform" = "efi" ]; 4 | then 5 | map "${grubfm_file}"; 6 | else 7 | to_g4d_path "${grubfm_file}"; 8 | if [ -n "${g4d_path}" ]; 9 | then 10 | set g4d_cmd="map --mem (rd)+1 (fd0);map --hook;configfile (fd0)/menu.lst"; 11 | to_g4d_menu "set file=${g4d_path}\x0amap %file% (hd-1) || map --mem %file% (hd-1)\x0amap --hook\x0arootnoverify (hd-1)\x0achainloader +1\x0aboot"; 12 | linux ${prefix}/grub.exe --config-file=${g4d_cmd}; 13 | initrd (rd); 14 | else 15 | set enable_progress_indicator=1; 16 | linux16 ${prefix}/memdisk harddisk raw; 17 | initrd16 "${grubfm_file}"; 18 | fi; 19 | boot; 20 | fi; 21 | -------------------------------------------------------------------------------- /boot/grubfm/rules/iso/buildpe.sh: -------------------------------------------------------------------------------- 1 | 2 | # build_pe WIM_FILE 3 | function bootpe { 4 | if wimtools --is64 --index=2 "${1}"; 5 | then 6 | set sfx="(install)/sfx64.exe"; 7 | else 8 | set sfx="(install)/sfx32.exe"; 9 | fi; 10 | set lang=en_US; 11 | terminal_output console; 12 | loopback wimboot ${prefix}/wimboot.xz; 13 | loopback install ${prefix}/explorer.xz; 14 | wimboot --testmode=no \ 15 | @:bootmgfw.efi:(wimboot)/bootmgfw.efi \ 16 | @:sfx64.exe:${sfx} \ 17 | @:winpeshl.ini:(install)/winpeshl.ini \ 18 | @:boot.wim:"${1}"; 19 | } 20 | 21 | export distro="Windows PE"; 22 | 23 | menuentry $"Boot ${distro} From ISO" --class nt6 { 24 | loopback -d loop; 25 | loopback loop "${grubfm_file}"; 26 | set wim="(loop)/sources/boot.wim"; 27 | set wim32="(loop)/x86/sources/boot.wim"; 28 | set wim64="(loop)/x64/sources/boot.wim"; 29 | if [ -f "${wim32}" -a "${grub_cpu}" = "i386" ]; 30 | then 31 | bootpe "${wim32}"; 32 | elif [ -f "${wim64}" -a "${grub_cpu}" = "x86_64" ]; 33 | then 34 | bootpe "${wim64}"; 35 | else 36 | bootpe "${wim}"; 37 | fi; 38 | } 39 | -------------------------------------------------------------------------------- /boot/grubfm/rules/iso/e2b.sh: -------------------------------------------------------------------------------- 1 | source ${prefix}/func.sh; 2 | 3 | stat --set=frag -c -q "${grubfm_file}"; 4 | if [ "${frag}" != "1" ]; 5 | then 6 | echo $"ERROR:" 7 | echo $"File is non-contiguous. (${frag} fragments)"; 8 | sleep 3; 9 | return; 10 | fi; 11 | 12 | if [ -d (${grubfm_disk},4) ]; 13 | then 14 | echo $"WARNING: Will erase ALL data on (${grubfm_disk},4)"; 15 | echo $"Press [1] to continue. Press any other key to return."; 16 | getkey key; 17 | else 18 | key=49; 19 | fi; 20 | if [ x$key = x49 ]; 21 | then 22 | partnew --type=0x00 --file="${grubfm_file}" "${grubfm_disk}" 4; 23 | if [ "$grub_platform" = "efi" ]; 24 | then 25 | map -f "${grubfm_file}"; 26 | else 27 | to_g4d_path "${grubfm_file}"; 28 | if [ -n "${g4d_path}" ]; 29 | then 30 | set g4d_cmd="map --mem (rd)+1 (fd0);map --hook;configfile (fd0)/menu.lst"; 31 | to_g4d_menu "set file=${g4d_path}\x0amap %file% (0xff)\x0amap --hook\x0achainloader (0xff)\x0aboot"; 32 | linux ${prefix}/grub.exe --config-file=${g4d_cmd}; 33 | initrd (rd); 34 | fi; 35 | fi; 36 | else 37 | echo $"Canceled."; 38 | sleep 3; 39 | fi; 40 | -------------------------------------------------------------------------------- /boot/grubfm/rules/iso/e2b_test.sh: -------------------------------------------------------------------------------- 1 | source ${prefix}/func.sh; 2 | 3 | if regexp 'hd[0-9]+,[msdos]*[1-3]' "${grubfm_device}"; 4 | then 5 | set grubfm_test=1; 6 | fi; 7 | 8 | probe --set=partmap -p "${grubfm_device}"; 9 | if [ "${partmap}" = "msdos" -a "${grubfm_test}" = "1" ]; 10 | then 11 | set grubfm_test=1; 12 | else 13 | set grubfm_test=0; 14 | fi; 15 | -------------------------------------------------------------------------------- /boot/grubfm/rules/iso/loop.sh: -------------------------------------------------------------------------------- 1 | source ${prefix}/func.sh; 2 | 3 | loopback -d loop; 4 | loopback loop "${grubfm_file}"; 5 | probe --set=rootuuid -u "(${grubfm_device})"; 6 | export iso_path="${grubfm_path}"; 7 | export rootuuid; 8 | if [ -f "${theme_std}" ]; 9 | then 10 | export theme=${theme_std}; 11 | fi; 12 | export root=loop; 13 | configfile /boot/grub/loopback.cfg; 14 | -------------------------------------------------------------------------------- /boot/grubfm/rules/iso/loop_test.sh: -------------------------------------------------------------------------------- 1 | source ${prefix}/func.sh; 2 | 3 | if regexp '^hd.*' "${grubfm_device}"; 4 | then 5 | loopback -d loop; 6 | loopback loop "${grubfm_file}"; 7 | if [ -f (loop)/boot/grub/loopback.cfg ]; 8 | then 9 | set grubfm_test=1; 10 | else 11 | set grubfm_test=0; 12 | fi; 13 | 14 | source ${prefix}/rules/iso/loop_detect.sh; 15 | loopback -d loop; 16 | fi; 17 | -------------------------------------------------------------------------------- /boot/grubfm/rules/iso/map.sh: -------------------------------------------------------------------------------- 1 | source ${prefix}/func.sh; 2 | 3 | if [ "$grub_platform" = "efi" ]; 4 | then 5 | map -f -g "${grubfm_file}"; 6 | else 7 | to_g4d_path "${grubfm_file}"; 8 | if [ -n "${g4d_path}" ]; 9 | then 10 | set g4d_cmd="map --mem (rd)+1 (fd0);map --hook;configfile (fd0)/menu.lst"; 11 | to_g4d_menu "set file=${g4d_path}\x0amap %file% (0xff) || map --mem %file% (0xff)\x0amap --hook\x0achainloader (0xff)\x0aboot"; 12 | linux ${prefix}/grub.exe --config-file=${g4d_cmd}; 13 | initrd (rd); 14 | else 15 | set enable_progress_indicator=1; 16 | linux16 ${prefix}/memdisk iso raw; 17 | initrd16 "${grubfm_file}"; 18 | fi; 19 | boot; 20 | fi; 21 | -------------------------------------------------------------------------------- /boot/grubfm/rules/iso/win.sh: -------------------------------------------------------------------------------- 1 | source ${prefix}/distro/win.sh; 2 | -------------------------------------------------------------------------------- /boot/grubfm/rules/lst/g4d.sh: -------------------------------------------------------------------------------- 1 | source ${prefix}/func.sh; 2 | 3 | to_g4d_path "${grubfm_file}"; 4 | if [ -n "${g4d_path}" ]; 5 | then 6 | set g4d_cmd="find --set-root --ignore-floppies /fm.loop;configfile ${g4d_path};"; 7 | linux ${prefix}/grub.exe --config-file=${g4d_cmd}; 8 | boot; 9 | fi; 10 | -------------------------------------------------------------------------------- /boot/grubfm/rules/lst/grub.sh: -------------------------------------------------------------------------------- 1 | source ${prefix}/func.sh; 2 | 3 | set root=${grubfm_device}; 4 | if [ -f "${theme_std}" ]; 5 | then 6 | export theme=${theme_std}; 7 | fi; 8 | legacy_configfile "${grubfm_file}"; 9 | -------------------------------------------------------------------------------- /boot/grubfm/rules/lua/lua.sh: -------------------------------------------------------------------------------- 1 | lua "${grubfm_file}"; 2 | -------------------------------------------------------------------------------- /boot/grubfm/rules/mod/mod.sh: -------------------------------------------------------------------------------- 1 | insmod "${grubfm_file}"; 2 | -------------------------------------------------------------------------------- /boot/grubfm/rules/nes/nes.sh: -------------------------------------------------------------------------------- 1 | nes "${grubfm_file}" 3; 2 | -------------------------------------------------------------------------------- /boot/grubfm/rules/pf2/pf2.sh: -------------------------------------------------------------------------------- 1 | loadfont "${grubfm_file}"; 2 | -------------------------------------------------------------------------------- /boot/grubfm/rules/png/view.sh: -------------------------------------------------------------------------------- 1 | set bmp_path="${grubfm_file}"; 2 | lua ${prefix}/view.lua; 3 | -------------------------------------------------------------------------------- /boot/grubfm/rules/vhd/map.sh: -------------------------------------------------------------------------------- 1 | source ${prefix}/func.sh; 2 | 3 | if [ "$grub_platform" = "efi" ]; 4 | then 5 | map --type=HD "${grubfm_file}"; 6 | else 7 | to_g4d_path "${grubfm_file}"; 8 | if [ -n "${g4d_path}" ]; 9 | then 10 | set g4d_cmd="map --mem (rd)+1 (fd0);map --hook;configfile (fd0)/menu.lst"; 11 | to_g4d_menu "set file=${g4d_path}\x0amap %file% (hd0) || map --mem %file% (hd0)\x0amap --hook\x0arootnoverify (hd0)\x0achainloader +1\x0aboot"; 12 | linux ${prefix}/grub.exe --config-file=${g4d_cmd}; 13 | initrd (rd); 14 | else 15 | set enable_progress_indicator=1; 16 | linux16 ${prefix}/memdisk harddisk raw; 17 | initrd16 "${grubfm_file}"; 18 | fi; 19 | boot; 20 | fi; 21 | -------------------------------------------------------------------------------- /boot/grubfm/rules/vhd/ntboot.sh: -------------------------------------------------------------------------------- 1 | source ${prefix}/func.sh; 2 | set lang=en_US; 3 | terminal_output console; 4 | loopback wimboot ${prefix}/wimboot.xz; 5 | ntboot --vhd --efi=(wimboot)/bootmgfw.efi "${grubfm_file}"; 6 | -------------------------------------------------------------------------------- /boot/grubfm/rules/wim/nt5.sh: -------------------------------------------------------------------------------- 1 | source ${prefix}/func.sh; 2 | 3 | 4 | to_g4d_path "${grubfm_file}"; 5 | if [ -n "${g4d_path}" ]; 6 | then 7 | set g4d_cmd="map --mem (rd)+1 (fd0);map --hook;configfile (fd0)/menu.lst"; 8 | to_g4d_menu "set file=${g4d_path}\x0a(fd0)/NTBOOT pe1=%file%"; 9 | linux (rd)/NTBOOT.MOD/grub.exe --config-file=${g4d_cmd}; 10 | initrd (rd); 11 | boot; 12 | fi; 13 | -------------------------------------------------------------------------------- /boot/grubfm/rules/wim/ntboot.sh: -------------------------------------------------------------------------------- 1 | source ${prefix}/func.sh; 2 | set lang=en_US; 3 | terminal_output console; 4 | loopback wimboot ${prefix}/wimboot.xz; 5 | ntboot --testmode=no --efi=(wimboot)/bootmgfw.efi "${grubfm_file}"; 6 | -------------------------------------------------------------------------------- /boot/grubfm/rules/wim/wimboot.sh: -------------------------------------------------------------------------------- 1 | set lang=en_US; 2 | terminal_output console; 3 | loopback wimboot ${prefix}/wimboot.xz; 4 | wimboot --rawwim --testmode=no \ 5 | @:bootmgfw.efi:(wimboot)/bootmgfw.efi \ 6 | @:boot.wim:"${grubfm_file}"; 7 | -------------------------------------------------------------------------------- /boot/grubfm/search.lua: -------------------------------------------------------------------------------- 1 | #!lua 2 | -- Grub2-FileManager 3 | -- Copyright (C) 2017,2018,2020 A1ive. 4 | -- 5 | -- Grub2-FileManager is free software: you can redistribute it and/or modify 6 | -- it under the terms of the GNU General Public License as published by 7 | -- the Free Software Foundation, either version 3 of the License, or 8 | -- (at your option) any later version. 9 | -- 10 | -- Grub2-FileManager is distributed in the hope that it will be useful, 11 | -- but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | -- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | -- GNU General Public License for more details. 14 | -- 15 | -- You should have received a copy of the GNU General Public License 16 | -- along with Grub2-FileManager. If not, see . 17 | 18 | local function enum_subdir (name, isdir) 19 | if (isdir == 1) 20 | then 21 | return 22 | end 23 | local name_ext = string.match (string.lower (name), ".*%.(.*)$") 24 | if (name_ext ~= nil and name_ext == search_ext) 25 | then 26 | local title = search_path .. subdir .. name 27 | --print (title) 28 | grub.add_icon_menu (search_ico, "grubfm_open \"" .. title .. "\"", title) 29 | end 30 | end 31 | 32 | local function enum_file (name, isdir) 33 | if (isdir == 1) 34 | then 35 | subdir = name .. "/" 36 | grub.enum_file (enum_subdir, search_path .. "/" .. subdir) 37 | end 38 | local name_ext = string.match (string.lower (name), ".*%.(.*)$") 39 | if (name_ext ~= nil and name_ext == search_ext) 40 | then 41 | local title = search_path .. name 42 | --print (title) 43 | grub.add_icon_menu (search_ico, "grubfm_open \"" .. title .. "\"", title) 44 | end 45 | end 46 | 47 | local function search_main () 48 | if (search_path == nil or search_ext == nil or search_ico == nil) 49 | then 50 | return 51 | end 52 | grub.enum_file (enum_file, search_path .. "/") 53 | end 54 | 55 | --grub.cls () 56 | --print ("----") 57 | search_path = grub.getenv ("grubfm_current_path") 58 | search_ext = grub.getenv ("grubfm_search_ext") 59 | search_ico = grub.getenv ("grubfm_search_ico") 60 | search_main () 61 | --print ("debug") 62 | --input.getkey () 63 | -------------------------------------------------------------------------------- /boot/grubfm/search.sh: -------------------------------------------------------------------------------- 1 | # Grub2-FileManager 2 | # Copyright (C) 2020 A1ive. 3 | # 4 | # Grub2-FileManager is free software: you can redistribute it and/or modify 5 | # it under the terms of the GNU General Public License as published by 6 | # the Free Software Foundation, either version 3 of the License, or 7 | # (at your option) any later version. 8 | # 9 | # Grub2-FileManager is distributed in the hope that it will be useful, 10 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | # GNU General Public License for more details. 13 | # 14 | # You should have received a copy of the GNU General Public License 15 | # along with Grub2-FileManager. If not, see . 16 | 17 | function search_prepare { 18 | if [ -f "${theme_std}" ]; 19 | then 20 | export theme=${theme_std}; 21 | fi; 22 | menuentry $"Back" --class go-previous --hotkey esc { 23 | grubfm "${grubfm_current_path}"; 24 | } 25 | } 26 | 27 | function search_list { 28 | set grubfm_search_ext=${1}; 29 | set grubfm_search_ico=${2}; 30 | lua ${prefix}/search.lua; 31 | } 32 | 33 | submenu "[I] *.iso" --class iso --hotkey "i" { 34 | search_prepare; 35 | search_list iso iso; 36 | } 37 | 38 | submenu "[W] *.wim" --class wim --hotkey "w" { 39 | search_prepare; 40 | search_list wim wim; 41 | } 42 | 43 | submenu "[V] *.vhd | *.vhdx" --class img --hotkey "v" { 44 | search_prepare; 45 | search_list vhd img; 46 | search_list vhdx img; 47 | } 48 | 49 | if [ "$grub_platform" = "efi" ]; 50 | then 51 | submenu "[U] *.efi" --class exe --hotkey "u" { 52 | search_prepare; 53 | search_list efi uefi; 54 | } 55 | fi; 56 | 57 | submenu "[M] *.img" --class img --hotkey "m" { 58 | search_prepare; 59 | search_list img img; 60 | } 61 | 62 | source ${prefix}/global.sh; 63 | -------------------------------------------------------------------------------- /boot/grubfm/themes/slack/background.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1ive/grub2-filemanager/918524dc18f08eba1ade421282b54a7b2787fa15/boot/grubfm/themes/slack/background.png -------------------------------------------------------------------------------- /boot/grubfm/themes/slack/dock/boot.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1ive/grub2-filemanager/918524dc18f08eba1ade421282b54a7b2787fa15/boot/grubfm/themes/slack/dock/boot.png -------------------------------------------------------------------------------- /boot/grubfm/themes/slack/dock/fm.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1ive/grub2-filemanager/918524dc18f08eba1ade421282b54a7b2787fa15/boot/grubfm/themes/slack/dock/fm.png -------------------------------------------------------------------------------- /boot/grubfm/themes/slack/dock/hwinfo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1ive/grub2-filemanager/918524dc18f08eba1ade421282b54a7b2787fa15/boot/grubfm/themes/slack/dock/hwinfo.png -------------------------------------------------------------------------------- /boot/grubfm/themes/slack/dock/logout.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1ive/grub2-filemanager/918524dc18f08eba1ade421282b54a7b2787fa15/boot/grubfm/themes/slack/dock/logout.png -------------------------------------------------------------------------------- /boot/grubfm/themes/slack/dock/search.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1ive/grub2-filemanager/918524dc18f08eba1ade421282b54a7b2787fa15/boot/grubfm/themes/slack/dock/search.png -------------------------------------------------------------------------------- /boot/grubfm/themes/slack/dock/settings.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1ive/grub2-filemanager/918524dc18f08eba1ade421282b54a7b2787fa15/boot/grubfm/themes/slack/dock/settings.png -------------------------------------------------------------------------------- /boot/grubfm/themes/slack/dock/space.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1ive/grub2-filemanager/918524dc18f08eba1ade421282b54a7b2787fa15/boot/grubfm/themes/slack/dock/space.png -------------------------------------------------------------------------------- /boot/grubfm/themes/slack/dock/util.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1ive/grub2-filemanager/918524dc18f08eba1ade421282b54a7b2787fa15/boot/grubfm/themes/slack/dock/util.png -------------------------------------------------------------------------------- /boot/grubfm/themes/slack/fm.txt: -------------------------------------------------------------------------------- 1 | # Global Property 2 | title-text: "" 3 | title-color: "#000000" 4 | message-color: "#333333" 5 | message-bg-color: "#f2f2f2" 6 | desktop-color: "#000000" 7 | desktop-image: "background.png" 8 | terminal-box: "term_bkg_*.png" 9 | 10 | # Show the boot menu 11 | + boot_menu { 12 | left = 15% 13 | width = 70% 14 | top = 15% 15 | height = 70% 16 | item_color = "#f5f5f5" 17 | selected_item_color = "#f5f5f5" 18 | item_height = 38 19 | item_padding = 15 20 | item_spacing = 5 21 | icon_width = 32 22 | icon_height = 32 23 | item_icon_space = 20 24 | selected_item_pixmap_style= "select_bkg_*.png" 25 | menu_pixmap_style = "menu_bkg_*.png" 26 | scrollbar = true 27 | scrollbar_width = 16 28 | scrollbar_thumb = "sb_thumb_*.png" 29 | scrollbar_frame = "sb_frame_*.png" 30 | } 31 | 32 | + hbox { 33 | top = 100%-55 34 | left = 36% 35 | width = 27% 36 | + vbox { 37 | + label {text = "[F1]" color = "#ffffff"} 38 | + image {file = "dock/hwinfo.png"} 39 | } 40 | + image {file = "dock/space.png"} 41 | + vbox { 42 | + label {text = "[F2]" color = "#ffffff"} 43 | + image {file = "dock/fm.png"} 44 | } 45 | + image {file = "dock/space.png"} 46 | + vbox { 47 | + label {text = "[F3]" color = "#ffffff"} 48 | + image {file = "dock/boot.png"} 49 | } 50 | + image {file = "dock/space.png"} 51 | + vbox { 52 | + label {text = "[F4]" color = "#ffffff"} 53 | + image {file = "dock/settings.png"} 54 | } 55 | + image {file = "dock/space.png"} 56 | + vbox { 57 | + label {text = "[F5]" color = "#ffffff"} 58 | + image {file = "dock/util.png"} 59 | } 60 | + image {file = "dock/space.png"} 61 | + vbox { 62 | + label {text = "[F6]" color = "#ffffff"} 63 | + image {file = "dock/logout.png"} 64 | } 65 | } 66 | 67 | + hbox { 68 | top = 100%-21 69 | left = 0% 70 | + image {file = "dock/search.png"} 71 | + label {text = "[Ctrl+F]" color = "#ffffff"} 72 | } 73 | -------------------------------------------------------------------------------- /boot/grubfm/themes/slack/hwinfo/icons/board.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1ive/grub2-filemanager/918524dc18f08eba1ade421282b54a7b2787fa15/boot/grubfm/themes/slack/hwinfo/icons/board.png -------------------------------------------------------------------------------- /boot/grubfm/themes/slack/hwinfo/icons/cpu.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1ive/grub2-filemanager/918524dc18f08eba1ade421282b54a7b2787fa15/boot/grubfm/themes/slack/hwinfo/icons/cpu.png -------------------------------------------------------------------------------- /boot/grubfm/themes/slack/hwinfo/icons/grub.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1ive/grub2-filemanager/918524dc18f08eba1ade421282b54a7b2787fa15/boot/grubfm/themes/slack/hwinfo/icons/grub.png -------------------------------------------------------------------------------- /boot/grubfm/themes/slack/hwinfo/icons/ram.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1ive/grub2-filemanager/918524dc18f08eba1ade421282b54a7b2787fa15/boot/grubfm/themes/slack/hwinfo/icons/ram.png -------------------------------------------------------------------------------- /boot/grubfm/themes/slack/hwinfo/menu_bkg_c.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1ive/grub2-filemanager/918524dc18f08eba1ade421282b54a7b2787fa15/boot/grubfm/themes/slack/hwinfo/menu_bkg_c.png -------------------------------------------------------------------------------- /boot/grubfm/themes/slack/hwinfo/select_bkg_c.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1ive/grub2-filemanager/918524dc18f08eba1ade421282b54a7b2787fa15/boot/grubfm/themes/slack/hwinfo/select_bkg_c.png -------------------------------------------------------------------------------- /boot/grubfm/themes/slack/icons/7z.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1ive/grub2-filemanager/918524dc18f08eba1ade421282b54a7b2787fa15/boot/grubfm/themes/slack/icons/7z.png -------------------------------------------------------------------------------- /boot/grubfm/themes/slack/icons/acronis.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1ive/grub2-filemanager/918524dc18f08eba1ade421282b54a7b2787fa15/boot/grubfm/themes/slack/icons/acronis.png -------------------------------------------------------------------------------- /boot/grubfm/themes/slack/icons/aioboot.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1ive/grub2-filemanager/918524dc18f08eba1ade421282b54a7b2787fa15/boot/grubfm/themes/slack/icons/aioboot.png -------------------------------------------------------------------------------- /boot/grubfm/themes/slack/icons/android.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1ive/grub2-filemanager/918524dc18f08eba1ade421282b54a7b2787fa15/boot/grubfm/themes/slack/icons/android.png -------------------------------------------------------------------------------- /boot/grubfm/themes/slack/icons/archlinux.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1ive/grub2-filemanager/918524dc18f08eba1ade421282b54a7b2787fa15/boot/grubfm/themes/slack/icons/archlinux.png -------------------------------------------------------------------------------- /boot/grubfm/themes/slack/icons/bin.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1ive/grub2-filemanager/918524dc18f08eba1ade421282b54a7b2787fa15/boot/grubfm/themes/slack/icons/bin.png -------------------------------------------------------------------------------- /boot/grubfm/themes/slack/icons/c.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1ive/grub2-filemanager/918524dc18f08eba1ade421282b54a7b2787fa15/boot/grubfm/themes/slack/icons/c.png -------------------------------------------------------------------------------- /boot/grubfm/themes/slack/icons/cancel.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1ive/grub2-filemanager/918524dc18f08eba1ade421282b54a7b2787fa15/boot/grubfm/themes/slack/icons/cancel.png -------------------------------------------------------------------------------- /boot/grubfm/themes/slack/icons/cfg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1ive/grub2-filemanager/918524dc18f08eba1ade421282b54a7b2787fa15/boot/grubfm/themes/slack/icons/cfg.png -------------------------------------------------------------------------------- /boot/grubfm/themes/slack/icons/chakra.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1ive/grub2-filemanager/918524dc18f08eba1ade421282b54a7b2787fa15/boot/grubfm/themes/slack/icons/chakra.png -------------------------------------------------------------------------------- /boot/grubfm/themes/slack/icons/check.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1ive/grub2-filemanager/918524dc18f08eba1ade421282b54a7b2787fa15/boot/grubfm/themes/slack/icons/check.png -------------------------------------------------------------------------------- /boot/grubfm/themes/slack/icons/copy.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1ive/grub2-filemanager/918524dc18f08eba1ade421282b54a7b2787fa15/boot/grubfm/themes/slack/icons/copy.png -------------------------------------------------------------------------------- /boot/grubfm/themes/slack/icons/crt.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1ive/grub2-filemanager/918524dc18f08eba1ade421282b54a7b2787fa15/boot/grubfm/themes/slack/icons/crt.png -------------------------------------------------------------------------------- /boot/grubfm/themes/slack/icons/debian.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1ive/grub2-filemanager/918524dc18f08eba1ade421282b54a7b2787fa15/boot/grubfm/themes/slack/icons/debian.png -------------------------------------------------------------------------------- /boot/grubfm/themes/slack/icons/devuan.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1ive/grub2-filemanager/918524dc18f08eba1ade421282b54a7b2787fa15/boot/grubfm/themes/slack/icons/devuan.png -------------------------------------------------------------------------------- /boot/grubfm/themes/slack/icons/dir.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1ive/grub2-filemanager/918524dc18f08eba1ade421282b54a7b2787fa15/boot/grubfm/themes/slack/icons/dir.png -------------------------------------------------------------------------------- /boot/grubfm/themes/slack/icons/doc.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1ive/grub2-filemanager/918524dc18f08eba1ade421282b54a7b2787fa15/boot/grubfm/themes/slack/icons/doc.png -------------------------------------------------------------------------------- /boot/grubfm/themes/slack/icons/elive.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1ive/grub2-filemanager/918524dc18f08eba1ade421282b54a7b2787fa15/boot/grubfm/themes/slack/icons/elive.png -------------------------------------------------------------------------------- /boot/grubfm/themes/slack/icons/exe.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1ive/grub2-filemanager/918524dc18f08eba1ade421282b54a7b2787fa15/boot/grubfm/themes/slack/icons/exe.png -------------------------------------------------------------------------------- /boot/grubfm/themes/slack/icons/extix.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1ive/grub2-filemanager/918524dc18f08eba1ade421282b54a7b2787fa15/boot/grubfm/themes/slack/icons/extix.png -------------------------------------------------------------------------------- /boot/grubfm/themes/slack/icons/fedora.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1ive/grub2-filemanager/918524dc18f08eba1ade421282b54a7b2787fa15/boot/grubfm/themes/slack/icons/fedora.png -------------------------------------------------------------------------------- /boot/grubfm/themes/slack/icons/file.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1ive/grub2-filemanager/918524dc18f08eba1ade421282b54a7b2787fa15/boot/grubfm/themes/slack/icons/file.png -------------------------------------------------------------------------------- /boot/grubfm/themes/slack/icons/frag.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1ive/grub2-filemanager/918524dc18f08eba1ade421282b54a7b2787fa15/boot/grubfm/themes/slack/icons/frag.png -------------------------------------------------------------------------------- /boot/grubfm/themes/slack/icons/freebsd.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1ive/grub2-filemanager/918524dc18f08eba1ade421282b54a7b2787fa15/boot/grubfm/themes/slack/icons/freebsd.png -------------------------------------------------------------------------------- /boot/grubfm/themes/slack/icons/gentoo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1ive/grub2-filemanager/918524dc18f08eba1ade421282b54a7b2787fa15/boot/grubfm/themes/slack/icons/gentoo.png -------------------------------------------------------------------------------- /boot/grubfm/themes/slack/icons/gkb.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1ive/grub2-filemanager/918524dc18f08eba1ade421282b54a7b2787fa15/boot/grubfm/themes/slack/icons/gkb.png -------------------------------------------------------------------------------- /boot/grubfm/themes/slack/icons/gnu-linux.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1ive/grub2-filemanager/918524dc18f08eba1ade421282b54a7b2787fa15/boot/grubfm/themes/slack/icons/gnu-linux.png -------------------------------------------------------------------------------- /boot/grubfm/themes/slack/icons/go-previous.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1ive/grub2-filemanager/918524dc18f08eba1ade421282b54a7b2787fa15/boot/grubfm/themes/slack/icons/go-previous.png -------------------------------------------------------------------------------- /boot/grubfm/themes/slack/icons/halt.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1ive/grub2-filemanager/918524dc18f08eba1ade421282b54a7b2787fa15/boot/grubfm/themes/slack/icons/halt.png -------------------------------------------------------------------------------- /boot/grubfm/themes/slack/icons/hdd.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1ive/grub2-filemanager/918524dc18f08eba1ade421282b54a7b2787fa15/boot/grubfm/themes/slack/icons/hdd.png -------------------------------------------------------------------------------- /boot/grubfm/themes/slack/icons/helenos.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1ive/grub2-filemanager/918524dc18f08eba1ade421282b54a7b2787fa15/boot/grubfm/themes/slack/icons/helenos.png -------------------------------------------------------------------------------- /boot/grubfm/themes/slack/icons/img.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1ive/grub2-filemanager/918524dc18f08eba1ade421282b54a7b2787fa15/boot/grubfm/themes/slack/icons/img.png -------------------------------------------------------------------------------- /boot/grubfm/themes/slack/icons/info.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1ive/grub2-filemanager/918524dc18f08eba1ade421282b54a7b2787fa15/boot/grubfm/themes/slack/icons/info.png -------------------------------------------------------------------------------- /boot/grubfm/themes/slack/icons/ipfire.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1ive/grub2-filemanager/918524dc18f08eba1ade421282b54a7b2787fa15/boot/grubfm/themes/slack/icons/ipfire.png -------------------------------------------------------------------------------- /boot/grubfm/themes/slack/icons/iso.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1ive/grub2-filemanager/918524dc18f08eba1ade421282b54a7b2787fa15/boot/grubfm/themes/slack/icons/iso.png -------------------------------------------------------------------------------- /boot/grubfm/themes/slack/icons/iso_file.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1ive/grub2-filemanager/918524dc18f08eba1ade421282b54a7b2787fa15/boot/grubfm/themes/slack/icons/iso_file.png -------------------------------------------------------------------------------- /boot/grubfm/themes/slack/icons/kaos.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1ive/grub2-filemanager/918524dc18f08eba1ade421282b54a7b2787fa15/boot/grubfm/themes/slack/icons/kaos.png -------------------------------------------------------------------------------- /boot/grubfm/themes/slack/icons/knoppix.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1ive/grub2-filemanager/918524dc18f08eba1ade421282b54a7b2787fa15/boot/grubfm/themes/slack/icons/knoppix.png -------------------------------------------------------------------------------- /boot/grubfm/themes/slack/icons/konboot.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1ive/grub2-filemanager/918524dc18f08eba1ade421282b54a7b2787fa15/boot/grubfm/themes/slack/icons/konboot.png -------------------------------------------------------------------------------- /boot/grubfm/themes/slack/icons/lang.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1ive/grub2-filemanager/918524dc18f08eba1ade421282b54a7b2787fa15/boot/grubfm/themes/slack/icons/lang.png -------------------------------------------------------------------------------- /boot/grubfm/themes/slack/icons/lua.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1ive/grub2-filemanager/918524dc18f08eba1ade421282b54a7b2787fa15/boot/grubfm/themes/slack/icons/lua.png -------------------------------------------------------------------------------- /boot/grubfm/themes/slack/icons/macOS.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1ive/grub2-filemanager/918524dc18f08eba1ade421282b54a7b2787fa15/boot/grubfm/themes/slack/icons/macOS.png -------------------------------------------------------------------------------- /boot/grubfm/themes/slack/icons/manjaro.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1ive/grub2-filemanager/918524dc18f08eba1ade421282b54a7b2787fa15/boot/grubfm/themes/slack/icons/manjaro.png -------------------------------------------------------------------------------- /boot/grubfm/themes/slack/icons/mem.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1ive/grub2-filemanager/918524dc18f08eba1ade421282b54a7b2787fa15/boot/grubfm/themes/slack/icons/mem.png -------------------------------------------------------------------------------- /boot/grubfm/themes/slack/icons/mod.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1ive/grub2-filemanager/918524dc18f08eba1ade421282b54a7b2787fa15/boot/grubfm/themes/slack/icons/mod.png -------------------------------------------------------------------------------- /boot/grubfm/themes/slack/icons/mp3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1ive/grub2-filemanager/918524dc18f08eba1ade421282b54a7b2787fa15/boot/grubfm/themes/slack/icons/mp3.png -------------------------------------------------------------------------------- /boot/grubfm/themes/slack/icons/mp4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1ive/grub2-filemanager/918524dc18f08eba1ade421282b54a7b2787fa15/boot/grubfm/themes/slack/icons/mp4.png -------------------------------------------------------------------------------- /boot/grubfm/themes/slack/icons/ms-dos.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1ive/grub2-filemanager/918524dc18f08eba1ade421282b54a7b2787fa15/boot/grubfm/themes/slack/icons/ms-dos.png -------------------------------------------------------------------------------- /boot/grubfm/themes/slack/icons/net.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1ive/grub2-filemanager/918524dc18f08eba1ade421282b54a7b2787fa15/boot/grubfm/themes/slack/icons/net.png -------------------------------------------------------------------------------- /boot/grubfm/themes/slack/icons/netbsd.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1ive/grub2-filemanager/918524dc18f08eba1ade421282b54a7b2787fa15/boot/grubfm/themes/slack/icons/netbsd.png -------------------------------------------------------------------------------- /boot/grubfm/themes/slack/icons/nt5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1ive/grub2-filemanager/918524dc18f08eba1ade421282b54a7b2787fa15/boot/grubfm/themes/slack/icons/nt5.png -------------------------------------------------------------------------------- /boot/grubfm/themes/slack/icons/nt6.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1ive/grub2-filemanager/918524dc18f08eba1ade421282b54a7b2787fa15/boot/grubfm/themes/slack/icons/nt6.png -------------------------------------------------------------------------------- /boot/grubfm/themes/slack/icons/openbsd.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1ive/grub2-filemanager/918524dc18f08eba1ade421282b54a7b2787fa15/boot/grubfm/themes/slack/icons/openbsd.png -------------------------------------------------------------------------------- /boot/grubfm/themes/slack/icons/opensuse.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1ive/grub2-filemanager/918524dc18f08eba1ade421282b54a7b2787fa15/boot/grubfm/themes/slack/icons/opensuse.png -------------------------------------------------------------------------------- /boot/grubfm/themes/slack/icons/pclinuxos.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1ive/grub2-filemanager/918524dc18f08eba1ade421282b54a7b2787fa15/boot/grubfm/themes/slack/icons/pclinuxos.png -------------------------------------------------------------------------------- /boot/grubfm/themes/slack/icons/pf2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1ive/grub2-filemanager/918524dc18f08eba1ade421282b54a7b2787fa15/boot/grubfm/themes/slack/icons/pf2.png -------------------------------------------------------------------------------- /boot/grubfm/themes/slack/icons/pmagic.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1ive/grub2-filemanager/918524dc18f08eba1ade421282b54a7b2787fa15/boot/grubfm/themes/slack/icons/pmagic.png -------------------------------------------------------------------------------- /boot/grubfm/themes/slack/icons/png.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1ive/grub2-filemanager/918524dc18f08eba1ade421282b54a7b2787fa15/boot/grubfm/themes/slack/icons/png.png -------------------------------------------------------------------------------- /boot/grubfm/themes/slack/icons/porteus.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1ive/grub2-filemanager/918524dc18f08eba1ade421282b54a7b2787fa15/boot/grubfm/themes/slack/icons/porteus.png -------------------------------------------------------------------------------- /boot/grubfm/themes/slack/icons/pxe.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1ive/grub2-filemanager/918524dc18f08eba1ade421282b54a7b2787fa15/boot/grubfm/themes/slack/icons/pxe.png -------------------------------------------------------------------------------- /boot/grubfm/themes/slack/icons/py.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1ive/grub2-filemanager/918524dc18f08eba1ade421282b54a7b2787fa15/boot/grubfm/themes/slack/icons/py.png -------------------------------------------------------------------------------- /boot/grubfm/themes/slack/icons/q4os.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1ive/grub2-filemanager/918524dc18f08eba1ade421282b54a7b2787fa15/boot/grubfm/themes/slack/icons/q4os.png -------------------------------------------------------------------------------- /boot/grubfm/themes/slack/icons/reboot.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1ive/grub2-filemanager/918524dc18f08eba1ade421282b54a7b2787fa15/boot/grubfm/themes/slack/icons/reboot.png -------------------------------------------------------------------------------- /boot/grubfm/themes/slack/icons/rename.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1ive/grub2-filemanager/918524dc18f08eba1ade421282b54a7b2787fa15/boot/grubfm/themes/slack/icons/rename.png -------------------------------------------------------------------------------- /boot/grubfm/themes/slack/icons/sabayon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1ive/grub2-filemanager/918524dc18f08eba1ade421282b54a7b2787fa15/boot/grubfm/themes/slack/icons/sabayon.png -------------------------------------------------------------------------------- /boot/grubfm/themes/slack/icons/screen.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1ive/grub2-filemanager/918524dc18f08eba1ade421282b54a7b2787fa15/boot/grubfm/themes/slack/icons/screen.png -------------------------------------------------------------------------------- /boot/grubfm/themes/slack/icons/search.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1ive/grub2-filemanager/918524dc18f08eba1ade421282b54a7b2787fa15/boot/grubfm/themes/slack/icons/search.png -------------------------------------------------------------------------------- /boot/grubfm/themes/slack/icons/settings.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1ive/grub2-filemanager/918524dc18f08eba1ade421282b54a7b2787fa15/boot/grubfm/themes/slack/icons/settings.png -------------------------------------------------------------------------------- /boot/grubfm/themes/slack/icons/sh.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1ive/grub2-filemanager/918524dc18f08eba1ade421282b54a7b2787fa15/boot/grubfm/themes/slack/icons/sh.png -------------------------------------------------------------------------------- /boot/grubfm/themes/slack/icons/siduction.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1ive/grub2-filemanager/918524dc18f08eba1ade421282b54a7b2787fa15/boot/grubfm/themes/slack/icons/siduction.png -------------------------------------------------------------------------------- /boot/grubfm/themes/slack/icons/slackware.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1ive/grub2-filemanager/918524dc18f08eba1ade421282b54a7b2787fa15/boot/grubfm/themes/slack/icons/slackware.png -------------------------------------------------------------------------------- /boot/grubfm/themes/slack/icons/slax.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1ive/grub2-filemanager/918524dc18f08eba1ade421282b54a7b2787fa15/boot/grubfm/themes/slack/icons/slax.png -------------------------------------------------------------------------------- /boot/grubfm/themes/slack/icons/solaris.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1ive/grub2-filemanager/918524dc18f08eba1ade421282b54a7b2787fa15/boot/grubfm/themes/slack/icons/solaris.png -------------------------------------------------------------------------------- /boot/grubfm/themes/slack/icons/sort.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1ive/grub2-filemanager/918524dc18f08eba1ade421282b54a7b2787fa15/boot/grubfm/themes/slack/icons/sort.png -------------------------------------------------------------------------------- /boot/grubfm/themes/slack/icons/strcase.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1ive/grub2-filemanager/918524dc18f08eba1ade421282b54a7b2787fa15/boot/grubfm/themes/slack/icons/strcase.png -------------------------------------------------------------------------------- /boot/grubfm/themes/slack/icons/tails.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1ive/grub2-filemanager/918524dc18f08eba1ade421282b54a7b2787fa15/boot/grubfm/themes/slack/icons/tails.png -------------------------------------------------------------------------------- /boot/grubfm/themes/slack/icons/trash.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1ive/grub2-filemanager/918524dc18f08eba1ade421282b54a7b2787fa15/boot/grubfm/themes/slack/icons/trash.png -------------------------------------------------------------------------------- /boot/grubfm/themes/slack/icons/txt.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1ive/grub2-filemanager/918524dc18f08eba1ade421282b54a7b2787fa15/boot/grubfm/themes/slack/icons/txt.png -------------------------------------------------------------------------------- /boot/grubfm/themes/slack/icons/ubuntu.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1ive/grub2-filemanager/918524dc18f08eba1ade421282b54a7b2787fa15/boot/grubfm/themes/slack/icons/ubuntu.png -------------------------------------------------------------------------------- /boot/grubfm/themes/slack/icons/uefi.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1ive/grub2-filemanager/918524dc18f08eba1ade421282b54a7b2787fa15/boot/grubfm/themes/slack/icons/uefi.png -------------------------------------------------------------------------------- /boot/grubfm/themes/slack/icons/ventoy.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1ive/grub2-filemanager/918524dc18f08eba1ade421282b54a7b2787fa15/boot/grubfm/themes/slack/icons/ventoy.png -------------------------------------------------------------------------------- /boot/grubfm/themes/slack/icons/wifislax.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1ive/grub2-filemanager/918524dc18f08eba1ade421282b54a7b2787fa15/boot/grubfm/themes/slack/icons/wifislax.png -------------------------------------------------------------------------------- /boot/grubfm/themes/slack/icons/wim.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1ive/grub2-filemanager/918524dc18f08eba1ade421282b54a7b2787fa15/boot/grubfm/themes/slack/icons/wim.png -------------------------------------------------------------------------------- /boot/grubfm/themes/slack/info.txt: -------------------------------------------------------------------------------- 1 | # Global Property 2 | title-text: "" 3 | title-color: "#000000" 4 | message-color: "#333333" 5 | message-bg-color: "#f2f2f2" 6 | desktop-color: "#000000" 7 | desktop-image: "background.png" 8 | terminal-box: "term_bkg_*.png" 9 | 10 | # Show the boot menu 11 | + boot_menu { 12 | left = 10% 13 | width = 80% 14 | top = 15% 15 | height = 70% 16 | item_color = "#f5f5f5" 17 | selected_item_color = "#f5f5f5" 18 | item_height = 30 19 | item_padding = 10 20 | item_spacing = 2 21 | icon_width = 24 22 | icon_height = 24 23 | item_icon_space = 4 24 | menu_pixmap_style = "term_bkg_*.png" 25 | scrollbar = true 26 | scrollbar_width = 16 27 | scrollbar_thumb = "sb_thumb_*.png" 28 | scrollbar_frame = "sb_frame_*.png" 29 | } 30 | -------------------------------------------------------------------------------- /boot/grubfm/themes/slack/menu_bkg_c.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1ive/grub2-filemanager/918524dc18f08eba1ade421282b54a7b2787fa15/boot/grubfm/themes/slack/menu_bkg_c.png -------------------------------------------------------------------------------- /boot/grubfm/themes/slack/menu_bkg_e.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1ive/grub2-filemanager/918524dc18f08eba1ade421282b54a7b2787fa15/boot/grubfm/themes/slack/menu_bkg_e.png -------------------------------------------------------------------------------- /boot/grubfm/themes/slack/menu_bkg_n.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1ive/grub2-filemanager/918524dc18f08eba1ade421282b54a7b2787fa15/boot/grubfm/themes/slack/menu_bkg_n.png -------------------------------------------------------------------------------- /boot/grubfm/themes/slack/menu_bkg_ne.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1ive/grub2-filemanager/918524dc18f08eba1ade421282b54a7b2787fa15/boot/grubfm/themes/slack/menu_bkg_ne.png -------------------------------------------------------------------------------- /boot/grubfm/themes/slack/menu_bkg_nw.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1ive/grub2-filemanager/918524dc18f08eba1ade421282b54a7b2787fa15/boot/grubfm/themes/slack/menu_bkg_nw.png -------------------------------------------------------------------------------- /boot/grubfm/themes/slack/menu_bkg_s.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1ive/grub2-filemanager/918524dc18f08eba1ade421282b54a7b2787fa15/boot/grubfm/themes/slack/menu_bkg_s.png -------------------------------------------------------------------------------- /boot/grubfm/themes/slack/menu_bkg_se.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1ive/grub2-filemanager/918524dc18f08eba1ade421282b54a7b2787fa15/boot/grubfm/themes/slack/menu_bkg_se.png -------------------------------------------------------------------------------- /boot/grubfm/themes/slack/menu_bkg_sw.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1ive/grub2-filemanager/918524dc18f08eba1ade421282b54a7b2787fa15/boot/grubfm/themes/slack/menu_bkg_sw.png -------------------------------------------------------------------------------- /boot/grubfm/themes/slack/menu_bkg_w.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1ive/grub2-filemanager/918524dc18f08eba1ade421282b54a7b2787fa15/boot/grubfm/themes/slack/menu_bkg_w.png -------------------------------------------------------------------------------- /boot/grubfm/themes/slack/sb_frame_c.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1ive/grub2-filemanager/918524dc18f08eba1ade421282b54a7b2787fa15/boot/grubfm/themes/slack/sb_frame_c.png -------------------------------------------------------------------------------- /boot/grubfm/themes/slack/sb_frame_n.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1ive/grub2-filemanager/918524dc18f08eba1ade421282b54a7b2787fa15/boot/grubfm/themes/slack/sb_frame_n.png -------------------------------------------------------------------------------- /boot/grubfm/themes/slack/sb_frame_s.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1ive/grub2-filemanager/918524dc18f08eba1ade421282b54a7b2787fa15/boot/grubfm/themes/slack/sb_frame_s.png -------------------------------------------------------------------------------- /boot/grubfm/themes/slack/sb_thumb_c.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1ive/grub2-filemanager/918524dc18f08eba1ade421282b54a7b2787fa15/boot/grubfm/themes/slack/sb_thumb_c.png -------------------------------------------------------------------------------- /boot/grubfm/themes/slack/sb_thumb_n.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1ive/grub2-filemanager/918524dc18f08eba1ade421282b54a7b2787fa15/boot/grubfm/themes/slack/sb_thumb_n.png -------------------------------------------------------------------------------- /boot/grubfm/themes/slack/sb_thumb_s.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1ive/grub2-filemanager/918524dc18f08eba1ade421282b54a7b2787fa15/boot/grubfm/themes/slack/sb_thumb_s.png -------------------------------------------------------------------------------- /boot/grubfm/themes/slack/select_bkg_s.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1ive/grub2-filemanager/918524dc18f08eba1ade421282b54a7b2787fa15/boot/grubfm/themes/slack/select_bkg_s.png -------------------------------------------------------------------------------- /boot/grubfm/themes/slack/term_bkg_c.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1ive/grub2-filemanager/918524dc18f08eba1ade421282b54a7b2787fa15/boot/grubfm/themes/slack/term_bkg_c.png -------------------------------------------------------------------------------- /boot/grubfm/themes/slack/term_bkg_e.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1ive/grub2-filemanager/918524dc18f08eba1ade421282b54a7b2787fa15/boot/grubfm/themes/slack/term_bkg_e.png -------------------------------------------------------------------------------- /boot/grubfm/themes/slack/term_bkg_n.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1ive/grub2-filemanager/918524dc18f08eba1ade421282b54a7b2787fa15/boot/grubfm/themes/slack/term_bkg_n.png -------------------------------------------------------------------------------- /boot/grubfm/themes/slack/term_bkg_ne.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1ive/grub2-filemanager/918524dc18f08eba1ade421282b54a7b2787fa15/boot/grubfm/themes/slack/term_bkg_ne.png -------------------------------------------------------------------------------- /boot/grubfm/themes/slack/term_bkg_nw.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1ive/grub2-filemanager/918524dc18f08eba1ade421282b54a7b2787fa15/boot/grubfm/themes/slack/term_bkg_nw.png -------------------------------------------------------------------------------- /boot/grubfm/themes/slack/term_bkg_s.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1ive/grub2-filemanager/918524dc18f08eba1ade421282b54a7b2787fa15/boot/grubfm/themes/slack/term_bkg_s.png -------------------------------------------------------------------------------- /boot/grubfm/themes/slack/term_bkg_se.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1ive/grub2-filemanager/918524dc18f08eba1ade421282b54a7b2787fa15/boot/grubfm/themes/slack/term_bkg_se.png -------------------------------------------------------------------------------- /boot/grubfm/themes/slack/term_bkg_sw.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1ive/grub2-filemanager/918524dc18f08eba1ade421282b54a7b2787fa15/boot/grubfm/themes/slack/term_bkg_sw.png -------------------------------------------------------------------------------- /boot/grubfm/themes/slack/term_bkg_w.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1ive/grub2-filemanager/918524dc18f08eba1ade421282b54a7b2787fa15/boot/grubfm/themes/slack/term_bkg_w.png -------------------------------------------------------------------------------- /boot/grubfm/themes/slack/theme.txt: -------------------------------------------------------------------------------- 1 | # Global Property 2 | title-text: "" 3 | title-color: "#000000" 4 | message-color: "#333333" 5 | message-bg-color: "#f2f2f2" 6 | desktop-color: "#000000" 7 | desktop-image: "background.png" 8 | terminal-box: "term_bkg_*.png" 9 | 10 | # Show the boot menu 11 | + boot_menu { 12 | left = 15% 13 | width = 70% 14 | top = 15% 15 | height = 70% 16 | item_color = "#f5f5f5" 17 | selected_item_color = "#f5f5f5" 18 | item_height = 38 19 | item_padding = 15 20 | item_spacing = 5 21 | icon_width = 32 22 | icon_height = 32 23 | item_icon_space = 20 24 | selected_item_pixmap_style= "select_bkg_*.png" 25 | menu_pixmap_style = "menu_bkg_*.png" 26 | scrollbar = true 27 | scrollbar_width = 16 28 | scrollbar_thumb = "sb_thumb_*.png" 29 | scrollbar_frame = "sb_frame_*.png" 30 | } 31 | 32 | + progress_bar { 33 | id = "__timeout__" 34 | left = 18% 35 | width = 64% 36 | top = 88% 37 | height = 32 38 | text_color = "#fff" 39 | fg_color = "#404040" 40 | bg_color = "#808080" 41 | border_color = "#808080" 42 | text = "@TIMEOUT_NOTIFICATION_LONG@" 43 | } 44 | -------------------------------------------------------------------------------- /boot/grubfm/types/3gp: -------------------------------------------------------------------------------- 1 | mp4 -------------------------------------------------------------------------------- /boot/grubfm/types/7z: -------------------------------------------------------------------------------- 1 | zip -------------------------------------------------------------------------------- /boot/grubfm/types/asm: -------------------------------------------------------------------------------- 1 | c -------------------------------------------------------------------------------- /boot/grubfm/types/avi: -------------------------------------------------------------------------------- 1 | mp4 -------------------------------------------------------------------------------- /boot/grubfm/types/bat: -------------------------------------------------------------------------------- 1 | sh -------------------------------------------------------------------------------- /boot/grubfm/types/bin: -------------------------------------------------------------------------------- 1 | exe -------------------------------------------------------------------------------- /boot/grubfm/types/bmp: -------------------------------------------------------------------------------- 1 | [type] 2 | icon = png 3 | 4 | [0] 5 | menu = png/view.sh 6 | title = "Open As Image" 7 | icon = png 8 | enable = all 9 | 10 | [1] 11 | menu = bmp/bgrt.sh 12 | title = "Set BGRT (Windows boot logo)" 13 | icon = png 14 | enable = efi 15 | -------------------------------------------------------------------------------- /boot/grubfm/types/c: -------------------------------------------------------------------------------- 1 | [type] 2 | icon = c 3 | -------------------------------------------------------------------------------- /boot/grubfm/types/cda: -------------------------------------------------------------------------------- 1 | mp3 -------------------------------------------------------------------------------- /boot/grubfm/types/cer: -------------------------------------------------------------------------------- 1 | crt -------------------------------------------------------------------------------- /boot/grubfm/types/cfg: -------------------------------------------------------------------------------- 1 | [type] 2 | icon = cfg 3 | boot = cfg/grub2.sh 4 | display = 1 5 | 6 | [0] 7 | menu = cfg/grub2.sh 8 | title = "Open As Grub2 Menu" 9 | icon = cfg 10 | enable = all 11 | 12 | [1] 13 | menu = cfg/syslinux.sh 14 | title = "Open As Syslinux Menu" 15 | icon = cfg 16 | enable = all 17 | 18 | [2] 19 | menu = cfg/pxelinux.sh 20 | title = "Open As pxelinux Menu" 21 | icon = cfg 22 | enable = all 23 | -------------------------------------------------------------------------------- /boot/grubfm/types/cpio: -------------------------------------------------------------------------------- 1 | zip -------------------------------------------------------------------------------- /boot/grubfm/types/cpp: -------------------------------------------------------------------------------- 1 | c -------------------------------------------------------------------------------- /boot/grubfm/types/crt: -------------------------------------------------------------------------------- 1 | [type] 2 | icon = crt 3 | -------------------------------------------------------------------------------- /boot/grubfm/types/der: -------------------------------------------------------------------------------- 1 | crt -------------------------------------------------------------------------------- /boot/grubfm/types/doc: -------------------------------------------------------------------------------- 1 | [type] 2 | icon = doc 3 | -------------------------------------------------------------------------------- /boot/grubfm/types/docx: -------------------------------------------------------------------------------- 1 | doc -------------------------------------------------------------------------------- /boot/grubfm/types/efi: -------------------------------------------------------------------------------- 1 | [type] 2 | icon = exe 3 | boot = efi/chain.sh 4 | display = 1 5 | 6 | [0] 7 | menu = efi/chain.sh 8 | title = "Open As EFI Application" 9 | icon = uefi 10 | enable = efi 11 | 12 | [1] 13 | menu = efi/load.sh 14 | title = "Load UEFI driver" 15 | icon = uefi 16 | enable = efi 17 | -------------------------------------------------------------------------------- /boot/grubfm/types/elf: -------------------------------------------------------------------------------- 1 | exe -------------------------------------------------------------------------------- /boot/grubfm/types/exe: -------------------------------------------------------------------------------- 1 | [type] 2 | icon = exe 3 | -------------------------------------------------------------------------------- /boot/grubfm/types/fba: -------------------------------------------------------------------------------- 1 | [type] 2 | icon = img 3 | -------------------------------------------------------------------------------- /boot/grubfm/types/flac: -------------------------------------------------------------------------------- 1 | mp3 -------------------------------------------------------------------------------- /boot/grubfm/types/flv: -------------------------------------------------------------------------------- 1 | mp4 -------------------------------------------------------------------------------- /boot/grubfm/types/gif: -------------------------------------------------------------------------------- 1 | bmp -------------------------------------------------------------------------------- /boot/grubfm/types/gkb: -------------------------------------------------------------------------------- 1 | [type] 2 | icon = gkb 3 | boot = gkb/keymap.sh 4 | display = 1 5 | 6 | [0] 7 | menu = gkb/keymap.sh 8 | title = "Load Keymap" 9 | icon = gkb 10 | enable = all 11 | -------------------------------------------------------------------------------- /boot/grubfm/types/gz: -------------------------------------------------------------------------------- 1 | zip -------------------------------------------------------------------------------- /boot/grubfm/types/h: -------------------------------------------------------------------------------- 1 | c -------------------------------------------------------------------------------- /boot/grubfm/types/hpp: -------------------------------------------------------------------------------- 1 | c -------------------------------------------------------------------------------- /boot/grubfm/types/ico: -------------------------------------------------------------------------------- 1 | bmp -------------------------------------------------------------------------------- /boot/grubfm/types/im_: -------------------------------------------------------------------------------- 1 | is_ -------------------------------------------------------------------------------- /boot/grubfm/types/ima: -------------------------------------------------------------------------------- 1 | img -------------------------------------------------------------------------------- /boot/grubfm/types/img: -------------------------------------------------------------------------------- 1 | [type] 2 | icon = img 3 | display = 1 4 | 5 | [0] 6 | menu = img/fdd.sh 7 | title = "Boot Floppy Image (map)" 8 | icon = img 9 | enable = all 10 | 11 | [1] 12 | menu = img/hdd.sh 13 | title = "Boot Hard Drive Image (map)" 14 | icon = img 15 | enable = all 16 | -------------------------------------------------------------------------------- /boot/grubfm/types/inf: -------------------------------------------------------------------------------- 1 | txt -------------------------------------------------------------------------------- /boot/grubfm/types/ini: -------------------------------------------------------------------------------- 1 | txt -------------------------------------------------------------------------------- /boot/grubfm/types/is_: -------------------------------------------------------------------------------- 1 | [type] 2 | icon = wim 3 | 4 | [0] 5 | menu = wim/nt5.sh 6 | title = "Boot NT5.x PE (NTBOOT)" 7 | icon = nt5 8 | enable = bios 9 | -------------------------------------------------------------------------------- /boot/grubfm/types/iso: -------------------------------------------------------------------------------- 1 | [type] 2 | icon = iso 3 | display = 1 4 | 5 | [0] 6 | menu = iso/loop.sh 7 | condition = iso/loop_test.sh 8 | title = "Boot ISO (loopback.cfg)" 9 | icon = gnu-linux 10 | enable = all 11 | 12 | [1] 13 | menu = iso/e2b.sh 14 | condition = iso/e2b_test.sh 15 | title = "Boot ISO (partnew)" 16 | icon = gnu-linux 17 | enable = all 18 | 19 | [2] 20 | menu = iso/map.sh 21 | title = "Boot ISO (map)" 22 | icon = iso 23 | enable = all 24 | -------------------------------------------------------------------------------- /boot/grubfm/types/jpeg: -------------------------------------------------------------------------------- 1 | png -------------------------------------------------------------------------------- /boot/grubfm/types/jpg: -------------------------------------------------------------------------------- 1 | png -------------------------------------------------------------------------------- /boot/grubfm/types/log: -------------------------------------------------------------------------------- 1 | txt -------------------------------------------------------------------------------- /boot/grubfm/types/lst: -------------------------------------------------------------------------------- 1 | [type] 2 | icon = cfg 3 | 4 | [0] 5 | menu = lst/grub.sh 6 | title = "Open As GRUB-Legacy Menu" 7 | icon = cfg 8 | enable = all 9 | 10 | [1] 11 | menu = lst/g4d.sh 12 | title = "Open As GRUB4DOS Menu" 13 | icon = cfg 14 | enable = bios 15 | -------------------------------------------------------------------------------- /boot/grubfm/types/lua: -------------------------------------------------------------------------------- 1 | [type] 2 | icon = lua 3 | 4 | [0] 5 | menu = lua/lua.sh 6 | title = "Open As Lua Script" 7 | icon = lua 8 | enable = all 9 | -------------------------------------------------------------------------------- /boot/grubfm/types/lz: -------------------------------------------------------------------------------- 1 | zip -------------------------------------------------------------------------------- /boot/grubfm/types/lzma: -------------------------------------------------------------------------------- 1 | zip -------------------------------------------------------------------------------- /boot/grubfm/types/md: -------------------------------------------------------------------------------- 1 | doc -------------------------------------------------------------------------------- /boot/grubfm/types/mod: -------------------------------------------------------------------------------- 1 | [type] 2 | icon = mod 3 | 4 | [0] 5 | menu = mod/mod.sh 6 | title = "Insert Grub2 Module" 7 | icon = mod 8 | enable = all 9 | -------------------------------------------------------------------------------- /boot/grubfm/types/mp3: -------------------------------------------------------------------------------- 1 | [type] 2 | icon = mp3 3 | -------------------------------------------------------------------------------- /boot/grubfm/types/mp4: -------------------------------------------------------------------------------- 1 | [type] 2 | icon = mp4 3 | -------------------------------------------------------------------------------- /boot/grubfm/types/mpeg: -------------------------------------------------------------------------------- 1 | mp4 -------------------------------------------------------------------------------- /boot/grubfm/types/nes: -------------------------------------------------------------------------------- 1 | [type] 2 | icon = exe 3 | 4 | [0] 5 | menu = nes/nes.sh 6 | title = "Load NES game" 7 | icon = exe 8 | 9 | -------------------------------------------------------------------------------- /boot/grubfm/types/nsh: -------------------------------------------------------------------------------- 1 | sh -------------------------------------------------------------------------------- /boot/grubfm/types/ogg: -------------------------------------------------------------------------------- 1 | mp3 -------------------------------------------------------------------------------- /boot/grubfm/types/pf2: -------------------------------------------------------------------------------- 1 | [type] 2 | icon = pf2 3 | 4 | [0] 5 | menu = pf2/pf2.sh 6 | title = "Open As Font" 7 | icon = pf2 8 | enable = all 9 | -------------------------------------------------------------------------------- /boot/grubfm/types/png: -------------------------------------------------------------------------------- 1 | [type] 2 | icon = png 3 | 4 | [0] 5 | menu = png/view.sh 6 | title = "Open As Image" 7 | icon = png 8 | enable = all 9 | -------------------------------------------------------------------------------- /boot/grubfm/types/ppt: -------------------------------------------------------------------------------- 1 | doc -------------------------------------------------------------------------------- /boot/grubfm/types/pptx: -------------------------------------------------------------------------------- 1 | doc -------------------------------------------------------------------------------- /boot/grubfm/types/py: -------------------------------------------------------------------------------- 1 | [type] 2 | icon = py 3 | -------------------------------------------------------------------------------- /boot/grubfm/types/pyc: -------------------------------------------------------------------------------- 1 | py -------------------------------------------------------------------------------- /boot/grubfm/types/rar: -------------------------------------------------------------------------------- 1 | zip -------------------------------------------------------------------------------- /boot/grubfm/types/rmvb: -------------------------------------------------------------------------------- 1 | mp4 -------------------------------------------------------------------------------- /boot/grubfm/types/s: -------------------------------------------------------------------------------- 1 | c -------------------------------------------------------------------------------- /boot/grubfm/types/sh: -------------------------------------------------------------------------------- 1 | [type] 2 | icon = sh 3 | -------------------------------------------------------------------------------- /boot/grubfm/types/tar: -------------------------------------------------------------------------------- 1 | zip -------------------------------------------------------------------------------- /boot/grubfm/types/tga: -------------------------------------------------------------------------------- 1 | png -------------------------------------------------------------------------------- /boot/grubfm/types/txt: -------------------------------------------------------------------------------- 1 | [type] 2 | icon = txt 3 | -------------------------------------------------------------------------------- /boot/grubfm/types/vhd: -------------------------------------------------------------------------------- 1 | [type] 2 | icon = img 3 | boot = vhd/ntboot.sh 4 | display = 1 5 | 6 | [0] 7 | menu = vhd/ntboot.sh 8 | title = "Boot Windows NT6.x VHD/VHDX (NTBOOT)" 9 | icon = img 10 | enable = all 11 | 12 | [1] 13 | menu = vhd/map.sh 14 | title = "Boot VHD (map)" 15 | icon = img 16 | enable = all 17 | -------------------------------------------------------------------------------- /boot/grubfm/types/vhdx: -------------------------------------------------------------------------------- 1 | [type] 2 | icon = img 3 | boot = vhd/ntboot.sh 4 | display = 1 5 | 6 | [0] 7 | menu = vhd/ntboot.sh 8 | title = "Boot Windows NT6.x VHD/VHDX (NTBOOT)" 9 | icon = img 10 | enable = all 11 | -------------------------------------------------------------------------------- /boot/grubfm/types/vmdk: -------------------------------------------------------------------------------- 1 | fba -------------------------------------------------------------------------------- /boot/grubfm/types/wav: -------------------------------------------------------------------------------- 1 | mp3 -------------------------------------------------------------------------------- /boot/grubfm/types/wim: -------------------------------------------------------------------------------- 1 | [type] 2 | icon = wim 3 | boot = wim/wimboot.sh 4 | display = 1 5 | 6 | [0] 7 | menu = wim/wimboot.sh 8 | title = "Boot NT6.x WIM (wimboot)" 9 | icon = wim 10 | enable = all 11 | 12 | [1] 13 | menu = wim/ntboot.sh 14 | title = "Boot NT6.x WIM (NTBOOT)" 15 | icon = nt6 16 | enable = all 17 | 18 | [2] 19 | menu = wim/nt5.sh 20 | title = "Boot NT5.x WIM (NTBOOT)" 21 | icon = nt5 22 | enable = bios 23 | -------------------------------------------------------------------------------- /boot/grubfm/types/wps: -------------------------------------------------------------------------------- 1 | doc -------------------------------------------------------------------------------- /boot/grubfm/types/xls: -------------------------------------------------------------------------------- 1 | doc -------------------------------------------------------------------------------- /boot/grubfm/types/xlsx: -------------------------------------------------------------------------------- 1 | doc -------------------------------------------------------------------------------- /boot/grubfm/types/xz: -------------------------------------------------------------------------------- 1 | zip -------------------------------------------------------------------------------- /boot/grubfm/types/zip: -------------------------------------------------------------------------------- 1 | [type] 2 | icon = 7z 3 | -------------------------------------------------------------------------------- /boot/grubfm/util.sh: -------------------------------------------------------------------------------- 1 | # Grub2-FileManager 2 | # Copyright (C) 2020 A1ive. 3 | # 4 | # Grub2-FileManager is free software: you can redistribute it and/or modify 5 | # it under the terms of the GNU General Public License as published by 6 | # the Free Software Foundation, either version 3 of the License, or 7 | # (at your option) any later version. 8 | # 9 | # Grub2-FileManager is distributed in the hope that it will be useful, 10 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | # GNU General Public License for more details. 13 | # 14 | # You should have received a copy of the GNU General Public License 15 | # along with Grub2-FileManager. If not, see . 16 | 17 | menuentry $"PXE (P)" --class pxe --hotkey=p { 18 | configfile ${prefix}/netboot.sh; 19 | } 20 | 21 | if [ -n "${ventoy}" ]; 22 | then 23 | menuentry $"VENTOY (V)" --class ventoy --hotkey=v { 24 | if [ "${grub_platform}" = "efi" ]; 25 | then 26 | if [ -f (${ventoy})/efi/boot/VENTOY${EFI_ARCH}.efi ]; 27 | then 28 | chainloader -t (${ventoy})/efi/boot/VENTOY${EFI_ARCH}.efi; 29 | else 30 | chainloader -t (${ventoy})/efi/boot/BOOT${EFI_ARCH}.efi; 31 | fi; 32 | elif [ -f "(${ventoy})/ventoy/core.img" ]; 33 | then 34 | set root=${ventoy}; 35 | multiboot /ventoy/core.img; 36 | else 37 | regexp --set=1:vtdisk '(hd[0-9]+)[0-9,]*' "${ventoy}"; 38 | chainloader (${vtdisk})+1; 39 | fi; 40 | boot; 41 | } 42 | fi; 43 | 44 | if [ -n "${aioboot}" ]; 45 | then 46 | menuentry $"AIOBOOT (A)" --class aioboot --hotkey=a { 47 | if [ "${grub_platform}" = "efi" ]; 48 | then 49 | chainloader -t (${aioboot})/efi/boot/boot${EFI_ARCH}.efi; 50 | else 51 | set root=${aioboot}; 52 | multiboot /AIO/grub/i386-pc/core.img; 53 | fi; 54 | boot; 55 | } 56 | fi; 57 | 58 | if [ "$grub_platform" = "efi" ]; 59 | then 60 | menuentry $"EFI Shell" --class ms-dos { 61 | set lang=en_US; 62 | terminal_output console; 63 | shell; 64 | } 65 | else 66 | menuentry $"UEFI DUET" --class uefi { 67 | g4d_cmd="map --mem (rd)+1 (0xff);map --hook;chainloader (0xff)"; 68 | linux ${prefix}/grub.exe --config-file=${g4d_cmd}; 69 | initrd ${prefix}/duet64.iso.xz; 70 | } 71 | fi; 72 | 73 | menuentry $"GRUB Console" --class ms-dos { 74 | commandline; 75 | } 76 | 77 | source ${prefix}/global.sh; 78 | -------------------------------------------------------------------------------- /boot/grubfm/view.lua: -------------------------------------------------------------------------------- 1 | #!lua 2 | -- Grub2-FileManager 3 | -- Copyright (C) 2018, 2019, 2020 A1ive. 4 | -- 5 | -- Grub2-FileManager is free software: you can redistribute it and/or modify 6 | -- it under the terms of the GNU General Public License as published by 7 | -- the Free Software Foundation, either version 3 of the License, or 8 | -- (at your option) any later version. 9 | -- 10 | -- Grub2-FileManager is distributed in the hope that it will be useful, 11 | -- but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | -- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | -- GNU General Public License for more details. 14 | -- 15 | -- You should have received a copy of the GNU General Public License 16 | -- along with Grub2-FileManager. If not, see . 17 | 18 | function display_bmp (filename) 19 | scr_w, scr_h = video.get_info (); 20 | if (scr_w == 0 or scr_h == 0) then 21 | print ("Not available.") 22 | return 23 | end 24 | video.fill_rect ({r=0, g=0, b=0}, 0, 0, scr_w, scr_h) 25 | grub.refresh() 26 | bitmap = video.bitmap_load (filename) 27 | if (bitmap == nil) then 28 | print ("failed to load " .. filename) 29 | return 30 | end 31 | w, h = video.bitmap_info (bitmap) 32 | if (w > scr_w or h > scr_h) then 33 | new_bitmap = video.bitmap_rescale (bitmap, scr_w, scr_h) 34 | video.bitmap_blit (new_bitmap, 0, 0, 0, 0, scr_w, scr_h) 35 | video.bitmap_close (new_bitmap) 36 | else 37 | video.bitmap_blit (bitmap, (scr_w - w) / 2, (scr_h - h) / 2, 0, 0, scr_w, scr_h) 38 | end 39 | video.draw_string (grub.gettext ("Press any key to exit."), "Unifont Regular 16", {r=255, g=255, b=255}, 0, scr_h - 16) 40 | grub.refresh () 41 | video.bitmap_close (bitmap) 42 | input.getkey () 43 | end 44 | 45 | file = grub.getenv ("bmp_path") 46 | if (file ~= nil) then 47 | display_bmp (file) 48 | end 49 | -------------------------------------------------------------------------------- /boot/grubfm/write.lua: -------------------------------------------------------------------------------- 1 | #!lua 2 | 3 | function search_replace (in_file, out_file, search_table, replace_table, dos) 4 | if (in_file == nil or out_file == nil) then 5 | print ("file not exist\n") 6 | return 7 | end 8 | local i = 0 9 | local j = 0 10 | local t = 0 11 | local line = "" 12 | local str = "" 13 | local line_ending = "\n" 14 | if (dos ~= nil and dos == true) then 15 | line_ending = "\r\n" 16 | end 17 | grub.file_seek (in_file, 0) 18 | grub.file_seek (out_file, 0) 19 | while (grub.file_eof (in_file) ~= true) 20 | do 21 | i = i + 1 22 | line = grub.file_getline (in_file) 23 | for j, str in ipairs (search_table) do 24 | line, t = string.gsub (line, str, replace_table[j]) 25 | if (t > 0) then 26 | print ("line " .. i .. ", string " .. search_table[j] .. " found") 27 | end 28 | end 29 | grub.file_write (out_file, line) 30 | grub.file_write (out_file, line_ending) 31 | end 32 | end 33 | 34 | search_str = grub.getenv ("search_str") 35 | replace_str = grub.getenv ("replace_str") 36 | finename = grub.getenv ("src_file") 37 | file1 = grub.file_open (finename) 38 | file2 = grub.file_open (finename, "w") 39 | search_replace (file1, file2, {search_str}, {replace_str}) 40 | grub.file_close (file1) 41 | grub.file_close (file2) 42 | -------------------------------------------------------------------------------- /lang/ar_SA/lang.sh: -------------------------------------------------------------------------------- 1 | export lang=ar_SA; 2 | -------------------------------------------------------------------------------- /lang/da_DK/lang.sh: -------------------------------------------------------------------------------- 1 | export lang=da_DK; 2 | -------------------------------------------------------------------------------- /lang/de_DE/lang.sh: -------------------------------------------------------------------------------- 1 | export lang=de_DE; -------------------------------------------------------------------------------- /lang/es_ES/lang.sh: -------------------------------------------------------------------------------- 1 | export lang=es_ES; 2 | -------------------------------------------------------------------------------- /lang/fr_FR/lang.sh: -------------------------------------------------------------------------------- 1 | export lang=fr_FR; 2 | -------------------------------------------------------------------------------- /lang/he_IL/lang.sh: -------------------------------------------------------------------------------- 1 | export lang=he_IL; 2 | -------------------------------------------------------------------------------- /lang/hu_HU/lang.sh: -------------------------------------------------------------------------------- 1 | export lang=hu_HU; 2 | -------------------------------------------------------------------------------- /lang/ko_KR/lang.sh: -------------------------------------------------------------------------------- 1 | export lang=ko_KR; 2 | -------------------------------------------------------------------------------- /lang/pl_PL/lang.sh: -------------------------------------------------------------------------------- 1 | export lang=pl_PL; -------------------------------------------------------------------------------- /lang/pt_BR/lang.sh: -------------------------------------------------------------------------------- 1 | export lang=pt_BR; 2 | -------------------------------------------------------------------------------- /lang/ru_RU/lang.sh: -------------------------------------------------------------------------------- 1 | export lang=ru_RU; -------------------------------------------------------------------------------- /lang/tr_TR/lang.sh: -------------------------------------------------------------------------------- 1 | export lang=tr_TR; -------------------------------------------------------------------------------- /lang/uk_UA/lang.sh: -------------------------------------------------------------------------------- 1 | export lang=uk_UA; 2 | -------------------------------------------------------------------------------- /lang/vi_VN/lang.sh: -------------------------------------------------------------------------------- 1 | export lang=vi_VN; 2 | -------------------------------------------------------------------------------- /lang/zh_CN/lang.sh: -------------------------------------------------------------------------------- 1 | export lang=zh_CN; -------------------------------------------------------------------------------- /lang/zh_TW/lang.sh: -------------------------------------------------------------------------------- 1 | export lang=zh_TW; -------------------------------------------------------------------------------- /loadfm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1ive/grub2-filemanager/918524dc18f08eba1ade421282b54a7b2787fa15/loadfm -------------------------------------------------------------------------------- /release.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env sh 2 | if [ -e "grubfm*.7z" ] 3 | then 4 | rm grubfm*.7z 5 | fi 6 | 7 | i=0 8 | for lang in zh_CN zh_TW en_US tr_TR de_DE vi_VN ru_RU he_IL es_ES pl_PL uk_UA fr_FR da_DK pt_BR ar_SA ko_KR hu_HU 9 | do 10 | if [ -d "releases" ] 11 | then 12 | rm -r releases 13 | fi 14 | mkdir releases 15 | i=`expr $i + 1` 16 | echo "${i}" | ./build.sh 17 | cp grubfm.iso releases/ 18 | cp grubfm*.efi releases/ 19 | cp loadfm releases/ 20 | cd releases 21 | 7z a ../grubfm-${lang}.7z * 22 | cd .. 23 | rm -r releases 24 | done 25 | -------------------------------------------------------------------------------- /samples/splash/splash10.txt: -------------------------------------------------------------------------------- 1 | # Global Property 2 | title-text: "" 3 | title-color: "#000000" 4 | message-color: "#333333" 5 | message-bg-color: "#f2f2f2" 6 | desktop-color: "#000000" 7 | desktop-image: "splash10/black.png" 8 | terminal-box: "term_bkg_*.png" 9 | terminal-font: "More Perfect DOS VGA 16" 10 | 11 | + animation { 12 | dir_name = "splash10" 13 | image_format = "png" 14 | frame_number = 42 15 | size_ratio = 1 16 | play_once = pause 17 | 18 | left = 0% 19 | width = 100% 20 | top = 0% 21 | height = 100% 22 | } -------------------------------------------------------------------------------- /samples/splash/splash10/1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1ive/grub2-filemanager/918524dc18f08eba1ade421282b54a7b2787fa15/samples/splash/splash10/1.png -------------------------------------------------------------------------------- /samples/splash/splash10/10.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1ive/grub2-filemanager/918524dc18f08eba1ade421282b54a7b2787fa15/samples/splash/splash10/10.png -------------------------------------------------------------------------------- /samples/splash/splash10/11.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1ive/grub2-filemanager/918524dc18f08eba1ade421282b54a7b2787fa15/samples/splash/splash10/11.png -------------------------------------------------------------------------------- /samples/splash/splash10/12.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1ive/grub2-filemanager/918524dc18f08eba1ade421282b54a7b2787fa15/samples/splash/splash10/12.png -------------------------------------------------------------------------------- /samples/splash/splash10/13.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1ive/grub2-filemanager/918524dc18f08eba1ade421282b54a7b2787fa15/samples/splash/splash10/13.png -------------------------------------------------------------------------------- /samples/splash/splash10/14.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1ive/grub2-filemanager/918524dc18f08eba1ade421282b54a7b2787fa15/samples/splash/splash10/14.png -------------------------------------------------------------------------------- /samples/splash/splash10/15.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1ive/grub2-filemanager/918524dc18f08eba1ade421282b54a7b2787fa15/samples/splash/splash10/15.png -------------------------------------------------------------------------------- /samples/splash/splash10/16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1ive/grub2-filemanager/918524dc18f08eba1ade421282b54a7b2787fa15/samples/splash/splash10/16.png -------------------------------------------------------------------------------- /samples/splash/splash10/17.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1ive/grub2-filemanager/918524dc18f08eba1ade421282b54a7b2787fa15/samples/splash/splash10/17.png -------------------------------------------------------------------------------- /samples/splash/splash10/18.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1ive/grub2-filemanager/918524dc18f08eba1ade421282b54a7b2787fa15/samples/splash/splash10/18.png -------------------------------------------------------------------------------- /samples/splash/splash10/19.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1ive/grub2-filemanager/918524dc18f08eba1ade421282b54a7b2787fa15/samples/splash/splash10/19.png -------------------------------------------------------------------------------- /samples/splash/splash10/2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1ive/grub2-filemanager/918524dc18f08eba1ade421282b54a7b2787fa15/samples/splash/splash10/2.png -------------------------------------------------------------------------------- /samples/splash/splash10/20.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1ive/grub2-filemanager/918524dc18f08eba1ade421282b54a7b2787fa15/samples/splash/splash10/20.png -------------------------------------------------------------------------------- /samples/splash/splash10/21.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1ive/grub2-filemanager/918524dc18f08eba1ade421282b54a7b2787fa15/samples/splash/splash10/21.png -------------------------------------------------------------------------------- /samples/splash/splash10/22.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1ive/grub2-filemanager/918524dc18f08eba1ade421282b54a7b2787fa15/samples/splash/splash10/22.png -------------------------------------------------------------------------------- /samples/splash/splash10/23.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1ive/grub2-filemanager/918524dc18f08eba1ade421282b54a7b2787fa15/samples/splash/splash10/23.png -------------------------------------------------------------------------------- /samples/splash/splash10/24.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1ive/grub2-filemanager/918524dc18f08eba1ade421282b54a7b2787fa15/samples/splash/splash10/24.png -------------------------------------------------------------------------------- /samples/splash/splash10/25.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1ive/grub2-filemanager/918524dc18f08eba1ade421282b54a7b2787fa15/samples/splash/splash10/25.png -------------------------------------------------------------------------------- /samples/splash/splash10/26.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1ive/grub2-filemanager/918524dc18f08eba1ade421282b54a7b2787fa15/samples/splash/splash10/26.png -------------------------------------------------------------------------------- /samples/splash/splash10/27.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1ive/grub2-filemanager/918524dc18f08eba1ade421282b54a7b2787fa15/samples/splash/splash10/27.png -------------------------------------------------------------------------------- /samples/splash/splash10/28.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1ive/grub2-filemanager/918524dc18f08eba1ade421282b54a7b2787fa15/samples/splash/splash10/28.png -------------------------------------------------------------------------------- /samples/splash/splash10/29.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1ive/grub2-filemanager/918524dc18f08eba1ade421282b54a7b2787fa15/samples/splash/splash10/29.png -------------------------------------------------------------------------------- /samples/splash/splash10/3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1ive/grub2-filemanager/918524dc18f08eba1ade421282b54a7b2787fa15/samples/splash/splash10/3.png -------------------------------------------------------------------------------- /samples/splash/splash10/30.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1ive/grub2-filemanager/918524dc18f08eba1ade421282b54a7b2787fa15/samples/splash/splash10/30.png -------------------------------------------------------------------------------- /samples/splash/splash10/31.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1ive/grub2-filemanager/918524dc18f08eba1ade421282b54a7b2787fa15/samples/splash/splash10/31.png -------------------------------------------------------------------------------- /samples/splash/splash10/32.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1ive/grub2-filemanager/918524dc18f08eba1ade421282b54a7b2787fa15/samples/splash/splash10/32.png -------------------------------------------------------------------------------- /samples/splash/splash10/33.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1ive/grub2-filemanager/918524dc18f08eba1ade421282b54a7b2787fa15/samples/splash/splash10/33.png -------------------------------------------------------------------------------- /samples/splash/splash10/34.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1ive/grub2-filemanager/918524dc18f08eba1ade421282b54a7b2787fa15/samples/splash/splash10/34.png -------------------------------------------------------------------------------- /samples/splash/splash10/35.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1ive/grub2-filemanager/918524dc18f08eba1ade421282b54a7b2787fa15/samples/splash/splash10/35.png -------------------------------------------------------------------------------- /samples/splash/splash10/36.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1ive/grub2-filemanager/918524dc18f08eba1ade421282b54a7b2787fa15/samples/splash/splash10/36.png -------------------------------------------------------------------------------- /samples/splash/splash10/37.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1ive/grub2-filemanager/918524dc18f08eba1ade421282b54a7b2787fa15/samples/splash/splash10/37.png -------------------------------------------------------------------------------- /samples/splash/splash10/38.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1ive/grub2-filemanager/918524dc18f08eba1ade421282b54a7b2787fa15/samples/splash/splash10/38.png -------------------------------------------------------------------------------- /samples/splash/splash10/39.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1ive/grub2-filemanager/918524dc18f08eba1ade421282b54a7b2787fa15/samples/splash/splash10/39.png -------------------------------------------------------------------------------- /samples/splash/splash10/4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1ive/grub2-filemanager/918524dc18f08eba1ade421282b54a7b2787fa15/samples/splash/splash10/4.png -------------------------------------------------------------------------------- /samples/splash/splash10/40.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1ive/grub2-filemanager/918524dc18f08eba1ade421282b54a7b2787fa15/samples/splash/splash10/40.png -------------------------------------------------------------------------------- /samples/splash/splash10/41.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1ive/grub2-filemanager/918524dc18f08eba1ade421282b54a7b2787fa15/samples/splash/splash10/41.png -------------------------------------------------------------------------------- /samples/splash/splash10/42.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1ive/grub2-filemanager/918524dc18f08eba1ade421282b54a7b2787fa15/samples/splash/splash10/42.png -------------------------------------------------------------------------------- /samples/splash/splash10/5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1ive/grub2-filemanager/918524dc18f08eba1ade421282b54a7b2787fa15/samples/splash/splash10/5.png -------------------------------------------------------------------------------- /samples/splash/splash10/6.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1ive/grub2-filemanager/918524dc18f08eba1ade421282b54a7b2787fa15/samples/splash/splash10/6.png -------------------------------------------------------------------------------- /samples/splash/splash10/7.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1ive/grub2-filemanager/918524dc18f08eba1ade421282b54a7b2787fa15/samples/splash/splash10/7.png -------------------------------------------------------------------------------- /samples/splash/splash10/8.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1ive/grub2-filemanager/918524dc18f08eba1ade421282b54a7b2787fa15/samples/splash/splash10/8.png -------------------------------------------------------------------------------- /samples/splash/splash10/9.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1ive/grub2-filemanager/918524dc18f08eba1ade421282b54a7b2787fa15/samples/splash/splash10/9.png -------------------------------------------------------------------------------- /samples/splash/splash10/black.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a1ive/grub2-filemanager/918524dc18f08eba1ade421282b54a7b2787fa15/samples/splash/splash10/black.png -------------------------------------------------------------------------------- /update_grub2.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env sh 2 | rm -rf grub 3 | wget https://github.com/a1ive/grub/releases/download/latest/grub2-latest.tar.gz -O grub2-latest.tar.gz 4 | tar -xf grub2-latest.tar.gz 5 | --------------------------------------------------------------------------------