mirror of
https://git.myvelabs.com/lab/archlinux.git
synced 2026-08-16 16:14:27 +00:00
Change systemd mkinitcpio hook back to udev if using the encrypt hook.
This commit is contained in:
parent
2057fbc4a7
commit
5c400f42ad
2 changed files with 18 additions and 3 deletions
19
arch.sh
19
arch.sh
|
|
@ -359,7 +359,13 @@ function encryptHook
|
||||||
# Pacman hook
|
# Pacman hook
|
||||||
install /dev/stdin /mnt/opt/local/hooks/mkinitcpio.conf <<- hook
|
install /dev/stdin /mnt/opt/local/hooks/mkinitcpio.conf <<- hook
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
grep '^HOOKS' /etc/mkinitcpio.conf | sed -e "s/filesystems/zfs &/" -e "s/ fsck//" -e "s/block/& ${1}/" >/etc/mkinitcpio.conf.d/zz-hooks.conf
|
grep '^HOOKS' /etc/mkinitcpio.conf |\\
|
||||||
|
sed -e "s/filesystems/zfs &/" \\
|
||||||
|
-e "s/ fsck//" \\
|
||||||
|
-e "s/block/& ${1}/" \\
|
||||||
|
-e "s/systemd/udev/" \\
|
||||||
|
-e "s/sd-vconsole/consolefont/" \\
|
||||||
|
>/etc/mkinitcpio.conf.d/zz-hooks.conf
|
||||||
|
|
||||||
sed -e "s|%PKGBASE%|${linux_kernel}|g" \\
|
sed -e "s|%PKGBASE%|${linux_kernel}|g" \\
|
||||||
-e "s/^fallback/#&/g" \\
|
-e "s/^fallback/#&/g" \\
|
||||||
|
|
@ -372,7 +378,11 @@ function encryptHook
|
||||||
# Pacman hook
|
# Pacman hook
|
||||||
install /dev/stdin /mnt/opt/local/hooks/mkinitcpio.conf <<- hook
|
install /dev/stdin /mnt/opt/local/hooks/mkinitcpio.conf <<- hook
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
grep '^HOOKS' /etc/mkinitcpio.conf | sed "s/block/& ${1}/" >/etc/mkinitcpio.conf.d/zz-hooks.conf
|
grep '^HOOKS' /etc/mkinitcpio.conf |\\
|
||||||
|
sed -e "s/block/& ${1}/" \\
|
||||||
|
-e "s/systemd/udev/" \\
|
||||||
|
-e "s/sd-vconsole/consolefont/" \\
|
||||||
|
>/etc/mkinitcpio.conf.d/zz-hooks.conf
|
||||||
|
|
||||||
sed -e "s|%PKGBASE%|${linux_kernel}|g" \\
|
sed -e "s|%PKGBASE%|${linux_kernel}|g" \\
|
||||||
-e "s/^fallback/#&/g" \\
|
-e "s/^fallback/#&/g" \\
|
||||||
|
|
@ -382,6 +392,11 @@ function encryptHook
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
# Remove systemd hook
|
||||||
|
sed -e "s/systemd/udev/" \
|
||||||
|
-e "s/sd-vconsole/consolefont/" \
|
||||||
|
-i /mnt/etc/mkinitcpio.conf.d/zz-hooks.conf
|
||||||
|
|
||||||
cat >/mnt/etc/pacman.d/hooks/85-mkinitcpio.hook <<- mkinitcpio
|
cat >/mnt/etc/pacman.d/hooks/85-mkinitcpio.hook <<- mkinitcpio
|
||||||
[Trigger]
|
[Trigger]
|
||||||
Operation = Install
|
Operation = Install
|
||||||
|
|
|
||||||
|
|
@ -550,7 +550,7 @@ case ${desktop_choice} in
|
||||||
swayidle
|
swayidle
|
||||||
|
|
||||||
# Config
|
# Config
|
||||||
curl --silent --fail https://raw.githubusercontent.com/hyprwm/Hyprland/refs/heads/main/example/hyprland.conf |\
|
curl --silent --fail https://raw.githubusercontent.com/hyprwm/Hyprland/refs/heads/main/example/hyprland.lua |\
|
||||||
sed -e '/Autostart/i exec-once = /usr/lib/polkit-kde-authentication-agent-1' \
|
sed -e '/Autostart/i exec-once = /usr/lib/polkit-kde-authentication-agent-1' \
|
||||||
-e '/Autostart/i exec-once = waybar -c ~/.config/waybar/waybar.conf' \
|
-e '/Autostart/i exec-once = waybar -c ~/.config/waybar/waybar.conf' \
|
||||||
-e '/Autostart/i exec-once = ~/.config/hypr/scripts/sleep.sh' \
|
-e '/Autostart/i exec-once = ~/.config/hypr/scripts/sleep.sh' \
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue