chore: do not copy initramfs during update

This commit is contained in:
Rudra Saraswat 2023-06-11 11:15:32 +10:00
parent b33942bd3b
commit a05b970d1d

View file

@ -50,9 +50,6 @@ run_latehook() {
# Rename new /etc. # Rename new /etc.
mv /new_root/.new.etc /new_root/etc &>/dev/null || : mv /new_root/.new.etc /new_root/etc &>/dev/null || :
# Replace kernel and microcode images.
mv /new_root/mnt/iso-update/iso/boot/initramfs-linux-zen.img /new_root/boot/initramfs-linux-zen.img
if [[ -f /boot/amd-ucode.img ]]; then if [[ -f /boot/amd-ucode.img ]]; then
mv /new_root/mnt/iso-update/iso/boot/amd-ucode.img /new_root/boot/amd-ucode.img mv /new_root/mnt/iso-update/iso/boot/amd-ucode.img /new_root/boot/amd-ucode.img
fi fi