ddvk / rmfakecloud-proxy

MIT License
10 stars 7 forks source link

Proxy service gets deleted on every reboot (Paper Pro) #12

Open jdk-21 opened 1 month ago

jdk-21 commented 1 month ago

On the Paper Pro /etc seems to be mounted as an overlay filesystem, which means that the proxy service gets removed on every reboot and I don't know how to bypass this limitation. My first guess would be to use cron but that doesn't seems to be installed.

# mount | grep /etc
overlay on /etc type overlay (rw,relatime,lowerdir=/etc,upperdir=/var/volatile/etc,workdir=/var/volatile/.etc-work)
/dev/mapper/home-encrypted-disk on /etc/dropbear type ext4 (rw,relatime)
overlay on /mnt/lowerdir type overlay (rw,relatime,lowerdir=/etc,upperdir=/var/volatile/etc,workdir=/var/volatile/.etc-work)

https://github.com/ddvk/rmfakecloud/issues/322

Eeems commented 1 month ago

Have you tried unmounting the overlay and then making modifications?

jdk-21 commented 1 month ago

Is unmounting /etc considered save? I don't want to brick the device.

Eeems commented 1 month ago

You are unmounting an overlay that resets all changes on boot so that you can modify the files it's masking.

You do risk making changes to it after that could cause problems. If you do end up causing problems, you could always go through recovery to get your device back to a working state.

jdk-21 commented 1 month ago

I tried it with unmounting and it worked. This should be added to the docs. And that Paper Pro uses arm64.

Eeems commented 1 month ago

You can open a PR to add it.

Better yet, the install script should be updated to automatically do this.

2Belette commented 1 week ago

Got the same iasue. @jdk-21 what command did you use ? I imagine you are doing it just before starting the install script right ?