Skip to content

Commit 43739cd

Browse files
authored
Merge pull request #7 from FREEWING-JP/feature/mod_multi_merge_master
Merge master Metabolix Update change log and tag v2.1.0 da9909b
2 parents dd53851 + 3f75d71 commit 43739cd

File tree

14 files changed

+1360
-485
lines changed

14 files changed

+1360
-485
lines changed

CHANGELOG.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,29 @@
22

33
All notable changes to this project will be documented in this file.
44

5+
## 2.1.0 - 2023-10-04
6+
7+
### Added
8+
- Check image size, crop if it's bigger than the screen.
9+
- Check BitLocker status to avoid unbootable machine.
10+
11+
## 2.0.0 - 2023-09-10
12+
13+
### Added
14+
- Log to `setup.log`.
15+
- Image conversion (GIF, EXIF, JPG, PNG, TIFF) to BMP during setup.
16+
- Quiet (batch) setup.
17+
- Dry run in setup.
18+
- EFI boot entry support in setup.
19+
- Orientation parameter (o=0|90|180|270) for images.
20+
21+
### Changed
22+
- Configure (edit config and images) before installing.
23+
- Escalate privileges only when needed (after the menu).
24+
- Try to detect and avoid some configuration errors.
25+
- Wait at most 15 seconds for key presses during boot.
26+
- Image coordinates are now relative to the center.
27+
528
## 1.5.1 - 2018-08-11
629

730
### Fixed

README.md

Lines changed: 32 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -69,55 +69,67 @@ When booting on a UEFI-based computer, Windows may show a vendor-defined logo wh
6969

7070
* Make sure that your computer is booting with UEFI.
7171
* Make sure that Secure Boot is disabled, unless you know how to sign EFI applications.
72+
* Make sure that BitLocker is disabled, or find your recovery key.
7273

7374
### Windows installation
7475

7576
* Get the latest release from the Releases page.
7677
* Start `setup.exe` and follow the instructions.
7778
* You may need to manually disable Secure Boot and then retry.
78-
* The installer will launch Notepad for modifying the configuration.
79-
* If you need only one custom image, the defaults are fine.
80-
* Otherwise, check out the examples in the configuration file.
81-
* The installer will launch Paint for creating the image(s).
82-
* You can create multiple images by using Save As.
83-
* Be sure to always use the 24-bit BMP/DIB format.
79+
* The installer will launch Paint for editing the image.
8480
* If Windows later restores the original boot loader, just reinstall.
8581
* If you wish to change the image or other configuration, just reinstall.
82+
* For advanced settings, edit `config.txt` before installing. No extra support provided!
83+
84+
### Quiet (batch) installation
85+
86+
* Edit the `config.txt` and `splash.bmp` (or any other images) to your needs.
87+
* Run `setup.exe batch COMMANDS` as administrator, with some of the following commands:
88+
* `install` – copy the files but don't enable.
89+
* `enable-entry` – create a new EFI boot entry.
90+
* `disable-entry` – disable the EFI boot entry.
91+
* `enable-bcdedit` – use `bcdedit` to create a new EFI boot entry.
92+
* `disable-bootmgr` – use `bcdedit` to disable the EFI boot entry.
93+
* `enable-overwrite` – overwrite the MS boot loader.
94+
* `disable-overwrite` – restore the MS boot loader.
95+
* `allow-secure-boot` – ignore Secure Boot in subsequent commands.
96+
* `allow-bitlocker` – ignore BitLocker in subsequent commands.
97+
* `allow-bad-loader` – ignore bad boot loader configuration in subsequent commands.
98+
* `disable` – run all relevant `disable-*` commands.
99+
* `uninstall` – disable and remove completely.
100+
* For example, run `setup.exe batch install allow-secure-boot enable-overwrite` to copy files and overwrite the MS boot loader regardless of Secure Boot status.
86101

87102
### Multi-boot configurations
88103

89104
If you only need HackBGRT for Windows:
90105

91-
* Extract the latest release to `[EFI System Partition]\EFI\HackBGRT\`.
92-
* Set `boot=\EFI\Microsoft\Boot\bootmgfw.efi` in `config.txt`.
93-
* Point your boot loader to `\EFI\HackBGRT\bootx64.efi`.
106+
* Run `setup.exe`, install files without enabling.
107+
* Configure your boot loader to start `\EFI\HackBGRT\loader.efi`.
94108

95109
If you need it for other systems as well:
96110

97-
* Extract the latest release to `[EFI System Partition]\EFI\HackBGRT\`.
98-
* Set `boot=\EFI\your-actual-boot-loader.efi` in `config.txt`.
99-
* Set `\EFI\HackBGRT\bootx64.efi` as your default boot loader with `efibootmgr` or some other EFI boot manager tool.
111+
* Configure HackBGRT to start your boot loader (such as systemd-boot): `boot=\EFI\systemd\systemd-bootx64.efi`.
112+
* Run `setup.exe`, install as a new EFI boot entry.
100113

101-
On 32-bit machines, use `bootia32.efi` instead of `bootx64.efi`.
114+
To install purely on Linux, you can install with `setup.exe dry-run` and then manually copy files from `dry-run/EFI` to your `[EFI System Partition]/EFI`. For further instructions, consult the documentation of your own Linux system.
102115

103116
## Configuration
104117

105-
The configuration options are described in `config.txt`, which should be stored in `[EFI System Partition]\EFI\HackBGRT\config.txt`.
118+
The configuration options are described in `config.txt`, which the installer copies into `[EFI System Partition]\EFI\HackBGRT\config.txt`.
106119

107120
## Images
108121

109122
The image path can be changed in the configuration file. The default path is `[EFI System Partition]\EFI\HackBGRT\splash.bmp`.
110123

111-
The image must be a 24-bit BMP file with a 54-byte header. That's a TrueColor BMP3 in Imagemagick, or 24-bit BMP/DIB in Microsoft Paint.
124+
The installer copies and converts files whose `path` starts with `\EFI\HackBGRT\`. For example, to use a file named `my.jpg`, copy it in the installer folder (same folder as `setup.exe`) and set the image path in `config.txt` to `path=\EFI\HackBGFT\my.jpg`.
112125

113-
Multiple images may be specified, in which case one is picked at random.
126+
If you copy an image file to ESP manually, note that the image must be a 24-bit BMP file with a 54-byte header. That's a TrueColor BMP3 in Imagemagick, or 24-bit BMP/DIB in Microsoft Paint.
114127

115-
## Recovery
128+
Advanced users may edit the `config.txt` to define multiple images, in which case one is picked at random.
116129

117-
If something breaks and you can't boot to Windows, you have the following options:
130+
## Recovery
118131

119-
* Windows installation (or recovery) media can fix boot issues.
120-
* You can copy `[EFI System Partition]\EFI\HackBGRT\bootmgfw-original.efi` into `[EFI System Partition]\EFI\Microsoft\Boot\bootmgfw.efi` by some other means such as Linux or Windows command prompt.
132+
If something breaks and you can't boot to Windows, you need to use the Windows installation disk (or recovery disk) to fix boot issues.
121133

122134
## Building
123135

Windows_WSL_Debian_2nd.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ cd HackBGRT_MULTI
88

99
# Download gnu-efi
1010
wget https://jaist.dl.sourceforge.net/project/gnu-efi/gnu-efi-3.0.12.tar.bz2
11+
or
12+
# ERROR: The certificate of ‘jaist.dl.sourceforge.net’ is not trusted.
13+
wget --no-check-certificate https://jaist.dl.sourceforge.net/project/gnu-efi/gnu-efi-3.0.12.tar.bz2
1114
tar xvf gnu-efi-3.0.12.tar.bz2
1215

1316
# Patch Install directory

config.txt

Lines changed: 17 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,39 @@
11
# vim: set fileencoding=utf-8
22
# The same options may be given also as command line parameters in the EFI Shell, which is useful for debugging.
33

4-
# Boot loader path. Default: backup of the Windows boot loader.
5-
boot=\EFI\HackBGRT\bootmgfw-original.efi
4+
# Boot loader path. MS = either backup or original Windows boot loader.
5+
boot=MS
66

77
# The image is specified with an image line.
88
# Multiple image lines may be present, in which case one will be picked by random.
99
# The image line may contain the following parts:
1010
# Any of the following:
11-
# - "n=[0-9]+", a weight for this image in the randomization process. Default: n=1.
12-
# - "x={auto|native|[0-9]+}", the x coordinate. Default: x=auto.
13-
# - "y={auto|native|[0-9]+}", the y coordinate. Default: y=auto.
11+
# - "n=(number)", a weight for this image in the randomization process. Default: n=1.
12+
# - "x=(number)" or "x=keep", the x offset from the center. Default: x=0.
13+
# - "y=(number)" or "y=keep", the y offset from the center. Default: y=0.
14+
# - "o=(0|90|180|270|keep)", the screen orientation, degrees anticlockwise. Default: o=keep.
1415
# One of the following:
15-
# - "keep" to keep the firmware logo. Sets also x=native,y=native by default.
16+
# - "keep" to keep the firmware logo. Also keeps coordinates by default.
1617
# - "remove" to remove the BGRT. Makes x and y meaningless.
1718
# - "black" to use only a black image. Makes x and y meaningless.
18-
# - "path=..." to read a BMP file. The file must be a 24-bit BMP file with a 54-byte header.
19+
# - "path=..." to read a BMP file.
20+
# * NOTE: For path=\EFI\HackBGRT\*, the installer will copy and convert the file if necessary.
21+
# * NOTE: For other paths, make sure that the file is a 24-bit BMP file with a 54-byte header.
1922
# * NOTE: The file must be on the EFI System Partition. Do not add a drive letter!
2023
# Examples:
2124
# - image=remove
2225
# - image=black
23-
# - image=x=auto,y=0,path=\EFI\HackBGRT\topimage.bmp
24-
# - image=n=1,path=\EFI\HackBGRT\splash.bmp
25-
# - image=n=50,path=\EFI\HackBGRT\probable.bmp
26+
# - image= x=0 y=-200 path=\EFI\HackBGRT\topimage.bmp
27+
# - image= n=1 o=90 path=\EFI\HackBGRT\sideways.bmp
28+
# - image= n=50 y=999999 o=keep path=\EFI\HackBGRT\probable.bmp
2629
# The above examples together would produce
2730
# - 1/54 chance for the default OS logo
2831
# - 1/54 chance for black screen
29-
# - 1/54 chance for topimage.bmp, centered at the top of the screen
30-
# - 1/54 chance for splash.bmp, automatically positioned
31-
# - 50/54 chance for probable.bmp, automatically positioned
32+
# - 1/54 chance for topimage.bmp, 200 px above the center of the screen
33+
# - 1/54 chance for splash.bmp, centered, orientation set to 90 degrees
34+
# - 50/54 chance for probable.bmp, at the bottom edge, explicitly default orientation
3235
# Default: just one image.
33-
image=path=\EFI\HackBGRT\splash.bmp
36+
image= y=-200 path=\EFI\HackBGRT\splash.bmp
3437

3538
# Preferred resolution. Use 0x0 for maximum and -1x-1 for original.
3639
resolution=0x0

0 commit comments

Comments
 (0)