feat(zbm): Add pacman hook to auto-regen ZBM image files after package upgrade (#5)
This commit is contained in:
parent
81a7fcd64c
commit
b5666493f1
9
setup.sh
9
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'
|
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 () {
|
function get_disks_with_one_efipart () {
|
||||||
local disks_with_one_efipart
|
local disks_with_one_efipart
|
||||||
# Find disks that have exactly one EFI partition and where that EFI
|
# 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
|
if [[ "${part_schema}" = 'mbr' ]]; then
|
||||||
paru_install 'rsync'
|
paru_install 'rsync'
|
||||||
add_syslinux_pacman_hook
|
add_syslinux_pacman_hook
|
||||||
else
|
|
||||||
:
|
|
||||||
fi
|
fi
|
||||||
|
add_zbm_pacman_hook
|
||||||
}
|
}
|
||||||
|
|
||||||
function set_root_pw () {
|
function set_root_pw () {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user