rc: there's always something else that breaks...

Just move to the actual rc script in the repo from our hook and
revert back to a simple mount inside that one.  Problem solved.
This commit is contained in:
Franco Fichtner 2015-02-26 15:07:19 +01:00
parent f00447ed1e
commit 0f2443ee72
2 changed files with 3 additions and 4 deletions

View File

@ -15,8 +15,8 @@ cp /etc/rc /etc/rc.bak
cat > /etc/rc <<EOF
#!/bin/sh
# OPNsense rc(8) hook was automatically installed:
if [ -d /root/core ]; then /usr/bin/make -C /root/core mount; fi
if [ -f /usr/local/etc/rc ]; then /usr/local/etc/rc; exit 0; fi
if [ -f /root/core/src/etc/rc ]; then /root/core/src/etc/rc; exit 0;
elif [ -f /usr/local/etc/rc ]; then /usr/local/etc/rc; exit 0; fi
EOF
cat /etc/rc.bak >> /etc/rc
rm -f /etc/rc.bak

View File

@ -112,9 +112,8 @@ else
fi
fi
# mount repo if available
if [ -d /root/core ]; then
# unionfs gets stuck in read-only mode due to early mount
/usr/bin/make -C /root/core umount
/usr/bin/make -C /root/core mount
fi