mirror of
https://git.myvelabs.com/lab/archlinux.git
synced 2025-12-17 21:26:25 +00:00
Fix mkinitcpio.conf hook
This commit is contained in:
parent
e62bbcd2cb
commit
944b210cf5
1 changed files with 10 additions and 8 deletions
18
homelab.sh
18
homelab.sh
|
|
@ -924,10 +924,11 @@ mkdir -p /mnt/etc/{zfs/zfs-list.cache,pacman.d/hooks,nginx/sites-{available,enab
|
||||||
/mnt/srv/{repo,sftp}/
|
/mnt/srv/{repo,sftp}/
|
||||||
|
|
||||||
# Configure zfs for mkinitcpio
|
# Configure zfs for mkinitcpio
|
||||||
sed -e '/^HOOKS/ s/filesystems/netconf tinyssh zfsencryptssh zfs &/' \
|
grep "^HOOKS" /mnt/etc/mkinitcpio.conf |\
|
||||||
-e '/^HOOKS/ s/ fsck//' \
|
sed -e 's/filesystems/netconf tinyssh zfsencryptssh zfs &/' \
|
||||||
-e '/^HOOKS/ s/systemd/udev/' \
|
-e 's/systemd/udev/' \
|
||||||
/mnt/etc/mkinitcpio.conf >/mnt/etc/mkinitcpio.conf.d/zz-hooks.conf
|
-e 's/sd-vconsole/consolefont/' \
|
||||||
|
-e 's/ fsck//' >/mnt/etc/mkinitcpio.conf.d/zz-hooks.conf
|
||||||
cat >/mnt/etc/mkinitcpio.conf.d/zz-binaries.conf <<- 'binaries'
|
cat >/mnt/etc/mkinitcpio.conf.d/zz-binaries.conf <<- 'binaries'
|
||||||
BINARIES+=(/usr/bin/zfs)
|
BINARIES+=(/usr/bin/zfs)
|
||||||
binaries
|
binaries
|
||||||
|
|
@ -1843,10 +1844,11 @@ preset
|
||||||
install /dev/stdin /opt/local/hooks/mkinitcpio.conf <<- 'hook'
|
install /dev/stdin /opt/local/hooks/mkinitcpio.conf <<- 'hook'
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
# Hooks
|
# Hooks
|
||||||
sed -e '/^HOOKS/ s/filesystems/netconf tinyssh zfsencryptssh zfs &/' \
|
grep "^HOOKS" /etc/mkinitcpio.conf |\
|
||||||
-e '/^HOOKS/ s/ fsck//' \
|
sed -e 's/filesystems/netconf tinyssh zfsencryptssh zfs &/' \
|
||||||
-e '/^HOOKS/ s/systemd/udev/' \
|
-e 's/systemd/udev/' \
|
||||||
/etc/mkinitcpio.conf >/etc/mkinitcpio.conf.d/zz-hooks.conf
|
-e 's/sd-vconsole/consolefont/' \
|
||||||
|
-e 's/ fsck//' >/etc/mkinitcpio.conf.d/zz-hooks.conf
|
||||||
|
|
||||||
# Linux preset
|
# Linux preset
|
||||||
sed -e "s|%PKGBASE%|linux|g" \
|
sed -e "s|%PKGBASE%|linux|g" \
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue