Remove the now redundant separate function for remounting the rootfs.

This commit is contained in:
Bas v.d. Wiel 2023-03-10 11:00:11 +01:00
parent 56f3c7cce8
commit a103a6dc5d
1 changed files with 0 additions and 10 deletions

View File

@ -226,13 +226,6 @@ function remove_mount_at_boot() {
fi
}
# Remount the root filesystem if it's currently mounted read-only
function remount_rootfs() {
mount | grep "on / .*[(,]ro[,$]" -q && RO_ROOT="yes"
[ "${RO_ROOT}" == "yes" ] && mount / -o remount,rw
}
#=========BUSINESS LOGIC================================
#
# This part just calls the functions we define above
@ -259,9 +252,6 @@ wake_up_nfs
# ..and give it time to actually get dressed.
wait_for_nfs
# Ensure the root filesystem is writable
remount_rootfs
# Install/update the scripts to run at every reboot
install_mount_at_boot