mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-16 09:34:39 +00:00
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:
parent
f00447ed1e
commit
0f2443ee72
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user