diff --git a/setup.sh b/setup.sh index 375025c..094fea1 100644 --- a/setup.sh +++ b/setup.sh @@ -708,6 +708,12 @@ function add_syslinux_pacman_hook () { ln -s '/opt/git/quico.space/quico-os-setup/zbm-syslinux-pacman-hook/branches/main/pacman-zbm-syslinux-regen.hook' '/usr/share/libalpm/hooks/pacman-zbm-syslinux-regen.hook' } +function add_zbm_pacman_hook () { + mkdir -p '/opt/git/quico.space/quico-os-setup/zbm-regen-pacman-hook/branches/main' + git -C '/opt/git/quico.space/quico-os-setup/zbm-regen-pacman-hook/branches/main' clone 'https://quico.space/quico-os-setup/zbm-regen-pacman-hook.git' . + ln -s '/opt/git/quico.space/quico-os-setup/zbm-regen-pacman-hook/branches/main/pacman-zbm-image-regen.hook' '/usr/share/libalpm/hooks/pacman-zbm-image-regen.hook' +} + function get_disks_with_one_efipart () { local disks_with_one_efipart # Find disks that have exactly one EFI partition and where that EFI @@ -755,9 +761,8 @@ function install_os_in_chroot () { if [[ "${part_schema}" = 'mbr' ]]; then paru_install 'rsync' add_syslinux_pacman_hook - else - : fi + add_zbm_pacman_hook } function set_root_pw () {