mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-09 18:45:54 +02:00
Core Update 172: Ship u-boot and regenerate all initrds
The latter is also needed to apply new CPU microcodes on x86_64. Signed-off-by: Peter Müller <peter.mueller@ipfire.org>
This commit is contained in:
1
config/rootfiles/core/172/filelists/aarch64/u-boot
Symbolic link
1
config/rootfiles/core/172/filelists/aarch64/u-boot
Symbolic link
@@ -0,0 +1 @@
|
|||||||
|
../../../../common/aarch64/u-boot
|
||||||
1
config/rootfiles/core/172/filelists/armv6l/u-boot
Symbolic link
1
config/rootfiles/core/172/filelists/armv6l/u-boot
Symbolic link
@@ -0,0 +1 @@
|
|||||||
|
../../../../common/armv6l/u-boot
|
||||||
@@ -38,6 +38,13 @@ done
|
|||||||
/etc/rc.d/init.d/sshd stop
|
/etc/rc.d/init.d/sshd stop
|
||||||
/etc/rc.d/init.d/unbound stop
|
/etc/rc.d/init.d/unbound stop
|
||||||
|
|
||||||
|
KVER="xxxKVERxxx"
|
||||||
|
|
||||||
|
# Backup uEnv.txt if exist
|
||||||
|
if [ -e /boot/uEnv.txt ]; then
|
||||||
|
cp -vf /boot/uEnv.txt /boot/uEnv.txt.org
|
||||||
|
fi
|
||||||
|
|
||||||
# Remove files
|
# Remove files
|
||||||
rm -rvf \
|
rm -rvf \
|
||||||
/etc/strongswan.d/scepclient.conf \
|
/etc/strongswan.d/scepclient.conf \
|
||||||
@@ -154,6 +161,24 @@ if grep -q "ENABLED=on" /var/ipfire/vpn/settings; then
|
|||||||
/etc/init.d/ipsec start
|
/etc/init.d/ipsec start
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Regenerate all initrds
|
||||||
|
dracut --regenerate-all --force
|
||||||
|
case "$(uname -m)" in
|
||||||
|
armv*)
|
||||||
|
mkimage -A arm -T ramdisk -C lzma -d /boot/initramfs-${KVER}-ipfire.img /boot/uInit-${KVER}-ipfire
|
||||||
|
rm /boot/initramfs-${KVER}-ipfire.img
|
||||||
|
;;
|
||||||
|
aarch64)
|
||||||
|
mkimage -A arm64 -T ramdisk -C lzma -d /boot/initramfs-${KVER}-ipfire.img /boot/uInit-${KVER}-ipfire
|
||||||
|
# dont remove initramfs because grub need this to boot.
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
# Call user update script (needed for some ARM boards)
|
||||||
|
if [ -e /boot/pakfire-kernel-update ]; then
|
||||||
|
/boot/pakfire-kernel-update ${KVER}
|
||||||
|
fi
|
||||||
|
|
||||||
# This update needs a reboot...
|
# This update needs a reboot...
|
||||||
touch /var/run/need_reboot
|
touch /var/run/need_reboot
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user