mirror of
https://gitlab.archlinux.org/tpowa/archboot.git
synced 2024-09-20 03:50:37 +02:00
remove archboot packages from cache
This commit is contained in:
parent
d536ad45d2
commit
1bb32b9de8
1 changed files with 3 additions and 2 deletions
|
@ -66,8 +66,9 @@ if [[ "${L_COMPLETE}" == "1" || "${L_INSTALL_COMPLETE}" == "1" ]]; then
|
|||
if [[ "${L_INSTALL_COMPLETE}" == "1" ]]; then
|
||||
archboot-create-container.sh "${W_DIR}" -cc -alf || exit 1
|
||||
fi
|
||||
# generate initrd in container
|
||||
systemd-nspawn -D "${W_DIR}" /bin/bash -c "umount /tmp;mkinitcpio -c ${CONFIG} -g /tmp/initrd.img; mv /tmp/initrd.img /" || exit 1
|
||||
|
||||
# generate initrd in container, remove archboot packages from cache, not needed in normal install, umount tmp before generating initrd
|
||||
systemd-nspawn -D "${W_DIR}" /bin/bash -c "rm /var/cache/pacman/pkg/archboot-*; umount /tmp;mkinitcpio -c ${CONFIG} -g /tmp/initrd.img; mv /tmp/initrd.img /" || exit 1
|
||||
mv "${W_DIR}"/initrd.img /
|
||||
mv "${W_DIR}"/boot/vmlinuz-linux /
|
||||
mv "${W_DIR}"/boot/intel-ucode.img /
|
||||
|
|
Loading…
Reference in a new issue