From: Arne Fitzenreiter Date: Fri, 28 Jul 2023 16:04:25 +0000 (+0200) Subject: initskripts: remove buggy remount at halt and reboot X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=0bb82a95dd383912bde857db9a7d702604e582f6;p=people%2Fpmueller%2Fipfire-2.x.git initskripts: remove buggy remount at halt and reboot mount -f does nothing and also the sync calls should do nothing on a already ro mounted filesystem. fixes: #13195 Signed-off-by: Arne Fitzenreiter Signed-off-by: Michael Tremer --- diff --git a/config/rootfiles/core/177/filelists/files b/config/rootfiles/core/177/filelists/files index e9ba30a0cf..5f0034d81d 100644 --- a/config/rootfiles/core/177/filelists/files +++ b/config/rootfiles/core/177/filelists/files @@ -1,3 +1,5 @@ +etc/rc.d/init.d/halt +etc/rc.d/init.d/reboot lib/firmware/amd-ucode/microcode_amd_fam17h.bin lib/firmware/amd-ucode/microcode_amd_fam19h.bin lib/firmware/amdgpu/aldebaran_mec2.bin diff --git a/src/initscripts/system/halt b/src/initscripts/system/halt index 91c89455ce..40a72ac7da 100644 --- a/src/initscripts/system/halt +++ b/src/initscripts/system/halt @@ -24,11 +24,6 @@ case "${1}" in stop) - sync && sync - boot_mesg "Remount root readonly..." - mount -f -o remount,ro / > /dev/null 2>&1 - evaluate_retval - boot_mesg "Prepare for halt..." sleep 2 diff --git a/src/initscripts/system/reboot b/src/initscripts/system/reboot index 30c5040258..f87f129219 100644 --- a/src/initscripts/system/reboot +++ b/src/initscripts/system/reboot @@ -24,10 +24,6 @@ case "${1}" in stop) - sync && sync - boot_mesg "Remount root readonly..." - mount -f -o remount,ro / > /dev/null 2>&1 - evaluate_retval boot_mesg "Prepare for reboot..." sleep 2 reboot -d -f -i