feat: add after-stages section

This commit is contained in:
Rudra Saraswat 2026-04-01 20:06:38 +01:00
parent ab191bf3cf
commit c513ab9397

View file

@ -25,8 +25,15 @@ stages:
- "linux-firmware"
- "dracut"
override:
- path: /var/lib/pacman/
keep: new
- path: /etc/pacman.conf
keep: new
distro-config:
init-rootfs: |
before-stages: |
set -e
mkdir -m 0755 -p ./var/{cache/blendOS/pacman/pkg,lib/pacman,log} ./{dev,run,etc/pacman.d}
@ -68,5 +75,13 @@ distro-config:
ln -sfn usr/lib64 ./lib64
ln -sfn usr/sbin ./sbin
can-update: |
after-stages: |
locale-gen
dracut --force --regenerate-all
cd /usr/lib/modules
kernels=(*)
cp "${kernels[0]}"/vmlinuz /boot/vmlinuz-"${kernels[0]}"
should-update: |
[ "$(checkupdates | wc -l)" -gt 0 ]