initskripts: remove buggy remount at halt and reboot
Commit Message
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 <arne_f@ipfire.org>
---
config/rootfiles/core/177/filelists/files | 2 ++
src/initscripts/system/halt | 5 -----
src/initscripts/system/reboot | 4 ----
3 files changed, 2 insertions(+), 9 deletions(-)
@@ -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
@@ -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
@@ -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