core181: stop udev and apache before replacing

update udev and apache while the running result in a hanging state
that prevent restart and also save unmounting of "/" at reboot.

Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
This commit is contained in:
Arne Fitzenreiter 2023-12-09 09:38:28 +01:00
parent 84f8640da0
commit 06c935a01b
1 changed files with 6 additions and 2 deletions

View File

@ -84,6 +84,10 @@ rm -rvf \
/boot/dtb-* \
/lib/modules
# Stop services
/etc/init.d/udev stop
/etc/init.d/apache stop
# Extract files
extract_files
@ -109,8 +113,8 @@ ldconfig
# Start services
telinit u
/etc/init.d/udev restart
/etc/init.d/apache restart
/etc/init.d/udev start
/etc/init.d/apache start
# Rebuild initial ramdisks
dracut --regenerate-all --force