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 <arne_f@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
This commit is contained in:
Arne Fitzenreiter
2023-07-28 18:04:25 +02:00
committed by Michael Tremer
parent 84a3246be9
commit 0bb82a95dd
3 changed files with 2 additions and 9 deletions

View File

@@ -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

View File

@@ -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