Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Switch to GitLab Next
Sign in / Register
Toggle navigation
Open sidebar
Anarchy Installer
installer
Commits
6cd99eda
Verified
Commit
6cd99eda
authored
Nov 14, 2020
by
Max Ferrer
💡
Browse files
Add microcodes by default [
#54
]
parent
0b41cb5d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
9 deletions
+14
-9
src/usr/lib/anarchy/setup-boot
src/usr/lib/anarchy/setup-boot
+10
-5
src/usr/lib/anarchy/setup-preconfigured
src/usr/lib/anarchy/setup-preconfigured
+4
-4
No files found.
src/usr/lib/anarchy/setup-boot
View file @
6cd99eda
...
...
@@ -40,6 +40,8 @@ syslinux_config() {
mkdir
-p
"
${
ARCH
}${
esp_mnt
}
"
/EFI/syslinux
cp
-r
"
${
ARCH
}
"
/usr/lib/syslinux/efi64/
*
"
${
ARCH
}${
esp_mnt
}
/"
EFI/syslinux/
cp
"
${
anarchy_directory
}
"
/boot/loader/syslinux/syslinux_efi.cfg
"
${
ARCH
}${
esp_mnt
}
"
/EFI/syslinux/syslinux.cfg
sed
-i
s#
"INITRD ../initramfs-linux.img"
#"$([[ $UCODE ]] && printf "%s" "INITRD ../$UCODE.img,../initramfs-linux.img")"# "${ARCH}${esp_mnt}"/EFI/syslinux/syslinux.cfg
sed
-i
s#
"INITRD ../initramfs-linux-fallback.img"
#"$([[ $UCODE ]] && printf "%s" "INITRD ../$UCODE.img,../initramfs-linux-fallback.img")"# "${ARCH}${esp_mnt}"/EFI/syslinux/syslinux.cfg
cp
"
${
anarchy_directory
}
"
/boot/splash.png
"
${
ARCH
}${
esp_mnt
}
"
/EFI/syslinux
if
[
"
${
kernel
}
"
==
"linux-lts"
]
;
then
...
...
@@ -74,6 +76,8 @@ syslinux_config() {
(
syslinux-install_update
-i
-a
-m
-c
"
${
ARCH
}
"
cp
"
${
anarchy_directory
}
"
/boot/loader/syslinux/syslinux.cfg
"
${
ARCH
}
"
/boot/syslinux/
sed
-i
s#
"INITRD ../initramfs-linux.img"
#"$([[ $UCODE ]] && printf "%s" "INITRD ../$UCODE.img,../initramfs-linux.img")"# "${ARCH}"/boot/syslinux/syslinux.cfg
sed
-i
s#
"INITRD ../initramfs-linux-fallback.img"
#"$([[ $UCODE ]] && printf "%s" "INITRD ../$UCODE.img,../initramfs-linux-fallback.img")"# "${ARCH}"/boot/syslinux/syslinux.cfg
cp
"
${
anarchy_directory
}
"
/boot/splash.png
"
${
ARCH
}
"
/boot/syslinux/
)
&>/dev/null &
pid
=
$!
pri
=
0.1
msg
=
"
\n
${
syslinux_load
}
\n\n
\Z
1>
\Z
2syslinux-install_update -i -a -m -c
${
ARCH
}
\Z
n"
load
...
...
@@ -114,13 +118,13 @@ systemd_config() {
pid
=
$!
pri
=
0.1
msg
=
"
\n
${
syslinux_load
}
\n\n
\Z
1>
\Z
2bootctl --path=
${
esp_mnt
}
install
\Z
n"
load
if
[
"
${
kernel
}
"
==
"linux"
]
;
then
echo
-e
"title Arch Linux
\n
linux /vmlinuz-linux
\n
initrd /initramfs-linux.img"
>
"
${
ARCH
}${
esp_mnt
}
"
/loader/entries/arch.conf
echo
-e
"title Arch Linux
\n
linux /vmlinuz-linux
\
n
$(
[[
$UCODE
]]
&&
printf
'initrd=\%s.img '
"
$UCODE
"
)
\
n
initrd /initramfs-linux.img"
>
"
${
ARCH
}${
esp_mnt
}
"
/loader/entries/arch.conf
elif
[
"
${
kernel
}
"
==
"linux-lts"
]
;
then
echo
-e
"title Arch Linux
\n
linux /vmlinuz-linux-lts
\n
initrd /initramfs-linux-lts.img"
>
"
${
ARCH
}${
esp_mnt
}
"
/loader/entries/arch.conf
echo
-e
"title Arch Linux
\n
linux /vmlinuz-linux-lts
\
n
$(
[[
$UCODE
]]
&&
printf
'initrd=\%s.img '
"
$UCODE
"
)
\
n
initrd /initramfs-linux-lts.img"
>
"
${
ARCH
}${
esp_mnt
}
"
/loader/entries/arch.conf
elif
[
"
${
kernel
}
"
==
"linux-hardened"
]
;
then
echo
-e
"title Arch Linux
\n
linux /vmlinuz-linux-hardened
\n
initrd /initramfs-linux-hardened.img"
>
"
${
ARCH
}${
esp_mnt
}
"
/loader/entries/arch.conf
echo
-e
"title Arch Linux
\n
linux /vmlinuz-linux-hardened
\
n
$(
[[
$UCODE
]]
&&
printf
'initrd=\%s.img '
"
$UCODE
"
)
\
n
initrd /initramfs-linux-hardened.img"
>
"
${
ARCH
}${
esp_mnt
}
"
/loader/entries/arch.conf
elif
[
"
${
kernel
}
"
==
"linux-zen"
]
;
then
echo
-e
"title Arch Linux
\n
linux /vmlinuz-linux-zen
\n
initrd /initramfs-linux-zen.img"
>
"
${
ARCH
}${
esp_mnt
}
"
/loader/entries/arch.conf
echo
-e
"title Arch Linux
\n
linux /vmlinuz-linux-zen
\
n
$(
[[
$UCODE
]]
&&
printf
'initrd=\%s.img '
"
$UCODE
"
)
\
n
initrd /initramfs-linux-zen.img"
>
"
${
ARCH
}${
esp_mnt
}
"
/loader/entries/arch.conf
fi
if
"
${
crypted
}
"
;
then
...
...
@@ -155,7 +159,8 @@ efistub_config() {
fi
# -p: boot partition number (is always "1")
efibootmgr
-d
/dev/
"
${
DRIVE
}
"
-p
1
-c
-L
"Arch Linux"
-l
\v
mlinuz-linux
-u
"
${
efi_root
}
rw initrd=/
${
initramfs
}
${
drm
}
"
efibootmgr
-d
/dev/
"
${
DRIVE
}
"
-p
1
-c
-L
"Arch Linux"
-l
\v
mlinuz-linux
-u
"
${
efi_root
}
rw
$(
[[
${
UCODE
}
]]
&&
printf
'initrd=\%s.img '
"
${
UCODE
}
"
)
initrd=/
${
initramfs
}
${
drm
}
"
}
refind_config
()
{
...
...
src/usr/lib/anarchy/setup-preconfigured
View file @
6cd99eda
...
...
@@ -12,7 +12,7 @@ quick_install() {
multilib
=
true
dhcp
=
false
desktop
=
true
base_install
=
"base-devel linux linux-headers zsh zsh-syntax-highlighting grub dialog networkmanager wireless_tools wpa_supplicant os-prober dhcpcd
${
base_defaults
}
"
base_install
=
"base-devel linux linux-headers zsh zsh-syntax-highlighting grub dialog networkmanager wireless_tools wpa_supplicant os-prober dhcpcd
${
base_defaults
}
${
UCODE
}
"
if
"
${
bluetooth
}
"
;
then
base_install+
=
"bluez bluez-utils pulseaudio-bluetooth "
...
...
@@ -43,7 +43,7 @@ quick_install() {
multilib
=
true
dhcp
=
false
desktop
=
true
base_install
=
"base-devel linux-lts linux-lts-headers zsh zsh-syntax-highlighting grub dialog networkmanager wireless_tools wpa_supplicant os-prober dhcpcd
${
base_defaults
}
"
base_install
=
"base-devel linux-lts linux-lts-headers zsh zsh-syntax-highlighting grub dialog networkmanager wireless_tools wpa_supplicant os-prober dhcpcd
${
base_defaults
}
${
UCODE
}
"
if
"
${
bluetooth
}
"
;
then
base_install+
=
"bluez bluez-utils pulseaudio-bluetooth "
...
...
@@ -73,7 +73,7 @@ quick_install() {
enable_nm
=
true
multilib
=
true
dhcp
=
false
base_install
=
"base-devel linux openssh linux-headers zsh zsh-syntax-highlighting grub dialog wireless_tools wpa_supplicant os-prober dhcpcd
${
base_defaults
}
"
base_install
=
"base-devel linux openssh linux-headers zsh zsh-syntax-highlighting grub dialog wireless_tools wpa_supplicant os-prober dhcpcd
${
base_defaults
}
${
UCODE
}
"
if
"
${
bluetooth
}
"
;
then
base_install+
=
"bluez bluez-utils pulseaudio-bluetooth "
...
...
@@ -100,7 +100,7 @@ quick_install() {
enable_nm
=
true
multilib
=
true
dhcp
=
false
base_install
=
"base-devel openssh linux-lts linux-lts-headers zsh zsh-syntax-highlighting grub dialog wireless_tools wpa_supplicant os-prober dhcpcd
${
base_defaults
}
"
base_install
=
"base-devel openssh linux-lts linux-lts-headers zsh zsh-syntax-highlighting grub dialog wireless_tools wpa_supplicant os-prober dhcpcd
${
base_defaults
}
${
UCODE
}
"
if
"
${
bluetooth
}
"
;
then
base_install+
=
"bluez bluez-utils pulseaudio-bluetooth "
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment