Skip to content

Commit e9a22f1

Browse files
author
Marcelo Politzer Couto
committed
(+) Add vga mode
1 parent e67ead1 commit e9a22f1

File tree

7 files changed

+88
-138
lines changed

7 files changed

+88
-138
lines changed

boot/grub/grub.cfg

Lines changed: 17 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,18 @@
1-
#search --no-floppy --fs-uuid --set xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
1+
source /boot/grub/script/autoiso.cfg
22

3-
#set theme=/boot/grub/themes/ettery/theme.txt
4-
#export theme
5-
6-
#set gfxmode=1920x1080,auto
7-
#set gfxpayload=text
8-
#insmod png
9-
#insmod vbe
10-
#insmod vga
11-
#
12-
#insmod gfxterm
13-
#terminal_output gfxterm
14-
#insmod gfxmenu
15-
16-
#insmod gettext
17-
#insmod font
18-
#insmod all_video
19-
20-
##set theme=/boot/grub/themes/vimix/theme.txt
21-
##set theme=/boot/grub/themes/deepin/theme.txt
22-
23-
configfile /boot/grub/script/autoiso.cfg
3+
if loadfont unicode ; then
4+
insmod gfxmenu
5+
insmod gfxterm
6+
insmod jpeg
7+
insmod png
8+
insmod vbe
9+
insmod vga
10+
set gfxmode=1920x1080,auto
11+
set gfxpayload=text
12+
set theme=/boot/grub/themes/starfield/theme.txt
13+
#set theme=/boot/grub/themes/vimix/theme.txt
14+
#set theme=/boot/grub/themes/tela/theme.txt
15+
terminal_output gfxterm
16+
export theme
17+
fi
18+
scan_isos /boot/iso GIM

boot/grub/script/autoiso.cfg

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,4 +147,3 @@ terminal_output --append serial
147147
langcode="$lang"
148148

149149
insmod regexp
150-
scan_isos /boot/iso GIM

doc/starfield.png

1.71 MB
Loading

doc/vimix.png

225 KB
Loading

preview.png

-46.3 KB
Binary file not shown.

readme.md

Lines changed: 71 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,20 @@
1-
[GRUB iso multiboot]
2-
====================
1+
# [GRUB iso multiboot]
32

4-
1. Installation Guide (clean disk)
5-
----------------------------------
3+
+ Auto detect and create entries for .iso files in /iso/
4+
+ Preserves its boot options!
5+
+ Small and lean, few entries lots of images
6+
+ new iso, same script. No need to tweak around (ymmv).
67

7-
1.1 Create a partition table:
8+
![preview with vimix](doc/vimix.png?raw=true "vimix")
9+
![preview with starfield](doc/starfield.png?raw=true "starfield")
10+
11+
If your pendrive is already formated to FAT, you only need to change its label
12+
to GIM and then skip step `1`. To use different name changes to the scripts are
13+
required, more on this later (step `3`).
14+
15+
## 1. Installation Guide (clean disk)
16+
17+
### 1.1 Create a partition table:
818
```
919
# fdisk /dev/sdX
1020
o # DOS partition table
@@ -17,12 +27,12 @@ a # toggle bootable (make sure it is now ON)
1727
w # write
1828
```
1929

20-
1.2 Format to FAT
30+
### 1.2 Format to FAT
2131
```
2232
# mkfs.fat -n GIM /dev/sdX1
2333
```
2434

25-
Or with `gparted`
35+
## Or with `gparted`
2636

2737
```
2838
gparted /dev/sdX
@@ -35,8 +45,7 @@ gparted /dev/sdX
3545
# Select partition /dev/sdX1 -> Left click -> Manage Flags -> Enable boot flag
3646
```
3747

38-
2. Installation Guide (formated disk)
39-
-------------------------------------
48+
## 2. Installation Guide (formated disk)
4049

4150
```
4251
mkdir -p /tmp/GIM
@@ -46,5 +55,56 @@ tar xvf grub-iso-multiboot.tar.gz -C /tmp/GIM
4655
umount /tmp/GIM
4756
```
4857

49-
3. Add isos to /boot/iso/
50-
-------------------------
58+
## 3. Adjusts
59+
60+
### 3.1 I don't want to change the label
61+
62+
If you didn't change your label to `GIM` you will need to change
63+
`/tmp/GIM/boot/grub/grub.cfg` last line:
64+
65+
```diff
66+
-scan_isos /boot/iso GIM
67+
+scan_isos /boot/iso <label>
68+
```
69+
70+
### 3.2 I want my GRUB to look like that
71+
72+
Find a [theme](https://www.gnome-look.org/browse/cat/109/ord/rating/) you would
73+
like to use. The one from the screenshot above is
74+
[vimix](https://www.gnome-look.org/p/1009236/#files-panel).
75+
76+
Move the theme contents to the `themes` folder of the instalation, like so:
77+
78+
```
79+
mount /dev/disk/by-label/GIM /tmp/GIM
80+
tar xvf Vimix-1080p.tar.xz -C /tmp/
81+
mv /tmp/Vimix-1080p/Vimix /tmp/GIM/boot/grub/themes/vimix
82+
```
83+
84+
Double check that you have the `theme.txt` file in the correct place
85+
`/tmp/GIM/boot/grub/themes/vimix/theme.txt`.
86+
87+
As the last step, select the theme in `/tmp/GIM/boot/grub/grub.cfg`:
88+
89+
```diff
90+
- set theme=/boot/grub/themes/starfield/theme.txt
91+
+ set theme=/boot/grub/themes/vimix/theme.txt
92+
scan_isos /boot/iso GIM
93+
```
94+
95+
release the pendrive.
96+
97+
```
98+
umount /tmp/GIM
99+
```
100+
101+
## 4. Add isos to /boot/iso/
102+
103+
Menu entries will be populated according to the files present during boot.
104+
To add isos via terminal, just copy them over:
105+
106+
```
107+
mount /dev/disk/by-label/GIM /tmp/GIM
108+
cp <my-iso-file>.iso /tmp/GIM/boot/iso/
109+
umount /tmp/GIM
110+
```

todo

Lines changed: 0 additions & 104 deletions
This file was deleted.

0 commit comments

Comments
 (0)