Update install.sh

pull/428/head
sfeakes 2025-05-17 14:48:10 -05:00
parent d182784ae2
commit dd7161ef08
1 changed files with 9 additions and 7 deletions

View File

@ -110,15 +110,17 @@ if [[ $EUID -ne 0 ]]; then
exit 1
fi
if [[ $(mount | grep " / " | grep "(ro,") ]]; then
if mount / -o remount,rw &>/dev/null; then
if [ "$_nosystemd" -eq $FALSE ]; then
if [[ $(mount | grep " / " | grep "(ro,") ]]; then
if mount / -o remount,rw &>/dev/null; then
# can mount RW.
#mount / -o remount,rw &>/dev/null
log "Root filesystem is readonly, remounted RW"
REMOUNT_RO=0;
else
log "Root filesystem is readonly, can't install"
exit 1
log "Root filesystem is readonly, remounted RW"
REMOUNT_RO=0;
else
log "Root filesystem is readonly, can't install"
exit 1
fi
fi
fi