mirror of
https://github.com/basecamp/omarchy.git
synced 2026-02-17 15:25:37 +00:00
Extract the duplicated limine confs into distinct files (#4084)
* Extract the duplicated limine.conf into its own file * Extract the /etc/limine/default config as well
This commit is contained in:
committed by
GitHub
parent
88603ea9d6
commit
923d5fb0cd
@@ -10,27 +10,7 @@ echo "Resetting limine config"
|
|||||||
|
|
||||||
sudo mv /boot/limine.conf /boot/limine.conf.bak
|
sudo mv /boot/limine.conf /boot/limine.conf.bak
|
||||||
|
|
||||||
sudo tee /boot/limine.conf <<EOF >/dev/null
|
sudo cp ~/.local/share/omarchy/default/limine/limine.conf /boot/limine.conf
|
||||||
### Read more at config document: https://github.com/limine-bootloader/limine/blob/trunk/CONFIG.md
|
|
||||||
#timeout: 3
|
|
||||||
default_entry: 2
|
|
||||||
interface_branding: Omarchy Bootloader
|
|
||||||
interface_branding_color: 2
|
|
||||||
hash_mismatch_panic: no
|
|
||||||
|
|
||||||
term_background: 1a1b26
|
|
||||||
backdrop: 1a1b26
|
|
||||||
|
|
||||||
# Terminal colors (Tokyo Night palette)
|
|
||||||
term_palette: 15161e;f7768e;9ece6a;e0af68;7aa2f7;bb9af7;7dcfff;a9b1d6
|
|
||||||
term_palette_bright: 414868;f7768e;9ece6a;e0af68;7aa2f7;bb9af7;7dcfff;c0caf5
|
|
||||||
|
|
||||||
# Text colors
|
|
||||||
term_foreground: c0caf5
|
|
||||||
term_foreground_bright: c0caf5
|
|
||||||
term_background_bright: 24283b
|
|
||||||
|
|
||||||
EOF
|
|
||||||
|
|
||||||
sudo limine-update
|
sudo limine-update
|
||||||
sudo limine-snapper-sync
|
sudo limine-snapper-sync
|
||||||
|
|||||||
20
default/limine/default.conf
Normal file
20
default/limine/default.conf
Normal file
@@ -0,0 +1,20 @@
|
|||||||
|
TARGET_OS_NAME="Omarchy"
|
||||||
|
|
||||||
|
ESP_PATH="/boot"
|
||||||
|
|
||||||
|
KERNEL_CMDLINE[default]="@@CMDLINE@@"
|
||||||
|
KERNEL_CMDLINE[default]+="quiet splash"
|
||||||
|
|
||||||
|
ENABLE_UKI=yes
|
||||||
|
CUSTOM_UKI_NAME="omarchy"
|
||||||
|
|
||||||
|
ENABLE_LIMINE_FALLBACK=yes
|
||||||
|
|
||||||
|
# Find and add other bootloaders
|
||||||
|
FIND_BOOTLOADERS=yes
|
||||||
|
|
||||||
|
BOOT_ORDER="*, *fallback, Snapshots"
|
||||||
|
|
||||||
|
MAX_SNAPSHOT_ENTRIES=5
|
||||||
|
|
||||||
|
SNAPSHOT_FORMAT_CHOICE=5
|
||||||
18
default/limine/limine.conf
Normal file
18
default/limine/limine.conf
Normal file
@@ -0,0 +1,18 @@
|
|||||||
|
### Read more at config document: https://github.com/limine-bootloader/limine/blob/trunk/CONFIG.md
|
||||||
|
#timeout: 3
|
||||||
|
default_entry: 2
|
||||||
|
interface_branding: Omarchy Bootloader
|
||||||
|
interface_branding_color: 2
|
||||||
|
hash_mismatch_panic: no
|
||||||
|
|
||||||
|
term_background: 1a1b26
|
||||||
|
backdrop: 1a1b26
|
||||||
|
|
||||||
|
# Terminal colors (Tokyo Night palette)
|
||||||
|
term_palette: 15161e;f7768e;9ece6a;e0af68;7aa2f7;bb9af7;7dcfff;a9b1d6
|
||||||
|
term_palette_bright: 414868;f7768e;9ece6a;e0af68;7aa2f7;bb9af7;7dcfff;c0caf5
|
||||||
|
|
||||||
|
# Text colors
|
||||||
|
term_foreground: c0caf5
|
||||||
|
term_foreground_bright: c0caf5
|
||||||
|
term_background_bright: 24283b
|
||||||
@@ -29,28 +29,8 @@ EOF
|
|||||||
|
|
||||||
CMDLINE=$(grep "^[[:space:]]*cmdline:" "$limine_config" | head -1 | sed 's/^[[:space:]]*cmdline:[[:space:]]*//')
|
CMDLINE=$(grep "^[[:space:]]*cmdline:" "$limine_config" | head -1 | sed 's/^[[:space:]]*cmdline:[[:space:]]*//')
|
||||||
|
|
||||||
sudo tee /etc/default/limine <<EOF >/dev/null
|
sudo cp $OMARCHY_PATH/default/limine/default.conf /etc/default/limine
|
||||||
TARGET_OS_NAME="Omarchy"
|
sudo sed -i "s|@@CMDLINE@@|$CMDLINE|g" /etc/default/limine
|
||||||
|
|
||||||
ESP_PATH="/boot"
|
|
||||||
|
|
||||||
KERNEL_CMDLINE[default]="$CMDLINE"
|
|
||||||
KERNEL_CMDLINE[default]+="quiet splash"
|
|
||||||
|
|
||||||
ENABLE_UKI=yes
|
|
||||||
CUSTOM_UKI_NAME="omarchy"
|
|
||||||
|
|
||||||
ENABLE_LIMINE_FALLBACK=yes
|
|
||||||
|
|
||||||
# Find and add other bootloaders
|
|
||||||
FIND_BOOTLOADERS=yes
|
|
||||||
|
|
||||||
BOOT_ORDER="*, *fallback, Snapshots"
|
|
||||||
|
|
||||||
MAX_SNAPSHOT_ENTRIES=5
|
|
||||||
|
|
||||||
SNAPSHOT_FORMAT_CHOICE=5
|
|
||||||
EOF
|
|
||||||
|
|
||||||
# UKI and EFI fallback are EFI only
|
# UKI and EFI fallback are EFI only
|
||||||
if [[ -z $EFI ]]; then
|
if [[ -z $EFI ]]; then
|
||||||
@@ -58,32 +38,7 @@ EOF
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# We overwrite the whole thing knowing the limine-update will add the entries for us
|
# We overwrite the whole thing knowing the limine-update will add the entries for us
|
||||||
sudo tee /boot/limine.conf <<EOF >/dev/null
|
sudo cp $OMARCHY_PATH/default/limine/limine.conf /boot/limine.conf
|
||||||
### Read more at config document: https://github.com/limine-bootloader/limine/blob/trunk/CONFIG.md
|
|
||||||
#timeout: 3
|
|
||||||
default_entry: 2
|
|
||||||
interface_branding: Omarchy Bootloader
|
|
||||||
interface_branding_color: 2
|
|
||||||
hash_mismatch_panic: no
|
|
||||||
|
|
||||||
term_background: 1a1b26
|
|
||||||
backdrop: 1a1b26
|
|
||||||
|
|
||||||
# Terminal colors (Tokyo Night palette)
|
|
||||||
term_palette: 15161e;f7768e;9ece6a;e0af68;7aa2f7;bb9af7;7dcfff;a9b1d6
|
|
||||||
term_palette_bright: 414868;f7768e;9ece6a;e0af68;7aa2f7;bb9af7;7dcfff;c0caf5
|
|
||||||
|
|
||||||
# Text colors
|
|
||||||
term_foreground: c0caf5
|
|
||||||
term_foreground_bright: c0caf5
|
|
||||||
term_background_bright: 24283b
|
|
||||||
|
|
||||||
EOF
|
|
||||||
|
|
||||||
# Remove the original config file if it's not /boot/limine.conf
|
|
||||||
if [[ "$limine_config" != "/boot/limine.conf" ]] && [[ -f "$limine_config" ]]; then
|
|
||||||
sudo rm "$limine_config"
|
|
||||||
fi
|
|
||||||
|
|
||||||
|
|
||||||
# Match Snapper configs if not installing from the ISO
|
# Match Snapper configs if not installing from the ISO
|
||||||
|
|||||||
Reference in New Issue
Block a user