feat: add after-stages section
This commit is contained in:
parent
ab191bf3cf
commit
c513ab9397
1 changed files with 17 additions and 2 deletions
19
arch.yaml
19
arch.yaml
|
|
@ -25,8 +25,15 @@ stages:
|
||||||
- "linux-firmware"
|
- "linux-firmware"
|
||||||
- "dracut"
|
- "dracut"
|
||||||
|
|
||||||
|
override:
|
||||||
|
- path: /var/lib/pacman/
|
||||||
|
keep: new
|
||||||
|
|
||||||
|
- path: /etc/pacman.conf
|
||||||
|
keep: new
|
||||||
|
|
||||||
distro-config:
|
distro-config:
|
||||||
init-rootfs: |
|
before-stages: |
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
mkdir -m 0755 -p ./var/{cache/blendOS/pacman/pkg,lib/pacman,log} ./{dev,run,etc/pacman.d}
|
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/lib64 ./lib64
|
||||||
ln -sfn usr/sbin ./sbin
|
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 ]
|
[ "$(checkupdates | wc -l)" -gt 0 ]
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue