chore: move to post-stages
This commit is contained in:
parent
a4c8b144c5
commit
1424a3599d
3 changed files with 18 additions and 20 deletions
|
|
@ -38,13 +38,24 @@ stages:
|
|||
- module: exec
|
||||
inputs:
|
||||
- |
|
||||
git clone --revision 346d411d52acffdb7d259ec3516f0eb093b97a62 --depth 1 https://git.ruds.io/rs2009/akshara /akshara
|
||||
git clone --revision 8e7e5cb576d751539e5e61a2801e098db2873ffd --depth 1 https://git.ruds.io/rs2009/akshara /akshara
|
||||
cd /akshara
|
||||
cp -a usr/lib/akshara /usr/lib/akshara
|
||||
cp -a usr/lib/dracut/modules.d/10akshara /usr/lib/dracut/modules.d/10akshara
|
||||
cp usr/bin/akshara /usr/bin/akshara
|
||||
- rm -rf /akshara
|
||||
|
||||
post-stages:
|
||||
- module: exec
|
||||
inputs:
|
||||
- locale-gen
|
||||
- rm -f /boot/* &>/dev/null
|
||||
pushd /usr/lib/modules
|
||||
kernels=(*)
|
||||
popd
|
||||
cp /usr/lib/modules/"${kernels[0]}"/vmlinuz /boot/vmlinuz-"${kernels[0]}"
|
||||
- dracut --force --regenerate-all
|
||||
|
||||
override:
|
||||
- path: /var/lib/pacman/
|
||||
keep: new
|
||||
|
|
@ -63,7 +74,7 @@ auto-update:
|
|||
enabled: false
|
||||
|
||||
distro-config:
|
||||
before-stages: |
|
||||
initialise: |
|
||||
set -e
|
||||
|
||||
mkdir -p /var/cache/blendOS/pacman/pkg
|
||||
|
|
@ -112,16 +123,5 @@ distro-config:
|
|||
cp /etc/locale.gen ./etc
|
||||
cp /etc/locale.conf ./etc
|
||||
|
||||
after-stages: |
|
||||
finalise: |
|
||||
umount -l ./var/cache/blendOS
|
||||
|
||||
systemd-nspawn -D . locale-gen
|
||||
|
||||
rm -f ./boot/* &>/dev/null
|
||||
|
||||
pushd ./usr/lib/modules
|
||||
kernels=(*)
|
||||
popd
|
||||
cp ./usr/lib/modules/"${kernels[0]}"/vmlinuz ./boot/vmlinuz-"${kernels[0]}"
|
||||
|
||||
systemd-nspawn -D . dracut --force --regenerate-all
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue